Illumination and Optics and just a bit on image formats.

Slides:



Advertisements
Similar presentations
24.6 Diffraction Huygen’s principle requires that the waves spread out after they pass through slits This spreading out of light from its initial line.
Advertisements

Option G: Electromagnetic Waves G2: Optical Instruments.
Chapter 24 Wave Nature of Light: © 2006, B.J. Lieb
Foundations of Physics
Lab 10: Lenses 1.Focal Length 2.Magnification 3.Lens Equation 4.Depth of Field 5.Spherical Aberrations and Curved Focal Plane 6.Chromatic Aberration 7.Astigmatism.
Chapter 24 Wave Optics.
Vision Basics Lighting II Vision Basics Lighting II ■ Contrast review ■ IR light ■ UV light ■ Dome light ■ Structured light.
Chapter 31 Images.
Chapter 23 Mirrors and Lenses.
Chapter 23 Mirrors and Lenses. Notation for Mirrors and Lenses The object distance is the distance from the object to the mirror or lens Denoted by p.
LIGHT. The spectrum consists of all wavelengths of electromagnetic energy. Visible light is only a small portion of this spectrum. The range of visible.
1 Laser Beam Coherence Purpose: To determine the frequency separation between the axial modes of a He-Ne Laser All sources of light, including lasers,
Chapter 23 Mirrors and Lenses.
Light: Geometric Optics
© 2005 Pearson Prentice Hall This work is protected by United States copyright laws and is provided solely for the use of instructors in teaching their.
Illumination for Vision Systems Lighting is the one area of installing a vision system that usually requires considerable experimentation. It is virtually.
The Hong Kong Polytechnic University Optics II----by Dr.H.Huang, Department of Applied Physics1 Interference Conditions for Interference: (i) (  2 
Copyright © 2009 Pearson Education, Inc. Chapter 32 Light: Reflection and Refraction.
Design Realization lecture 25 John Canny 11/20/03.
Chapter 23 Mirrors and Lenses.
Ch 25 1 Chapter 25 Optical Instruments © 2006, B.J. Lieb Some figures electronically reproduced by permission of Pearson Education, Inc., Upper Saddle.
Chapter 32 Light: Reflection and Refraction
© 2010 Pearson Education, Inc. Conceptual Physics 11 th Edition Chapter 28: REFLECTION & REFRACTION Reflection Principle of Least Time Law of Reflection.
Microscope.
1 Components of Optical Instruments, Cont… Lecture 7.
The wave nature of light Interference Diffraction Polarization
COMPUTER GRAPHICS CS 482 – FALL 2014 AUGUST 27, 2014 FIXED-FUNCTION 3D GRAPHICS MESH SPECIFICATION LIGHTING SPECIFICATION REFLECTION SHADING HIERARCHICAL.
Lenses Chapter 30.
Chapter 23 Mirrors and Lenses.
Fundamental of Optical Engineering Lecture 3.  Aberration happens when the rays do not converge to a point where it should be. We may distinguish the.
Photography Lesson 2 Pinhole Camera Lenses. The Pinhole Camera.
Magnifiers, Projectors, CamerasPaul Avery (PHY 3400)1 Magnifiers, Projectors, Cameras Applied Optics Paul Avery University of Florida
LIGHT.
Chapter 34 Lecture Eight: Images: II. Image Formed by a Thin Lens A thin lens is one whose thickness is small compared to the radii of curvature For a.
Chapter 23. Ray Optics Our everyday experience that light travels in straight lines is the basis of the ray model of light. Ray optics apply to a variety.
 When light strikes the surface of an object  Some light is reflected  The rest is absorbed (and transferred into thermal energy)  Shiny objects,
Quantum Theory of Light
Lenses Chapter 30. Converging and Diverging Lenses  Lens – a piece of glass which bends parallel rays so that they cross and form an image  Converging.
Lesson 25 Lenses Eleanor Roosevelt High School Chin-Sung Lin.
Chapter 36 Image Formation.
Light, Reflection, and Refraction Chapters 14 and 15.
Interference in Thin Films, final
Diffraction Introduction to Diffraction Patterns
1. What is depth of field? 2. Everything else equal, what effect will each of the following have on depth of field (larger, smaller?): -Larger aperture.
Light Reflection and Mirrors.  The Law of Reflection  When a wave traveling in two dimensions encounters a barrier, the angle of incidence is equal.
Lecture 26-1 Lens Equation ( < 0 )  True for thin lens and paraxial rays.  magnification m = h’/h = - q/p.
Chapter 6 Directional Effects of Lighting 1. © 2006 Fairchild Publications, Inc. Directional Effects Intensity and direction –An object’s appearance –Architectural.
The Nature of Light. Light Can Act Like Waves or In 1801 Thomas Young an English scientist did an experiment. –Double slit experiment Passed a beam of.
Industrial vision system components: Feedback Image analysis Optics and camera Digitalisation Illumination Object Data Industrial Vision:
The law of reflection: The law of refraction: Image formation
 Mirrors that are formed from a section of a sphere.  Convex: The reflection takes place on the outer surface of the spherical shape  Concave: The.
Reflection of Light. Reflectance u Light passing through transparent medium is transmitted, absorbed, or scattered u When striking a media boundary, light.
1Ellen L. Walker 3D Vision Why? The world is 3D Not all useful information is readily available in 2D Why so hard? “Inverse problem”: one image = many.
Notes taken from Gillette’s Designing with Light.
PHY 102: Lecture Wave Fronts and Rays 9.2 Reflection of Light
Mav Mark What are forms of the electromagnetic spectrum?
Part 10 Optics --Mirrors and Lenses Chapter 24 Geometric Optics.
Reflection and Refraction of Light From “College Physics” Serway and Faughn with modifications.
DISPERSIVE POWER OF A GRATING Dispersive power of a grating is defined as the ratio of the difference in the angle of diffraction of any two neighbouring.
Refraction & Lenses. Refraction of Light When a ray of light traveling through a transparent medium encounters a boundary leading into another transparent.
Light and Optics Part Three: Optics and Reflection.
Lecture 26-1 Lens Equation ( < 0 )  True for thin lens and paraxial rays.  magnification m = h’/h = - q/p.
Lecture 26-1 Lens Equation ( < 0 )  True for thin lens and paraxial rays.  magnification m = h’/h = - q/p.
Microscope.
Vision Basics Lighting I. Vision Basics Lighting I.
Chapter 23 Mirrors and Lenses © 2014 A. Dzyubenko.
Lens Equation ( < 0 ).
A. WAVE OPTICS B. GEOMETRIC OPTICS Light Rays
When to use them, why you should use them, and how they work!
Mirrors and Lenses Images can be formed by reflection from mirrors.
Presentation transcript:

Illumination and Optics and just a bit on image formats

Common Image Formats Bmp:Windows standard format is clumsy tiff: “Universal” format (tifflib) jpg: Excellent compression but has limitations gif: good graphics format pbm/pgm/ppm: simple formats (open source) png: portable net graphics (open source)

Pixel Representations 1 bit/pixel: binary 8 bits/pixel: grayscale 4/8/15/16 bits/pixel: palette based 24+ bits/pixel: “true color”

Image File Header Image header contain information specifying image size, image format, gamma and other related information “Raw” images have no headers and applications that can read them need manual input or are programmed only for special sizes and formats

Chromatic Aberration An optical aberration in which the component colours in a point source of white light are brought to a focus at different points; caused by the variation of the refractive index of the glass with wavelength. Machine vision applications can also be affected by infrared radiation!

Depth of Field Width of that region on either side of the focal plane, where the image produced by an optical system remains in focus. Normally, a large DOF is advantageous. In General, a small lens aperture and bright object illumination will improve the DOF. Depth of focus is the range of image distances over which the image remains sharp for a given object distance

Diffuse Illuminiation Illumination technique, projecting light onto a matt surface first. This acts as the illuminator for the object being viewed. Baffles avoid direct illumination of the object. Avoids sharp shadows and glinting due to specular reflection. A diffuser is made from translucent material, e.g. polypropylene, and used to produce diffuse illumination.

Diffuse Reflections Light returned from a matt (i.e. non shiny) surface is diffuse; light is scattered in all directions (above the object surface). It is not strongly polarized.

Specular Reflection Reflection of light (e.g. from a smooth polished or metallic surface) in which the angle of incidence is equal to the angle of reflection. This gives rise to Glinting

Distortion Defect of an optical system in which magnification varies with angular distance from the axis, causing straight lines to appear curved. Common distortion patterns are pincushion and barrel.

f-stop or f-number The ratio of the focal length of a lens to the diameter of its input aperture. For a given lens, reducing its f-number by closing its aperture, increases the image brightness and reduces the depth of field.

12: Coaxial Illumination Ideal for specular objects Camera and light source “coincide”

OBJECTIVE To provide diffuse illumination without causing glinting. TYPICAL APPLICATIONS Viewing small bright shiny objects, such as coins, electrical connectors, printed circuit boards, EQUIPMENT Small incandescent filament lamp, LED array or fibre-optic illuminator, diffusing plate & beam-splitter. GEOMETRY Mirror-like surfaces Complex, embossed, etc MATERIALS Bright metal surfaces Reflective plastic Lacquered / painted surfaces REMARKS Excellent images can be obtained from mirror-like surfaces, which are often difficult to view using other methods. It appears as though the widget is illuminated by light emanating from a small area, corresponding to the front of the camera lens. Since this produces a much narrower illumination beam than Method 11, it is very sensitive to the geometry of the widget surface; it can readily detect embossing, engraving, stippling creasing, dimples, pimples, scratches and pits. This method relies on producing specular reflection. Hence, the widget must have a well-defined shape and be held in fixed orientation, to ensure that glinting is visible to the camera.

11: Diffuse Front Illumination

OBJECTIVE To reduce the effects of glinting. TYPICAL APPLICATIONS Inspecting objects with shiny, nearly planar surfaces, to detect scratch es, crack s, pit s, embossing, engraving, etc. shiny object s. Suitable for CD s, coin s, electrical connector s, printed circuit board s, smooth plastic, glass, porcelain, etc. EQUIPMENT Bright flood lamp s (e.g. incandescent filament or fluorescent illuminator with a high-frequency driver) Diffusing screen with viewing aperture. This consists of a flat matt white board that has a small cut in its center. It may be necessary to fit a short tube (painted matt black on its inside surface) into this hole, to prevent light reaching the camera directly from the lamps. A secondary light source and beam-splitter are used to compensate for the dark aperture in the diffusing screen. GEOMETRY Mirror-like surfaces and nearly flat surfaces with embossing, engraving, etc. Can also be useful for more complex structure s, since it does not cast sharp shadows. MATERIALS Bright metal, smooth plastic, glass, porcelain, etc., lacquered / painted surface s. REMARKS Excellent images of defects such as scratches can be obtained from mirror-like surfaces, which may be difficult to view otherwise. The secondary light source and beam-splitter avoid creating a reflection of the camera when viewing a mirror-like surface. In some applications, it is possible to eliminate them altogether.

13: Grazing Illumination

OBJECTIVES To highlight shallow surface features, created by engraving, embossing, rolling, pressing, stamping, casting, moulding, etc To detect surface imperfections, such as scratch es, crack s, pit s, dirt, dust, grit, etc, on a smooth mirror-like surface. TYPICAL APPLICATIONS Inspecting flat machined metal surfaces, plastic, glass, glossy painted & lacquered surfaces, plastic sheeting, ceramic tiles, etc. EQUIPMENT Collimator. For close-range operation, it may not be necessary to use a collimator. In some applications, a very small ("point") source of light, such as a LED or fibre optic light guide, is adequate. CAMERA Array LENS Short focus MOTION Static GEOMETRY Nominally flat and smooth. Both depressions and raised features are visible. MATERIALS Any reflective surface REMARKS Care must be taken to prevent the camera from seeing a reflection of itself. (This can usually be achieved by tilting the widget slightly.) Linear feature s, such as scratches and cracks that are approximately normal to the light path are highlighted, Cliff-like edge s facing the light source tend to cause glinting, while those facing away create shadow s. Linear features that are nearly parallel to the light beam are suppressed.. This anisotropy can cause difficulties but is useful in certain situations.

17: Back Lighting of Matt Opaque Objects

OBJECTIVE To view silhouettes of non-shiny matt opaque objects. TYPICAL APPLICATIONS Dimensional measurement and inspection of laminate objects, such as flat metal stampings, pressings, plastic moulding s, leather cuttings, etc Dimensional measurement and inspection of a very wide range of 3D objects. EQUIPMENT Specialist back-light unit, or light box of the type used in hospitals for viewing X-rays. CAMERA Array MOTION Static GEOMETRY Thin laminate, or any 3D object in which the relevant measurements may be obtained from its silhouette. MATERIALS Opaque, non-reflective. REMARKS Back-lighting is ideal for shape analysis and high-precision metrology. It operates on the same principle as the industrial shadowgraph and hence is readily accepted by industrial engineers. It is one of the oldest and most important lighting-viewing methods used in Machine Vision, since it produces high-contrast image that are easy to process.

19: Back Illumination of Shiny Objects

OBJECTIVES To view the silhouette of a shiny object. TYPICAL APPLICATIONS Metrology and other applications where the edge contour must be located accurately. Dimensional measurement of extrusions and lathe-turned object s. EQUIPMENT Collimator and telecentric lens. Both of these must be larger than the widget. CAMERA Array MOTION Static GEOMETRY Particularly suitable for objects with spherical, cylindrical and conical surfaces. Appropriate for any elongated object whose outer edge is gently curved along the optical axis. Flat object s and those with sharp outer edges do not need the collimator, since the edge is well defined by the simpler technique (Method 17). MATERIALS Any shiny / glossy material (e.g. polished metal, smooth plastic, rubber, glass, ceramic ), painted, lacquered, wet, oily and waxy surfaces. REMARKS When viewing a shiny widget using the simpler technique (Method 17), we under-estimate the size of the widget dimensions. The collimator prevents reflections of non-paraxial rays occurring at points inside the outer edge.

20: Dark-Field Illumination

OBJECTIVE To view silhouettes of transparent objects. TYPICAL APPLICATIONS Shape analysis of glass and plastic bottles, jars, tumblers, etc. EQUIPMENT Light box, with thin black strip placed across its centre. CAMERA Line scan. MOTION Linear movement. MATERIALS Transparent / clear glass, plastic. Transluscent materials. REMARKS This method produces far better results than back-lighting on some transparent / transluscent objects, such as glass and plastic containers. When there is no object present, the line-scan camera receives no light at all, as it is facing the mask. A bottle, or jar, placed in the optical path receives light, which is diverted within and around the side walls, by refraction and internal reflection. Light therefore emerges to reach the camera, from those parts that are not illuminated directly from behind. Vertical edge s and sudden variations in wall thickness are high-lighted particularly well. Hence, embossing, cracks and features such as "bird-swings " (filament of glass hanging between the side walls, across the inside of a bottle) and "spikes " ("stalagmite" of glass protruding inwards from the base or side-wall of a jar) are all highlighted by this method.

21: Dark-Field Illumination

OBJECTIVE To view silhouettes of transparent objects. TYPICAL APPLICATIONS Shape analysis of glass and plastic bottles, jars, tumblers, etc. EQUIPMENT Light box, with thin black strip placed across its centre. MATERIALS Transparent / clear glass, plastic. Transluscent materials. CAMERA Array MOTION Static MATERIALS Transparent / clear glass, plastic. Transluscent materials REMARKS This method produces far better results than back-lighting on some transparent / transluscent objects, such as glass and plastic containers. When there is no object present, the camera receives no light at all, as it is facing the mask. A bottle, or jar, placed in the optical path receives light, which is diverted within and around the side walls, by refraction and internal reflection. Light therefore emerges to reach the camera, from those parts that are not illuminated directly from behind. Vertical edge s and sudden variations in wall thickness are high-lighted particularly well. Hence, embossing, cracks and features such as "bird-swings " (filament of glass hanging between the side walls, across the inside of a bottle) and "spikes " ("stalagmite" of glass protruding inwards from the base or side- wall of a jar) are all highlighted by this method.

25: Viewing Small Objects

OBJECTIVE To view small objects using a standard lens. TYPICAL APPLICATIONS Experimental work for prototype development, when viewing objects of approximate size 5-50 mm. EQUIPMENT Extension tubes fitted to standard lens. REMARKS The combination of a standard lens and an extension tube provides a convenient alternative to a macro lens that is suitable for prototype development in the laboratory. Extension tubes produce slightly superior picture quality, compared to short focus lens attachments but are more difficult to use. Extension tubes lenses are available in a range of powers. For the standard C-mount lens fitting, a useful set of tubes for experimental purposes consists of 20mm, 10mm, 5mm and a set of washers of various thickness. The effect of adding two or more extension tubes lenses is additive. When using extension tubes, care are should be taken to avoid vignetting.

28: Telecentric Lens

OBJECTIVE To view objects as if they were at an infinite distance from the camera, thereby eliminating parallax distortion TYPICAL APPLICATIONS Metrology. A number of other lighting-viewing methods rely on the use of telecentric lenses. EQUIPMENT Telecentric imaging system, consisting of a large lens (possibly Fresnel type, if a large objective element is required) and a smaller standard lens. Pinhole aperture. REMARKS The magnification of a telecentric imaging system is determined by the ratio of the focal lengths of the individual elements: f 2 /f 1. The optimal image quality is obtained with a very small pin-hole aperture, although this introduces a high optical loss. In this case, the widget must be brightly illuminated. Notice that the objective element must be at least as large as the widget. Telecentric lenses of diameter up to 475 mm are available commercially. To obtain an even larger field of view (up to 2m diameter), plastic Fresnel lenses may be used. (It may be necessary to use monochromatic light, to eliminate "rainbows" around high-contrast edges,.) Fresnel lenses (30 cm diameter) intended for overhead projectors can be used. to produce a low-cost telecentric system. Cylindrical- telecentric lenses are also available for line-scan cameras.

Polarized Light

By controlling lighting conditions, specular reflections can be removed from surfaces from any viewing angle. Provided the subject is illuminated with polarized light and a polarizing filter (sometimes called an analyzer) is placed over the camera lens. Illuminating with polarized light causes all surface specular reflections to be entirely composed of polarized light and thus can be removed by the analyzer and the camera lens. Total elimination of the specular components is achieved when the analyzer and polarizer are at right angles to the other. It is also possible to align the analyzer with the polarized light to attenuate diffuse reflections. This will nearly double the contrast of specular features relative to the diffuse background.

Front and Back Illumination

OBJECTIVE To provide a method for viewing opaque objects which are pierced, so that edge and internal/surface feature s can be seen simultaneously. TYPICAL APPLICATION Inspecting printed circuit boards, to verify that the holes and pads are aligned. EQUIPMENT Back-lighting unit and flood lamp s. Color filter s (optional) CAMERA Color or monochrome array camera MOTION Static GEOMETRY Has holes MATERIALS Opaque, non-shiny, shiny traces on PC boards REMARKS The color filters allow the images from the silhouette and front face to be separated or combined, as appropriate. Another simpler optical arrangement is possible, by simply omitting the color filters. In this case, a monochrome camera can be used and the intensity of the front and back illumination sources must be carefully balanced, to ensure that the surface features and silhouette can both be seen clearly.

Types of illumination Incandescent illumination produces broadband radiation via a hot glowing filament. Common incandescent sources produce much more radiation in the red portion of the spectrum. May use DC supply for constant light output. Most of the supplied power is dissipated as heat. Fluorescent illumination is a mixture of different phosphors to produce “white” light. Single phosphor sources are available. May use high-frequency supply for constant light output. Gas discharge lights produce intense illumination with various spectra depending on gas used. Strobe sources use this type of lamp. LEDs produce monochromatic illumination and can use a DC supply for constant light output. Lasers provide monochromatic coherent illumination but the coherence can cause strong interference patterns.