Chapter 2 - Digital Image Fundamentals
Chapter 2 - Digital Image Fundamentals
PROCESSING
DIGITAL IMAGE
PROCESSING
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Elements of Visual Perception
(Preview)
2.1- Elements of
Visual Perception DIP is built on a foundation of mathematical and probabilistic
formulations, But, human intuition and analysis play a central role
2.2- Light and the in the choice of one technique versus another, and this choice often
Electromagnetic is made based on subjective, visual judgments. Hence, a basic
Spectrum
understanding of human visual perception is appropriate.
2.3- Image Sensing
and Acquisition We cover the most rudimentary aspects of human vision.
2.4- Image Sampling
and Quantization We focus on the:
2.5- Some Basic
mechanics and parameters related to how images are formed
Relationships in the eye.
Between Pixels physical limitations of human vision in terms of factors that
also are used in digital images.
2.6- An Introduction
to the Mathematical Factors such as: how human and electronic imaging
Tools Used in Digital compare in terms of resolution and ability to adapt to
Image Processing
changes in illumination and to from a practical point of
view.
Elements of Visual Perception
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
تنظیم دوربین تصویر برداری از چشم
)طرز قرار دادن سر بیمار(
Vessels
Macula
Optic Disc
مدهای تصویر برداری شبکیه
تصویرآنژیوگرافیک
Fluoroscein Angiography10
(FA)
Indocyanine Green Chorioangiography (ICG)
Structure of the Human Eye
در حالت کلي براي توليد تصوير کلي و کامل از ميدان ديد به کار مي روند.
Structure of the Human Eye
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
قرنيه
قرنيه قسمت شفاف جلوي كره چشم است كه از پشت آن ساختمان هاي داخلي تر كره چشم مثل
عنبيه و مردمك ديده مي شود .قرنيه چشم را مي توان به شيشه پنجره تشبيه كرد .همانطور كه
اگر شيشه پنجره كثيف باشد اشياء بيرون تار ديده مي شوند ،اگر بر روي قرنيه كسي لكه يا
كدورتي وجود داشته باشد فرد اشياء را تار مي بيند .به عالوه همانطور كه از پشت يك شيشه
موجدار يا مشجر اشياء كج و كوله و ناصاف ديده مي شوند .در صورتي كه سطح قرنيه ناهموار
باشد اشياء ناصاف و تار ديده مي شوند .البته قرنيه انسان يك تفاوت مهم با شيشه پنجره دارد و
آن هم اينكه شيشه پنجره يك سطح صاف است در حاليكه قرنيه بخشي از يك كره است .اين
ساختمان كروي باعث مي شود كه قرنيه چشم مثل يك ذره بين عمل كند و نورهايي را كه از
محيط خارج وارد كره چشم مي شوند به صورت پرتوهاي همگرا درآورد كه تصوير واضحي
روي شبكيه ايجاد كنند .البته در همه افراد اين امر به صورت دقيق اتفاقي نمي افتد .مثًال اگر
انحناي قرنيه كسي بيشتر از حد طبيعي باشد تصاوير به جاي آنكه روي پرده شبكيه بيفتد در
جلوي پرده شبكيه تشكيل مي شود .چنين فردي نزديك بين (ميوپ) است .همچنين اگر انحناي
قرنيه كسي كمتر از حد طبيعي باشد تصاوير به جاي آنكه روي پرده شبكيه بيفتند در پشت آن
تشكيل مي شوند .چنين فردي دوربين (هيپروپ) است .به طوري كه مي بينيم قرنيه افراد نقش
مهمي در تعيين دوربيني يا نزديك بيني يا شماره چشم افراد دارد .به همين علت اكثر روش هاي
جراحي براي اصالح ديد و شماره عينك روي اين بخش از چشم انجام مي گيرد .مثًال در روش
هاي ليزر ( ،)PRKليزيك( ،)LASIKالزك( )LASEKو جراحي با تيغه الماس ( )RKمقدار
انحناي قرنيه تغيير مي كند و شماره چشم فرد اصالح مي شود .همچنين استفاده از لنز تماسي
(كنتاكت لنز) كمك مي كند كه انحناي قرنيه فرد موقتًا به اندازه مطلوب برسد و ديد فرد اصالح
شود.
ساختمان چشم انسان
عنبيه و مردمك
عنبيه
عنبيه بخش رنگي پشت قرنيه است كه رنگ چشم افراد را تعيين مي كند .رنگ اين
بخش در چشم افراد مختلف متفاوت است و از آبي و سبز تا عسلي و قهوه اي تغيير مي
كند.
مردمك
در وسط عنبيه سوراخي به نام مردمك وجود دارد كه مقدار نور وارد شده به چشم را
تنظيم مي كند .كار مردمك مثل پرده اي است كه پشت پنجره آويزان شده و نور ورودي
به اتاق را كم و زياد مي كند .همانطور كه وقتي نور خارج شديد و زياد باشد ،پرده را
مي بنديم تا نور كمتري به اتاق وارد شود ،وقتي چشم در محيط پر نور قرار مي گيرد
مردمك تنگ مي شود تا مقدار نور كمتري وارد چشم شود .به همين صورت وقتي چشم
در محيط كم نور قرار مي گيرد مردمك گشاد مي شود تا نور بيشتري وارد چشم شود.
برگشت
ساختمان چشم انسان
اتاق قدامي
اتاق قدامي فضاي كوچكي است كه بين قرنيه و عنبيه قرار دارد .در اين
فضا مايعي به نام زالليه جريان دارد كه به شستشو و تغذيه بافت هاي
داخل چشم كمك مي كند .همانطور كه در يك استخر براي پاك ماندن
استخر مرتبًا مقداري آب خارج مي شود و به جاي آن آب تصفيه شده
وارد مي شود ،در چشم هم مرتبًا مقداري از مايع زالليه خارج مي شود
و مايع زالليه جديدي كه در چشم توليد شده است جايگزين آن مي شود.
اگر به هر دليلي تعادل بين توليد و خروج اين مايع به هم بخورد مقدار
مايع زالليه در چشم افزايش پيدا مي كند و فشار داخل كره چشم از حد
طبيعي بيشتر مي شود( .مقدار طبيعي فشار چشم در افراد بالغ بين 10تا
21ميلي متر جيوه است) .باال رفتن فشار چشم به پرده شبكيه و عصب
بينايي آسيب مي زند و باعث بيماري آب سياه يا گلوكوم مي شود.
ساختمان چشم انسان
عدسي
عدسي يك ساختمان شفاف در پشت عنبيه است كه در متمركز كردن دقيق
پرتوهاي نور بر روي شبكيه به قرنيه كمك مي كند .ضخامت عدسي چشم در
شرايط مختلف تغيير مي كند و بسته به آنكه شيء مورد نظر در چه فاصله اي از
فرد قرار داشته باشد ضخامت عدسي كم و زياد مي شود .بنابراين فرد مي تواند
اشياء را در فواصل مختلف (از بي نهايت تا حدود 20سانتي متري و گاهي
نزديك تر) به طور واضح ببيند .هرچه سن افراد بيشتر مي شود قدرت تغيير شكل
عدسي كمتر مي شود به طوري كه در حدود سن 40سالگي قدرت تغيير شكل
عدسي آنقدر كم مي شود كه اكثر افراد براي ديدن اشياء نزديك و انجام كارهايي
مثل مطالعه و خياطي به عينك كمكي براي ديد نزديك (عينك مطالعه) نياز پيدا مي
كنند .اين همان حالتي است كه به آن پير چشمي گفته مي شود.
با گذشت سن عالوه بر آنكه قدرت تغيير شكل عدسي كم مي شود ميزان شفافيت
عدسي هم كم مي شود .گاهي كدورت عدسي آنقدر زياد مي شود كه مثل پرده اي
ديد فرد را تار مي كند .اين كدورت عدسي را اصطالحًا آب مرواريد يا كاتاراكت
مي گويند.
ساختمان چشم انسان
زجاجيه
زجاجيه مايع ژله مانند شفافي است كه داخل كره چشم را پر مي كند و به
آن شكل مي دهد ..زجاجيه از پشت عدسي تا روي پرده شبكيه وجود
دارد ..با گذشت سن ساختمان ژله مانند زجاجيه تغيير مي كند و در بعضي
جاها حالت آبكي پيدا مي كند .در اين حال بعضي قسمت هاي زجاجيه
شفافيت خود را از دست مي دهد و سايه اي روي پرده شبكيه مي اندازد
كه فرد آن را به صورت اجسام شناور كوچكي مي بيند كه مثل مگس در
ميدان بينايي باال و پايين مي روند .اين حالت اصطالحًا مگس پران گفته
مي شود.
ساختمان چشم انسان
شبكيه
شبكيه يك پرده نازك حساس به نور (شبيه فيلم عكاسي) است كه در عقب كره چشم
قرار دارد .پرتوهاي نوري كه به شبكيه برخورد مي كنند به پيام هاي عصبي تبديل
مي شوند كه از طريق عصب بينايي به مغز منتقل مي شوند و در مغز تفسير مي
شوند.
در شبكيه انسان انواع مختلفي از سلول هاي گيرنده نوري وجود دارد كه ميزان
حساسيت آن ها به نور متفاوت است .گيرنده هاي نوري استوانه اي بيشتر براي ديد
در محيط هاي تاريك به كار مي روند .گيرنده هاي مخروطي براي تشخيص رنگ و
جزئيات ظريف تمايز يافته اند .ترتيب قرار گيري اين سلول ها در شبكيه طوري است
كه در ناحيه مركزي شبكيه (ماكوال) تعداد گيرنده هاي مخروطي بيشتر است.
بنابراين وقتي فردي به صورت مستقيم به شيئي نگاه مي كند تصوير آن شيء
مستقيمًا روي ماكوال در جايي مي افتد كه تعداد سلول هاي مخروطي بيشتر است و
در نتيجه شيء با وضوح بيشتري مشاهده مي شود.
Structure of the Human Eye
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Structure of the Human Eye
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Structure of the Human Eye
2.6- An Introduction
to the Mathematical Cones are
Tools Used in Digital
Image Processing
concentrated in
the center of the
retina - the fovea
Structure of the Human Eye
2.1- Elements of Rods are thin cells with slender rodlike projections that are the photoreceptors
Visual Perception for:
Black and white vision
2.2- Light and the
Electromagnetic Vision in dim light
Spectrum
Cones are the receptors for:
2.3- Image Sensing
and Acquisition
Color vision
Visual acuity
2.4- Image Sampling
and Quantization There are three types of cones, each with a different visual pigment
One sensitive to green light
2.5- Some Basic
Relationships One sensitive to blue light
Between Pixels One sensitive to red light
2.6- An Introduction The perceived color of an object depends on the quantity and combination of
to the Mathematical
Tools Used in Digital cones that are stimulated
Image Processing
In very dim light, cones do not function
Structure of the Human Eye
2.1- Elements of
Visual Perception
Cons and Rods Distribution
2.2- Light and the
Electromagnetic
Spectrum
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Structure of the Human Eye
2.1- Elements of
Visual Perception
2.2- Light and the Color blindness occurs because there is an absence or deficiency
Electromagnetic of one or more of the visual pigments in the cones. So the person
Spectrum
cannot distinguish certain colors.
2.3- Image Sensing
and Acquisition Retina also contains the macula lutea which is a small pigmented
area made up of closely packed cones that is responsible for
2.4- Image Sampling
and Quantization central vision.
2.5- Some Basic The fovea centralis is the center of the macula lutea and the area
Relationships
Between Pixels with the highest concentration of cones.
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Structure of the Human Eye
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Structure of the Human Eye
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Structure of the Human Eye
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Elements of Visual Perception
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Image Formation in the Eye
2.1- Elements of
Visual Perception
Example:
2.2- Light and the Calculation of retinal image of an object
Electromagnetic
Spectrum
2.6- An Introduction
to the Mathematical
Tools Used in Digital 15/100=h/17 or h=2.55 mm
Image Processing
Elements of Visual Perception
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Brightness Adaptation and
Discrimination
2.1- Elements of
Visual Perception
2.3- Image Sensing Subjective brightness (i.e. intensity as perceived by the HVS) is a
and Acquisition logarithmic function of the light intensity incident on the eye.
2.4- Image Sampling
and Quantization The HVS cannot operate over such a range simultaneously.
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Brightness Adaptation and
Discrimination
2.1- Elements of
Visual Perception
The eye also discriminates between changes in brightness at any
2.2- Light and the specific adaptation level.
Electromagnetic
Spectrum
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical Range of subjective Typical Weber ratio
Tools Used in Digital brightness sensations as a function of
Image Processing
showing a particular intensity
adaptation level
Brightness Adaptation and
Discrimination
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Brightness Adaptation and
Discrimination
2.1- Elements of
Visual Perception
2.2- Light and the Small values of Weber ratio mean good brightness discrimination
Electromagnetic
Spectrum (and vice versa).
2.1- Elements of
Visual Perception
2.2- Light and the Overall intensity discrimination is broad due to different set of
Electromagnetic
Spectrum incremental changes to be detected at each new adaptation level.
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Mach Bands Effect
2.1- Elements of
Visual Perception
ت در£ل اس£ائی مای£تم بین£سیس
2.2- Light and the دت££ای ش££ه ه££رز ناحی££م
Electromagnetic اال£ا ب£ائین ی£ه پ£ ب،ف£مختل
Spectrum
دت££ه ش££ گرچ.د££جهش کن
2.3- Image Sensing ک££ ی،ت££ابت اس££ا ث££نواره
and Acquisition افت£نائی را دری£وی روش£الگ
ک£دیدا در نزدی£ه ش£نیم ک£می ک
2.4- Image Sampling ده£د دی££ره مانن££ا کنگ££مرزه
and Quantization
.میشود
2.5- Some Basic
Relationships
Between Pixels
2.6- An Introduction
Perceived Intensity is
to the Mathematical not a simple function
Tools Used in Digital of actual intensity.
Image Processing
Simultaneous Contrast
2.1- Elements of
Visual Perception
2.1- Elements of
Visual Perception
ه£ت ک£ده ایس£وری پدی£توهم ن
2.2- Light and the ر£اتی پ£ا اطالع£م ب£در آن چش
Electromagnetic
Spectrum ا£دارد ی£ود ن£ه وج£ود ک£می ش
واص£ت خ£ور نادرس£ه ط£ب
2.3- Image Sensing افت می£یا را دری£ی اش£هندس
and Acquisition .کند
2.4- Image Sampling
and Quantization
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
2.2 Light and the
Electromagnetic Spectrum
Light and the Electromagnetic
Spectrum (1)
2.1- Elements of
Visual Perception
In 1666, Sir Isaac Newton discovered that when a beam of
2.2- Light and the sunlight is passed through a glass prism, the emerging beam of
Electromagnetic light is not white but consists instead of a continuous spectrum
Spectrum
of colors ranging from violet at one end to red at the other.
2.3- Image Sensing
and Acquisition The range of colors we perceive in visible light represents a very
small portion of the electromagnetic spectrum.
2.4- Image Sampling
and Quantization
On one end of the spectrum are radio waves with wavelengths
2.5- Some Basic
Relationships
billions of times longer than those of visible light.
Between Pixels
On the other end of the spectrum are gamma rays with
2.6- An Introduction
to the Mathematical wavelengths millions of times smaller than those of visible light.
Tools Used in Digital
Image Processing
Light and the Electromagnetic
Spectrum (2)
2.1- Elements of
Visual Perception
=
2.2- Light and the
Electromagnetic
Spectrum
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Light and the Electromagnetic
Spectrum (5)
2.1- Elements of
Visual Perception
Electromagnetic waves can be visualized as propagating
2.2- Light and the sinusoidal waves with wavelength, or they can be thought of as a
Electromagnetic stream of mass-less particles, each traveling in a wavelike pattern
Spectrum and moving at the speed of light. Each mass-less particle contains
2.3- Image Sensing
a certain amount (or bundle) of energy. Each bundle of energy is
and Acquisition called a photon.
2.1- Elements of
Visual Perception
2.2- Light and the Light is a particular type of electromagnetic radiation that can be
Electromagnetic seen and sensed by the human eye.
Spectrum
2.3- Image Sensing The visible band of the electromagnetic spectrum spans the range
and Acquisition from approximately 0.43 micro m (violet) to about 0.79 micro m
2.4- Image Sampling
(red).
and Quantization
For convenience, the color spectrum is divided into six broad
2.5- Some Basic
Relationships
regions: Violet, Blue, Green, Yellow, Orange, and Red.
Between Pixels
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
The Origins of Digital Image
Processing (color)
2.1- Elements of
Visual Perception
The colors that humans perceive in an object are determined by
2.2- Light and the the nature of the light reflected from the object.
Electromagnetic
Spectrum
A body that reflects light and is relatively balanced in all visible
2.3- Image Sensing wavelengths appears white to the observer.
and Acquisition
2.4- Image Sampling A body that favors reflectance in a limited range of the visible
and Quantization
spectrum exhibits some shades of color.
2.5- Some Basic For example, green objects reflect light with wavelengths
Relationships primarily in the 500 to 570 nm range while absorbing most
Between Pixels of the energy at other wavelengths.
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
The Origins of Digital Image
Processing (Achromatic or Monochromatic)
2.1- Elements of
Visual Perception
2.2- Light and the Light that is void of color is called achromatic or
Electromagnetic
Spectrum monochromatic light.
2.4- Image Sampling The term gray level generally is used to describe monochromatic
and Quantization
intensity because it ranges from black, to grays, and finally to
2.5- Some Basic white.
Relationships
Between Pixels
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
The Origins of Digital Image
Processing (Chromatic light)
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
The Origins of Digital Image
Processing (Chromatic light)
2.1- Elements of
Visual Perception
Radiance is the total amount of energy that flows from the light
2.2- Light and the source, and it is usually measured in watts (W).
Electromagnetic
Spectrum
Luminance, measured in lumens (lm), gives a measure of the
2.3- Image Sensing amount of energy an observer perceives from a light source.
and Acquisition
For example, light emitted from a source operating in the
2.4- Image Sampling far infrared region of the spectrum could have significant
and Quantization energy (radiance), but an observer would hardly perceive it;
its luminance would be almost zero.
2.5- Some Basic
Relationships
Between Pixels Brightness is a subjective descriptor of light perception that is
practically impossible to measure. It embodies the achromatic
2.6- An Introduction
to the Mathematical notion of intensity and is one of the key factors in describing color
Tools Used in Digital sensation.
Image Processing
2.3 Image Sensing and
Acquisition
Image Sensing and Acquisition
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Introduction(1)
2.1- Elements of
Visual Perception
2.2- Light and the Incoming energy is transformed into a voltage by the
Electromagnetic
Spectrum combination of input electrical power and sensor material that is
responsive to the particular type of energy being detected.
2.3- Image Sensing
and Acquisition
The output voltage waveform is the response of the sensor(s),
2.4- Image Sampling and a digital quantity is obtained from each sensor by digitizing
and Quantization its response.
2.5- Some Basic
Relationships
Between Pixels
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Introduction(2)
2.1- Elements of
Visual Perception
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Image Sensing and Acquisition
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Image Acquisition Using a Single
Sensor
2.1- Elements of
Visual Perception
The most familiar sensor of this type is the photodiode
2.2- Light and the
Electromagnetic
Spectrum It is constructed of silicon materials and whose output voltage
waveform is proportional to light.
2.3- Image Sensing
and Acquisition
The use of a filter in front of a sensor improves selectivity. For
2.4- Image Sampling example, a green (pass) filter in front of a light sensor favors light
and Quantization in the green band of the color spectrum.
2.5- Some Basic
Relationships As a consequence, the sensor output will be stronger for green
Between Pixels light than for other components in the visible spectrum.
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Image Sensing and Acquisition
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Image Acquisition Using Sensor Strips
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Image Sensing and Acquisition
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Image Acquisition Using Sensor Arrays
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Image Acquisition Using Sensor Arrays
2.2- Light and the روش اص£لی ب£ه ک£ارگیری آرای£ه ای از حس£گرها در ش£کل قب£ل آم£ده اس£ت .این ش£کل،
Electromagnetic ان£رژی را از منب£ع روش£نائی نش£ان می ده£د ک£ه در ح£ال انعک£اس از ی£ک عنص£ر محیطی
Spectrum است.
2.3- Image Sensing
and Acquisition اولین ک£ار انج£ام ش£ده توس£ط سیس£تم تص£ویربرداری در این ش£کل جم£ع آوری ان£رژی
ورودی و متمرک£ز ک£ردن آن روی ص£فحه تص£ویر اس£ت .اگ£ر روش£نائی ن£ور باش£د ،بخش
2.4- Image Sampling
and Quantization
جل£وئی سیس£تم ،ی£ک ل£نز ن£وری اس£ت ک£ه ص£حنه دی£ده ش£ده را روی ص£فحه ک£انونی ل£نز
تصویربرداری می کند.
2.5- Some Basic
Relationships
Between Pixels آرای£ه حس£گر ،ک£ه مط£ابق ب£ا ص£فحه ک£انونی اس£ت ،خ£روجی ه£ائی را تولی£د می کن£د ک£ه
متناسب با انتگرال نور دریافتی در هر حسگر است.
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Image Sensing and Acquisition
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
A Simple Image Formation Model
2.2- Light and the تص£ویر را می ت£وان ی£ک ت£ابع دوبع£دی مث£ل ) f(x,yدر نظ£ر گ£رفت ک£ه xو y
Electromagnetic مختص£ات مک£انی هس£تند و دامن£ه fدر ه£ر جفت از مختص£ات ( ،)x,yش£دت ی£ا س£طح
Spectrum خاکس£تری تص£ویر در آن نقط£ه اس£ت .وق£تی xو yو مق£دار ش£دت fمتن£اهی و کمیت
هائی گسسته باشند ،تصویر را تصویر دیجیتال می نامیم.
2.3- Image Sensing
and Acquisition
مق£دار ی£ا دامن£ه fدر مختص£ات فض£ائی ( )x,yی£ک کمیت اس£کالر مثبت اس£ت ک£ه معن£ای
2.4- Image Sampling ف£یزیکی آن توس£ط منب£ع تص£ویر مش£خص می ش£ود .وق£تی تص£ویری از فراین£د ف£یزیکی
and Quantization
تولی£د می ش£ود ،مق£ادیر ش£دت آن متناس£ب ب£ا ان£رژیی اس£ت ک£ه توس£ط منب£ع ف£یزیکی
2.5- Some Basic ساطع شده است .در نتیجه ) f(x,yباید غیر صفر باشد.
Relationships
Between Pixels
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
A Simple Image Formation Model
2.1- Elements of
Visual Perception
: می تواند با دو مولفه مشخص شودf(x,y) تابع
2.2- Light and the .ود£اطع میش£ت س£دن اس£ال دی£ه در ح£فحه ای ک£ه روی ص£ع ک£نائی منب£میزان روش
Electromagnetic )(مولفه روشنائی
Spectrum
ه£ (مولف.حنه£ود در ص£یای موج£ط اش£ده توس£نائی منعکس ش£میزان روش
2.3- Image Sensing )انعکاسی
and Acquisition
2.1- Elements of
Visual Perception
2.2- Light and the Intensity of a monochrome image f at (x 0,y0): gray level l of the
Electromagnetic image at that point
Spectrum
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
A Simple Image Formation Model
2.1- Elements of
Visual Perception
In practice:
2.2- Light and the
Electromagnetic Lmin = Imin rmin
Spectrum
Lmax = Imax rmax
2.3- Image Sensing
and Acquisition e.g. for indoor image processing:
2.4- Image Sampling Lmin ≈ 10 Lmax ≈ 1000
and Quantization
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
& Basic concepts in Sampling
Quantization
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Basic concepts in Sampling &
Quantization
2.1- Elements of
Visual Perception .) را کوانتیزه کردن می گویندx,y( اختصاص یک مقدار شدت به هر جفت از مختصات
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Sampling & Quantization
2.1- Elements of
Visual Perception
Important terms for future discussion:
2.2- Light and the
Electromagnetic Z: set of real integers
Spectrum R: set of real numbers
2.3- Image Sensing
and Acquisition Sampling: partitioning xy plane into a grid
the coordinate of the center of each grid is a pair of
2.4- Image Sampling
and Quantization elements from the Cartesian product Z x Z (Z 2)
2.1- Elements of
Visual Perception
f(x,y) is a digital image if:
2.2- Light and the (x,y) are integers from Z2 and
Electromagnetic
Spectrum f is a function that assigns a gray-level value (from R) to
each distinct pair of coordinates (x,y) [quantization]
2.3- Image Sensing
and Acquisition
Gray levels are usually integers
2.4- Image Sampling then Z replaces R
and Quantization
2.1- Elements of
Visual Perception
2.2- Light and the Usually, in DIP these quantities are integer powers of two:
Electromagnetic
Spectrum
N=2n M=2m and G=2k (number of
gray levels)
2.3- Image Sensing
and Acquisition
Another assumption is that the discrete levels are equally spaced
2.4- Image Sampling between 0 and L-1 in the gray scale.
and Quantization
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Image Sampling and Quantization
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Representing Digital Images
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Representing Digital Images
2.1- Elements of
Visual Perception
The number , b, of bits required to store a digitized image is:
2.2- Light and the b=M*N*K
Electromagnetic When M=N, this equation becomes
Spectrum
b = (N2)*K
2.3- Image Sensing
and Acquisition
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Image Sampling and Quantization
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Spatial and Intensity Resolution
2.1- Elements of
Visual Perception 1250DPI 300DPI
2.3- Image Sensing ه£وان ب£ائی را میت£ دقت فض،ر کمی£از نظ
and Acquisition
ای£ه جفته£رد ک£ان ک£های مختلفی بی£روش
2.4- Image Sampling
and Quantization
150DPI 72DPI
اط££ و نق،له££د فاص££ر واح££ط در ه££خ
2.5- Some Basic داول£له مت£د فاص£ر واح£ل) در ه£(پیکس
Relationships
Between Pixels .ترین روشهاست
2.6- An Introduction خیص£ل تش£یر قاب£ترین تغی£ کوچک: دت£دقت ش
to the Mathematical
Tools Used in Digital .در سطح شدت است
Image Processing
Spatial and Intensity Resolution
2.1- Elements of
Visual Perception
How many samples and gray levels are required for a good
2.2- Light and the approximation?
Electromagnetic
Spectrum
Resolution (the degree of discernible detail) of an image
2.3- Image Sensing depends on sample number and gray level number.
and Acquisition
i.e. the more these parameters are increased, the closer the
2.4- Image Sampling digitized array approximates the original image.
and Quantization But: storage & processing requirements increase rapidly as
a function of N, M, and k
2.5- Some Basic
Relationships
Between Pixels
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Spatial and Intensity Resolution
2.1- Elements of
Visual Perception
2.2- Light and the Different versions (images) of the same object can be generated
Electromagnetic
Spectrum through:
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Spatial and Intensity Resolution
(Ex1)
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Spatial and Intensity Resolution
(Ex1)
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Spatial and Intensity Resolution
(Ex2)
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Spatial and Intensity Resolution
(Ex2)
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Spatial and Intensity Resolution
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Spatial and Intensity Resolution
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Detail Level
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Image Sampling and Quantization
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
)Image Interpolation(1
2.2- Light and the درونی£ابی ،فراین£د اس£تفاده از دادهه£ای ش£ناخته ب£رای ب£رآورد مق£ادیر در مکانه£ای
Electromagnetic ناشناخته است.
Spectrum
2.3- Image Sensing درونی£ابی نزدیک£ترین همس£ایه :روش£ی اس£ت ک£ه ب£ه ه£ر مک£ان جدی£د ،ش£دت
and Acquisition نزدیک£ترین همس£ایهاش در تص£ویر اص£لی را نس£بت میده£د .در این روش
احتمال نتیجه نامطلوب در خمیدگی شدید لبه ها مستقیم وجود دارد.
2.4- Image Sampling
and Quantization
درونی£ابی دوخطی :از چه£ار نزدیک£ترین همس£ایه ب£رای ب£رآورد ش£دت در
2.5- Some Basic مکان مورد نظر استفاده میشود.
Relationships
Between Pixels
درونی£ابی دو مکع£بی :ش£امل ش£انزده نزدیک£ترین همس£ایه ی£ک نقط£ه ب£رای
2.6- An Introduction برآورد است.
to the Mathematical
Tools Used in Digital
Image Processing
Suppose that we want to find the value of the unknown function fat the
point P = (x, y). It is assumed that we know the value of fat the four points Q11 =
(x1, y1), Q12 = (x1, y2), Q21 = (x2, y1), and Q22 = (x2, y2).
We first do linear interpolation in the x-direction. This yields
.We proceed by interpolating in the y-direction
2.1- Elements of
Visual Perception
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
2.5 Some Basic Relationships
Between Pixels
Some Basic Relationships Between
Pixels
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Some Basic Relationships Between
Pixels
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Some Basic Relationships Between
Pixels
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Neighborhood of a Pixel
2.1- Elements of
Visual Perception
2.2- Light and the A pixel p at (x,y) has 2 horizontal and 2 vertical neighbors:
Electromagnetic
Spectrum
(x+1,y), (x-1,y), (x,y+1), (x,y-1)
2.3- Image Sensing This set of pixels is called the 4-neighbors of p: N 4(p)
and Acquisition
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Some Basic Relationships Between
Pixels
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Adjacency, Connectivity, Regions, and
Boundaries
2.1- Elements of
Visual Perception
2.2- Light and the A pixel p at (x,y) has 2 horizontal and 2 vertical neighbors:
Electromagnetic
Spectrum
(x+1,y), (x-1,y), (x,y+1), (x,y-1)
2.3- Image Sensing This set of pixels is called the 4-neighbors of p: N 4(p)
and Acquisition
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Adjacency, Connectivity, Regions, and
Boundaries
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Adjacency, Connectivity, Regions, and
Boundaries
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Adjacency, Connectivity, Regions, and
Boundaries
2.1- Elements of
Visual Perception
Connectivity between pixels is important:
2.2- Light and the
Electromagnetic Because it is used in establishing boundaries of objects and
Spectrum components of regions in an image
2.3- Image Sensing
and Acquisition Two pixels are connected if:
They are neighbors (i.e. adjacent in some sense -- e.g.
2.4- Image Sampling
and Quantization
N4(p), N8(p))
Their gray levels satisfy a specified criterion of similarity
2.5- Some Basic (e.g. equality)
Relationships
Between Pixels
V is the set of gray-level values used to define adjacency (e.g.
2.6- An Introduction V={1} for adjacency of pixels of value 1)
to the Mathematical
Tools Used in Digital
Image Processing
Adjacency, Connectivity, Regions, and
Boundaries
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Adjacency, Connectivity, Regions, and
Boundaries
2.1- Elements of
Visual Perception
2.3- Image Sensing Its boundary (border, contour) is the set of pixels in R that have
and Acquisition at least one neighbor not in R
2.4- Image Sampling
and Quantization Edge can be the region boundary (in binary images)
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Path
2.1- Elements of
Visual Perception
A path (curve) from pixel p with coordinates (x,y) to pixel q with
2.2- Light and the coordinates (s,t) is a sequence of distinct pixels:
Electromagnetic
Spectrum
(x0,y0), (x1,y1), …, (xn,yn)
2.3- Image Sensing
and Acquisition
where (x0,y0)=(x,y), (xn,yn)=(s,t), and (xi,yi) is adjacent to
2.4- Image Sampling
and Quantization (xi-1,yi-1), for 1≤i ≤n ; n is the length of the path.
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Path
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Some Basic Relationships Between
Pixels
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Distance Measures (1)
2.1- Elements of
Visual Perception
For pixels p,q,z with coordinates (x,y), (s,t), (u,v), D is a
2.2- Light and the distance function or metric if:
Electromagnetic
Spectrum
D(p,q) ≥ 0 (D(p,q)=0 if p=q)
2.3- Image Sensing
and Acquisition D(p,q) = D(q,p)
D(p,z) ≤ D(p,q) + D(q,z)
2.4- Image Sampling
and Quantization
Euclidean distance:
2.5- Some Basic De(p,q) = [(x-s)2 + (y-t)2]1/2
Relationships
Between Pixels Points (pixels) having a distance less than or equal to r
from (x,y) are contained in a disk of radius r centered at
2.6- An Introduction (x,y).
to the Mathematical
Tools Used in Digital
Image Processing
Distance Measures (2)
2.1- Elements of
Visual Perception
D4 distance (City-Block Distance):
2.2- Light and the
Electromagnetic D4(p,q) = |x-s| + |y-t|
Spectrum
forms a diamond centered at (x,y)
2.3- Image Sensing e.g. pixels with D4≤2 from p
and Acquisition
2.1- Elements of
Visual Perception
یا فاصله بلوک شهریD4 فاصله
2.2- Light and the
Electromagnetic
Spectrum
2.6- An Introduction
to the Mathematical گانه بین نقاطm یا کوتاهترین مسیرDm فاصله
Tools Used in Digital
Image Processing
Distance Measures (4)
2.1- Elements of
Visual Perception
2.4- Image Sampling However, for m-connectivity the value of the distance (length
and Quantization of path) between two pixels depends on the values of the pixels
along the path and those of their neighbors.
2.5- Some Basic
Relationships
Between Pixels
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Distance Measures (5)
2.1- Elements of
Visual Perception
However, for m-connectivity the value of the distance (length
2.2- Light and the of path) between two pixels depends on the values of the
Electromagnetic pixels along the path and those of their neighbors.
Spectrum
2.5- Some Basic If only connectivity of pixels valued 1 is allowed, and p 1 and p3 are
Relationships
Between Pixels 0, the m-distance between p and p 4 is 2.
2.1- Elements of
Visual Perception (We consider 4-connectivity)
2.2- Light and the
Scan the image from left to right and top to bottom
Electromagnetic for every pixel (x,y) in the image consider p=f(x,y) r=f(x-1,y)
Spectrum q=f(x,y-1)
if p==0 , go to next pixel
2.3- Image Sensing else if p==1,
and Acquisition
if both neighbors are zero, assign new label to p and go to next
2.4- Image Sampling pixel
and Quantization if one of neighbors is 1 assign its label to p and go to next
pixel
2.5- Some Basic if they both are 1 and have the same label assign their label to
Relationships p and go to next pixel
Between Pixels
if they both are 1 and have different labels assign one of the
2.6- An Introduction
label to p and make a note that the labels are the same then go
to the Mathematical to next pixel
Tools Used in Digital End
Image Processing Scan the labels and re-label the connected components considering
equivalent labels.
2.6 An Introduction to the Mathematical
Tools Used in Digital Image Processing
An Introduction to the Mathematical Tools
Used in Digital Image Processing
2.1- Elements of
Visual Perception
Array Versus Matrix Operations
2.2- Light and the
Electromagnetic Linear versus Nonlinear Operations
Spectrum
2.1- Elements of
Visual Perception
Array
Array Versus
Versus Matrix
Matrix Operations
Operations
2.2- Light and the
Electromagnetic Linear versus Nonlinear Operations
Spectrum
2.1- Elements of
Visual Perception
2.1- Elements of
Visual Perception
Array Versus Matrix Operations
2.2- Light and the
Electromagnetic Linear versus
Linear versus Nonlinear
Nonlinear Operations
Operations
Spectrum
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Linear versus Nonlinear Operations
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
An Introduction to the Mathematical Tools
Used in Digital Image Processing
2.1- Elements of
Visual Perception
Array Versus Matrix Operations
2.2- Light and the
Electromagnetic Linear versus Nonlinear Operations
Spectrum
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Image Addition
(Averaging)
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Image Subtraction
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Image Subtraction
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Image Multiplication
(Division)
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Image Multiplication
(Division)
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
An Introduction to the Mathematical Tools
Used in Digital Image Processing
2.1- Elements of
Visual Perception
Array Versus Matrix Operations
2.2- Light and the
Electromagnetic Linear versus Nonlinear Operations
Spectrum
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
An Introduction to the Mathematical Tools
Used in Digital Image Processing
2.1- Elements of
Visual Perception
Array Versus Matrix Operations
2.2- Light and the
Electromagnetic Linear versus Nonlinear Operations
Spectrum
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Spatial Operations (1)
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Spatial Operations (2)
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Spatial Operations (3)
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Spatial Operations (4)
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
An Introduction to the Mathematical Tools
Used in Digital Image Processing
2.1- Elements of
Visual Perception
Array Versus Matrix Operations
2.2- Light and the
Electromagnetic Linear versus Nonlinear Operations
Spectrum
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
An Introduction to the Mathematical Tools
Used in Digital Image Processing
2.1- Elements of
Visual Perception
Array Versus Matrix Operations
2.2- Light and the
Electromagnetic Linear versus Nonlinear Operations
Spectrum
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Image Transforms (2)
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
An Introduction to the Mathematical Tools
Used in Digital Image Processing
2.1- Elements of
Visual Perception
Array Versus Matrix Operations
2.2- Light and the
Electromagnetic Linear versus Nonlinear Operations
Spectrum
2.1- Elements of
Visual Perception
2.6- An Introduction
to the Mathematical
Tools Used in Digital
Image Processing
Chapter 2 - The end