5th Intensive Course on Soil Micromorphology Naples 2001 12th - 14th September Image Analysis Lecture 5 Thresholding/Segmentation.

Slides:



Advertisements
Similar presentations
5th Intensive Course on Soil Micromorphology Naples th - 14th September Image Analysis Lecture 5 Thresholding/Segmentation.
Advertisements

5th Intensive Course on Soil Micromorphology Naples th - 14th September Image Analysis Lecture 8 Introduction to Binary Morphology.
5th Intensive Course on Soil Micromorphology Naples th - 14th September Image Analysis Lecture 3 Image Processing/Analysis Basic Requirements.
5th Intensive Course on Soil Micromorphology Naples th - 14th September Image Analysis Lecture 10 Advanced Image Restoration Other Methods - Batch.
5th Intensive Course on Soil Micromorphology Naples th - 14th September Image Analysis Lecture 6 Morphological Segmentation Orientation Analysis.
5th Intensive Course on Soil Micromorphology Naples th - 14th September Image Analysis Lecture 1 Introduction.
5th Intensive Course on Soil Micromorphology Naples th - 14th September Image Analysis Lecture 9 Grey-Level Morphology and Multi-Spectral Methods.
A Graph based Geometric Approach to Contour Extraction from Noisy Binary Images Amal Dev Parakkat, Jiju Peethambaran, Philumon Joseph and Ramanathan Muthuganapathy.
Photoshop Lab colorspace A quick and easy 26 step process for enhancing your photos.
Digital Image Processing
Grey Level Enhancement Contrast stretching Linear mapping Non-linear mapping Efficient implementation of mapping algorithms Design of classes to support.
Computational Biology, Part 23 Biological Imaging II Robert F. Murphy Copyright  1996, 1999, All rights reserved.
Chapter 3 Image Enhancement in the Spatial Domain.
Chapter - 2 IMAGE ENHANCEMENT
Document Image Processing
1Ellen L. Walker ImageJ Java image processing tool from NIH Reads / writes a large variety of images Many image processing operations.
E.G.M. PetrakisFiltering1 Linear Systems Many image processing (filtering) operations are modeled as a linear system Linear System δ(x,y) h(x,y)
Lecture 07 Segmentation Lecture 07 Segmentation Mata kuliah: T Computer Vision Tahun: 2010.
Morphology – Chapter 10. Binary image processing Often it is advantageous to reduce an image from gray level (multiple bits/pixel) to binary (1 bit/pixel)
Each pixel is 0 or 1, background or foreground Image processing to
Introduction to Morphological Operators
Adobe Photoshop CS4 – Illustrated Unit G: Creating Special Effects
Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image can be encoded.
Digital Image Processing: Revision
Multimedia Data Introduction to Image Processing Dr Mike Spann Electronic, Electrical and Computer.
1 Vladimir Botchko Lecture 4. Image Enhancement Lappeenranta University of Technology (Finland)
Computer Vision Basics Image Terminology Binary Operations Filtering Edge Operators.
Chapter 9.  Mathematical morphology: ◦ A useful tool for extracting image components in the representation of region shape.  Boundaries, skeletons,
CS 6825: Binary Image Processing – binary blob metrics
DEVELOPMENT OF ALGORITHM FOR PANORAMA GENERATION, AND IMAGE SEGMENTATION FROM STILLS OF UNDERVEHICLE INSPECTION Balaji Ramadoss December,06,2002.
University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell Image processing.
September 23, 2014Computer Vision Lecture 5: Binary Image Processing 1 Binary Images Binary images are grayscale images with only two possible levels of.
Multimedia Data Introduction to Image Processing Dr Sandra I. Woolley Electronic, Electrical.
Computational Biology, Part 23 Biological Imaging III G. Steven Vanni Robert F. Murphy Copyright  1998, All rights reserved.
Morphological Image Processing
Lecture 03 Area Based Image Processing Lecture 03 Area Based Image Processing Mata kuliah: T Computer Vision Tahun: 2010.
AdeptSight Image Processing Tools Lee Haney January 21, 2010.
Course Website: Digital Image Processing Image Enhancement (Spatial Filtering 1)
1 Statistics, Data Analysis and Image Processing Lectures Vlad Stolojan Advanced Technology Institute University of Surrey.
Course 2 Image Filtering. Image filtering is often required prior any other vision processes to remove image noise, overcome image corruption and change.
Computational Biology, Part 22 Biological Imaging II Robert F. Murphy Copyright  1996, 1999, All rights reserved.
1 Regions and Binary Images Hao Jiang Computer Science Department Sept. 24, 2009.
Digital Image Processing CSC331 Morphological image processing 1.
Creating a Silhouette in Illustrator. Go File>Place and place the photo on the artboard. Select the photo and click Live Trace (its on the tool bar right.
1 Machine Vision. 2 VISION the most powerful sense.
CS654: Digital Image Analysis
October 1, 2013Computer Vision Lecture 9: From Edges to Contours 1 Canny Edge Detector However, usually there will still be noise in the array E[i, j],
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
TOPIC 12 IMAGE SEGMENTATION & MORPHOLOGY. Image segmentation is approached from three different perspectives :. Region detection: each pixel is assigned.
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
Image-Pro Premier Basic Training Course Part 7 - Image Enhancements.
Course 3 Binary Image Binary Images have only two gray levels: “1” and “0”, i.e., black / white. —— save memory —— fast processing —— many features of.
Chapter 6 Skeleton & Morphological Operation. Image Processing for Pattern Recognition Feature Extraction Acquisition Preprocessing Classification Post.
5th Intensive Course on Soil Micromorphology Naples th - 14th September Image Analysis Lecture 8 Introduction to Binary Morphology.
Morphological Image Processing (Chapter 9) CSC 446 Lecturer: Nada ALZaben.
Introduction to Digital Image Analysis Kurt Thorn NIC.
HADI Tutorial Void Inspection Contents 1.Basic Void Inspection Procedure 2.Smooth ROI 3.Background Processing (Flatten BG) 4.Thresholding (Void.
CSE 554 Lecture 1: Binary Pictures
Edge Detection CS 678 Spring 2018.
Lecture 8 Introduction to Binary Morphology
Computer Vision Lecture 5: Binary Image Processing
Computer Vision Lecture 9: Edge Detection II
Binary Image Analysis used in a variety of applications:
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
CS Digital Image Processing Lecture 5
Introduction to Digital Image Analysis Part II: Image Analysis
Winter in Kraków photographed by Marcin Ryczek
DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.)
Binary Image Analysis used in a variety of applications:
Morphological Filters Applications and Extension Morphological Filters
Presentation transcript:

5th Intensive Course on Soil Micromorphology Naples th - 14th September Image Analysis Lecture 5 Thresholding/Segmentation

5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation Thresholding: basic interactive methods manual editting removal of isolated Noise pixels using SigmaScan using HIT/MISS filters. pre-use of low-pass filters to overcome illumination problems

5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation From Lecture 3: Optimum threshold occurs at minimum in intensity histogram But minimum not always present when it is, non-uniform illumination or other illumination issues can prevent ideal segmentation and editting is needed

5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation Often individual particles may touch Or features have holes in them caused by illumination problems

5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation Removing holes using Sigmascan manually using Sigmascan other software using feature analysis facilities [lecture 7 will cover feature analysis in depth] Separating touching particles: manual approach - used in this course A problem: When is a particle one particle or two touching particles?

5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation a) f)e)d) c) b) Which, if any, of above are considered as touching particles, and which are single particles?

5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation Filling Holes - SigmaScan Method - Step 1 Select best threshold mannually

5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation Filling Holes - SigmaScan Method - Step 2 Edge particles are not filled

5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation Filling Holes - SigmaScan Method - Step 3 Remove edge features

5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation Removing holes - Sigmascan - summary threshold image in manner covered in practical yesterday display threshold in say RED overlay use OVERLAY/MATHS - Fill Holes option if required use OVERLAY/MATHS - Delete Edge objects

5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation Threshold image as well as possible [particle white/background black] Use particle/feature analysis program Select background, and specify minimum area of feature to be much larger than largest hole. This should identify only background and not holes. Makes background white and particles black Negate image so that particles are now white Alternative Approach: where analysis is NOT done in overlay plane:

5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation Manual Editting - to separate particles - step 1 Check drawing mode overlay is green [measurements/settings/o verlays]. Also check pen thickness is 3 pixels Use annotation tool to draw separation

5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation Manual Editting - to separate particles - step 2 Annotation will normally be more than needed, so we need to identify the region which has both the green and red overlay i.e. blue in figure. Select OVERLAY/MATH and options as shown.

5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation Manual Editting - to separate particles - step 3 Blue shows where breaks should be - so above OVERLAY/MATH option will only show where particles are and not join.

5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation Problem where thresholding leaves small isolated pixels. Where software has facilities for HIT and MISS transform, this may be used. With SigmaScan the following may be used.

Threshold image into overlay RED OVERLAY/Filters as above gives image at bottom left - i.e. and erosion has reduced size of large particle, but removed small isolated pixels 5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation NOTE: this is equivalent to normal erosion

5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation Threshold image into overlay RED OVERLAY/Filters as above gives image at bottom left - i.e. and erosion has reduced size of large particle, but removed small isolated pixels

5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation Using original RED overlay again. OVERLAY/Filters as above gives image at bottom left - i.e. boundary of large particle is highlighted.

5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation With image at top left: OVERLAY/Maths Select options as above - i.e.where overlay is either green or blue colour output yellow. YELLOW overlay has desired result.

5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation Hit and Miss Filters: - background Most filters operate by using a multiplier for each pixel in an area defined by a kernel. In this example the output image is determined by multiplying the pixel value in question by 2 and all the 8 neighbouring ones by 1. The kernel may be any size from 1 pixel up to almost any size, but many analysis facilities limit overall size (e.g. SigmaScan has a limit of 9 x 9 pixels).

5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation Hit and Miss Filters: These operate differently and only on BINARY IMAGES: a typical HIT and MISS Filter In the example, the kernel is passed over a binary image. The corresponding pixels in the output image are only ste to 1 if the kernel exactly matches the image at the location. In this example, this match only occurs for isolated noise pixels. Many HIT and MISS algorithms, have the ability to directly subtract the output value from the input image and in this way isolated pixels of noise can be removed directly.

5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation Low Pass Filters: Smooth the image over a large radius may be helpful when there is non-uniform illumination which would otherwise cause problems during thresholding. Image has non uniform illumination: It may be possible to generate a blank image to subtract from original. Otherwise, an approximation can be used. Process is known as image restoration

5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation When a calibration image is available prepare a blank slide of resin of same thickness as normal thin sections. Photograph under same illumination conditions as for slide of interest. Intensity of background may not be exactly same in both images

5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation Identify the intensity in both the actual (Ia) and calibration image (Io) at several locations corresponding to background find the ratio (R) of these intensities Ia/Io Subtract from actual image R * calibration image This should give a good estimate of restored image - usually better than using uncalibrated approach. NOTE: In SIGMASCAN there is no direct way to add/subtract/ multiply an image by a constant - this must be done indirectly using Image/Filter and Image/Maths

5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation Modification to procedure for SIGMASCAN find the ratio (R) of these intensities Ia/Io as above Use calibration image and filter using following custom filter. Note: the divisor should be set to value 100 / R. In this case R = 1.96 and divisor = 100/1.96 = 51

5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation STEP 1: when a calibration illumination image IS NOT VAILABLE. generate image averaged over large radius Image averaged using a filter radius of 72. Radius must be chosen carefully and be larger than size of features of interest. Usually some experimentation is necessary to find optimum radius

5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation STEP 2: subtract averaged image from original Though not perfect, the background illumination has been supressed making thresholding much easier.

5th Intensive Course on Soil Micromorphology - Naples 2001 Image Analysis - Lecture 5: Thresholding/Segmentation Thresholding in many cases is not easy Aim to get good contrast of features of interest Minimise problems of non-uniform illumination May need Manual Editing to separate touching particles or fill holes or remove noise Accuracy of result will depend on the segmentation and care is needed Subjectivity may cause problems between different operators Concluding Remarks