510 likes | 767 Views
Basics of digital image processing. Erkki Rämö. Digital image processing. Editing and interpreting of picture information Examples: Improving the visual quality of the image Removing an error from the image Automated interpretation of the image. Related disciplines. Group discussion 1.
E N D
Basics of digital image processing Erkki Rämö
Digital image processing • Editing and interpreting of picture information • Examples: • Improving the visual quality of the image • Removing an error from the image • Automated interpretation of the image
Group discussion 1 • Discuss application areas of digital image processing.
Where is image processing applied? • Biological research – cell studies
Lauri Toivio • Military research – interpretation of reconnaissance photos
Lauri Toivio • Document control – scanning, interpretation, archiving
Lauri Toivio • Industry automation – machine vision
Lauri Toivio • Forensics – Fingerprint analysis
Lauri Toivio • Medicine – x-ray image analysis
Lauri Toivio • Photography – Digital photography
Erkki Rämö • Space investigation
Erkki Rämö • Remote Sensing
Erkki Rämö • Mapping (eg. Google street view)
Erkki Rämö • Film industry
Visual image • Light = electromagnetic radiation • Different wavelengths of light reflect from the object and absorb to the object in different ways, depending on objects surfaces construction and material • Reflecting light is perceived with the eye-brain visual system as an image • Wavelength of visual light is 400 - 700 nm
Perceiving of the visual image What is needed: • Light source • Light bulb radiates light of some color • Target • which reflects part of the light and absorbs the rest • Eye • receives the signal • signal is interpreted by brain
Spectrum of light nm 10-6 10 103 109 Cosmic rays Gamma rays X- rays Infra- red Micro- wave UV Radio Visible light 400 nm 700 nm
Group discussion2 • List imaging applications working in different wavelengths. • Can you find imaging using else than electromagnetic radiation
Eyesight • Eye, visual nervetrack and brains visual centre form the human visual system • There’s no visual system better than the eye • Some animal eyes are better than human eye • Examples of ‘analog’ image processing • A paddle in the water, refraction of light in the interface of two substances • Image restoration by eyeglasses
The construction of the eye Cross-section of the human eye
Comparison between an eye and a camera • Similarities: • In the eye image is drawn upside down to the retina • Pupil works like the iris of the camera • Retina, with two types of visual cells, rods (about 120 million) and cones(about 7 million) • Differencies: • Focus by changing the refraction of the lense by means of the radial deformation
Visual cells of the eye • Rods • thousands of times more sensitive than cones. • responsible of dark vision • Cones • Responsible of seeing the colors • Three kinds: sensitive for blue-purple, green and red-yellow. • Peaks of sensitivity are in the wavelengths of 447 nm, 540 nm ja 577 nm
Anatomy of the eye • In the area of accurate sight, in the middle of the yellow-spots fovea there are no rods but plenty of cones. • Outside the fovea, accuracy of vision is poor • 5° from the fovea – only half of the accuracy • Only a small area of field of vision is seen accurate • Moving the eyeball we can focus on different details
Anatomy of the eye 2 • Sensitivity of visualcells to alteration of lighting is logarithmic • Webers law JND=K*I Where K is constant and JND (Just Noticable Difference) Example: 100 W lighting 10 W power increment. In 1000W lighting we need 100W increment for same result • Image: Intensitymustbedoubled to notice the samevisualdifference
Visual cells react with one another • Mach Band Effect • Eye works like a high pass filter sharpening the details • On the edge of the tone slope, dark color seems lighter and light color seems darker
Frequency response • How small details are still visible? • Influences: • Number and positioning of cells, elasticity of the eye, brain response, intensity of light
Procedure classes of image processing • Procedures have been developed already in1960’s, though due to lack of computing power they were hard to implement • Some procedures enhance the quality of the image • Others pick and analyze information from the image
5 Procedure classes 1. Image Enhancement 2. Image Restoration 3. Image Analysis 4. Image Compression 5. Image Synthesis
Image Enhancement • Most common procedure class • Can be used as independent enhancement method or as pre-operation for other methods, for example reducing the image before analysis
Erkki Rämö Image enhancement 2 • Goal is to enhance the visual quality of the image • contrast and brightness • noise reduction • sharpening
Lauri Toivio Example: adjusting contrast • Photoshop ”autolevels”, which implements the whole tone scale for the image
Image Restoration • Goal is to restore an image as original or • removal of known photographic error • Corrections: • Removal of geometric distortion • Removal of blur • Noise removal • Motion-blur removal
Example: enhancing sharpness • Photoshop ”Unsharp mask”
Image Analysis • As result there rarely is an image, but information about what’s in the image • Implemented in various tasks involving artificial vision
Image compression • Goal is to compress image-information so that it would consume less space • Pros • needs less space • faster transfer • Methods: • lossless compression(max 2:1) • lossy compression(max 100:1) • Based on redundant information in the image
Lauri Toivio Example: JPEG-compression 183 KB 17 KB
Image Synthesis • Image is built out of other images or • Visualization of non-image information • Used when: • taking a picture is not physically possible • fast and/or slow events • modelling an object which does not exist • Examples: • 2D images of projection images mathematically • visualization of chart information as an image
Construction of image processing application • Application can be divided into unit tasks • Application construction: • Applications • Fundamental Classes • Operations • Process
Lauri Toivio Application level • Basic description of application • Example application: • Capture video image of cars licence plate • Process and interpret the signs on the plate • Check register if the vehicle has any offense
Image processing part • Process image and identify letters and numbers as an array • In short: Read the signs of the licence plate
Process classes • Divide application into unit tasks • Image enhancing: Improve the image quality • Image analysis: Interpret the letters and numbers of the plate ZHO-408
Operations • Image enhancement: Improve the image quality • Contrast alteration: steepen the contrast • Edge highlighting: Outlines of signs • Image analysis: Interpretation of the letters and numbers of the plate • Detaching edges: Follow the outlines • Classification of objects: Fit vectors into images in model library
Methods • Contrast alteration: steepening of contrast • Contrast stretching as pixel operation • Edge highlighting: Outlines of symbols • Sobels edge highlighting algorithm • Finding edges: Follow the outlines • Edge finding algorithm • Classification of vectors: Fit vectors into images in model library