Horizontal Vertical. Horizontal Vertical

Similar documents
Implementing Morphological Operators for Edge Detection on 3D Biomedical Images

MATHEMATICAL MORPHOLOGY AN APPROACH TO IMAGE PROCESSING AND ANALYSIS

Zhan Chen and Israel Koren. University of Massachusetts, Amherst, MA 01003, USA. Abstract

Content Based Image Retrieval Using Color Histogram

White Intensity = 1. Black Intensity = 0

An Image Matching Method for Digital Images Using Morphological Approach

Gray Image Reconstruction

Alternative Methods for Counting Overlapping Grains in Digital Images

Chapter 17. Shape-Based Operations

DIGITAL IMAGE PROCESSING Quiz exercises preparation for the midterm exam

CS534 Introduction to Computer Vision. Linear Filters. Ahmed Elgammal Dept. of Computer Science Rutgers University

Binary Opening and Closing

An Hybrid MLP-SVM Handwritten Digit Recognizer

GENERALIZATION: RANK ORDER FILTERS

A COMPARISON OF ARTIFICIAL NEURAL NETWORKS AND OTHER STATISTICAL METHODS FOR ROTATING MACHINE

Scrabble Board Automatic Detector for Third Party Applications

More image filtering , , Computational Photography Fall 2017, Lecture 4

Automatic Vehicles Detection from High Resolution Satellite Imagery Using Morphological Neural Networks

Fast identification of individuals based on iris characteristics for biometric systems

NON UNIFORM BACKGROUND REMOVAL FOR PARTICLE ANALYSIS BASED ON MORPHOLOGICAL STRUCTURING ELEMENT:

Segmentation using Saturation Thresholding and its Application in Content-Based Retrieval of Images

Lecture # 01. Introduction

License Plate Localisation based on Morphological Operations

Traffic Sign Recognition Senior Project Final Report

A Novel Morphological Method for Detection and Recognition of Vehicle License Plates

IMPLEMENTATION USING THE VAN HERK/GIL-WERMAN ALGORITHM

Method to acquire regions of fruit, branch and leaf from image of red apple in orchard

ARRAY PROCESSING FOR INTERSECTING CIRCLE RETRIEVAL

Segmentation Extracting image-region with face

Advanced Maximal Similarity Based Region Merging By User Interactions

The number of mates of latin squares of sizes 7 and 8

AN ADAPTIVE MORPHOLOGICAL FILTER FOR DEFECT DETECTION IN EDDY

Fig Color spectrum seen by passing white light through a prism.

Differentiation of Malignant and Benign Masses on Mammograms Using Radial Local Ternary Pattern

Automatic Locating the Centromere on Human Chromosome Pictures

Experiments with An Improved Iris Segmentation Algorithm

An Improved Bernsen Algorithm Approaches For License Plate Recognition

VEHICLE LICENSE PLATE DETECTION ALGORITHM BASED ON STATISTICAL CHARACTERISTICS IN HSI COLOR MODEL

TED TED. τfac τpt. A intensity. B intensity A facilitation voltage Vfac. A direction voltage Vright. A output current Iout. Vfac. Vright. Vleft.

A New Framework for Color Image Segmentation Using Watershed Algorithm

AUTOMATIC DETECTION OF HEDGES AND ORCHARDS USING VERY HIGH SPATIAL RESOLUTION IMAGERY

Iris based Human Identification using Median and Gaussian Filter

Finger print Recognization. By M R Rahul Raj K Muralidhar A Papi Reddy

Introduction. Chapter Time-Varying Signals

Image processing for gesture recognition: from theory to practice. Michela Goffredo University Roma TRE

Keerthi Heragu Michael L. Bushnell Vishwani D. Agrawal. Dept. of Electrical & Computer Eng. Dept. of Electrical & Computer Eng.

IMAGE PROCESSING PROJECT REPORT NUCLEUS CLASIFICATION

Image analysis. CS/CME/BIOPHYS/BMI 279 Fall 2015 Ron Dror

An Improved Binarization Method for Degraded Document Seema Pardhi 1, Dr. G. U. Kharat 2

AERODYNAMIC NOISE RADIATED BY THE INTERCOACH SPACING AND THE BOGIE OF A HIGH-SPEED TRAIN

MATLAB 6.5 Image Processing Toolbox Tutorial

中国科技论文在线. An Efficient Method of License Plate Location in Natural-scene Image. Haiqi Huang 1, Ming Gu 2,Hongyang Chao 2

Application of Machine Vision Technology in the Diagnosis of Maize Disease

INDIAN VEHICLE LICENSE PLATE EXTRACTION AND SEGMENTATION

COLOR LASER PRINTER IDENTIFICATION USING PHOTOGRAPHED HALFTONE IMAGES. Do-Guk Kim, Heung-Kyu Lee

Chapter 3 Part 2 Color image processing

An Efficient Color Image Segmentation using Edge Detection and Thresholding Methods

Digital Image Processing

Recognition System for Pakistani Paper Currency

Published by: PIONEER RESEARCH & DEVELOPMENT GROUP ( 1

Main Subject Detection of Image by Cropping Specific Sharp Area

A Histogram based Algorithm for Denoising Images Corrupted with Impulse Noise

Decision Based Median Filter Algorithm Using Resource Optimized FPGA to Extract Impulse Noise

Design of Temporally Dithered Codes for Increased Depth of Field in Structured Light Systems

Iris Recognition using Histogram Analysis

Carmen Alonso Montes 23rd-27th November 2015

Tan-Hsu Tan Dept. of Electrical Engineering National Taipei University of Technology Taipei, Taiwan (ROC)

Research Seminar. Stefano CARRINO fr.ch

Image Segmentation of Historical Handwriting from Palm Leaf Manuscripts

Semi-automatic method for a built-up area intensity survey using morphological granulometry

Efficient 2-D Structuring Element for Noise Removal of Grayscale Images using Morphological Operations

Computer Graphics (CS/ECE 545) Lecture 7: Morphology (Part 2) & Regions in Binary Images (Part 1)

Multi Viewpoint Panoramas

Automated Detection of Early Lung Cancer and Tuberculosis Based on X- Ray Image Analysis

An Improved Method of Computing Scale-Orientation Signatures

AN EFFICIENT ALGORITHM FOR THE REMOVAL OF IMPULSE NOISE IN IMAGES USING BLACKFIN PROCESSOR

Displacement Measurement of Burr Arch-Truss Under Dynamic Loading Based on Image Processing Technology

Modelling, Simulation and Computing Laboratory (msclab) School of Engineering and Information Technology, Universiti Malaysia Sabah, Malaysia

An Algorithm and Implementation for Image Segmentation

Digital Image Processing. Lecture # 6 Corner Detection & Color Processing

A moment-preserving approach for depth from defocus

COLOR IMAGE SEGMENTATION USING K-MEANS CLASSIFICATION ON RGB HISTOGRAM SADIA BASAR, AWAIS ADNAN, NAILA HABIB KHAN, SHAHAB HAIDER

A new seal verification for Chinese color seal

Real Time Word to Picture Translation for Chinese Restaurant Menus

Segmentation of Fingerprint Images

Presented at SPIE Conf. Image Algebra and Morphological Image Processing II Conference 1568, pp , July 23-24, 1991, San Diego, CA.

Image Enhancement in Spatial Domain: A Comprehensive Study

Enhanced MLP Input-Output Mapping for Degraded Pattern Recognition

Introduction to computer vision. Image Color Conversion. CIE Chromaticity Diagram and Color Gamut. Color Models

ELEC Dr Reji Mathew Electrical Engineering UNSW

Multicomponent Multidimensional Signals

RESEARCH PAPER FOR ARBITRARY ORIENTED TEAM TEXT DETECTION IN VIDEO IMAGES USING CONNECTED COMPONENT ANALYSIS

Stochastic Screens Robust to Mis- Registration in Multi-Pass Printing

A DEVELOPED UNSHARP MASKING METHOD FOR IMAGES CONTRAST ENHANCEMENT

form. One of the issues to be studied is precisely at what point in the overall clearing process to capture the check image and thus truncate the pape

Target detection in side-scan sonar images: expert fusion reduces false alarms

Detection of License Plates of Vehicles

COMPUTER-AIDED DETECTION OF CLUSTERED CALCIFICATION USING IMAGE MORPHOLOGY

Textured reductions for document image analysis

GRANULOMETRIC MAPS FROM HIGH RESOLUTION SATELLITE IMAGES

Transcription:

LOCAL GRAYSCALE GRANULOMETRIES BASED ON OPENING TREES LUC VINCENT Xerox 9 Centennial Drive, Peabody, MA 196, USA Proc. ISMM'96, International Symposium on Mathematical Morphology, Atlanta GA, May 1996, pp. 273{28, Kluwer Academic Publishers Abstract. Granulometries are morphological image analysis tools that are particularly useful for estimating object sizes in binary and grayscale images, or for characterizing textures based on their pattern spectra (i.e., granulometric curves). Though granulometric information is typically extracted globally for an image or a collection of images, local granulometries can also be useful for such applications as segmentation of texture images. However, computing local granulometries from a grayscale image by means of traditional sequences of openings and closings is either prohibitively slow, or produces results that are too coarse to be really useful. In the present paper, using the concept of opening trees proposed in [14], new local grayscale granulometry algorithms are introduced, that are both accurate and ecient. These algorithms can be used for any granulometry based on openings or closings with line segments or combinations of line segments. Among others, these local granulometries can be used to compute size transforms directly from grayscale images, a grayscale extension of the concept of an opening function. Other applications include adaptive openings and closings, as well as granulometric texture segmentation. Key words: Algorithms, Local Grayscale Granulometries, Opening Trees, Mathematical Morphology, Pattern Spectrum, Size Transforms, Texture Segmentation. 1. Introduction, Motivations The concept of granulometries, introduced in the late sixties by G. Matheron [8, 9], provides a consistent framework for analyzing object and structure sizes in images. A granulometry can simply be dened as a decreasing family of openings (See [11]),=(n) n: 8n ;m ; n m =) n m: (1) Though this denition was originally meant in the context of binary image processing, it directly extends to grayscale. Moreover, granulometries \by closings" can also be dened as families of increasing closings. Performing the granulometric analysis of an image I with, is equivalent to mapping each opening size n with a measure m(n(i)) of the opened image n(i). This measure is typically chosen to be the area (number of ON pixels) in the binary case, and the volume (sum of all pixel values) in the grayscale case. The granulometric curve, or pattern spectrum [7] of I with respect to,, denoted PS (I) is then dened as the following mapping: 8n >; PS (I)(n) =m(n(i)), m(n,1(i)); (2)

2 LUC VINCENT The pattern spectrum PS (I) mapseach size n to some measure of the bright image structures with this size. By duality, the concept of pattern spectra extends to granulometry by closings, and is used to characterize size of dark image structures. Granulometries are therefore primarily useful to extract global size information from images. For example, in [15, 14], granulometries based on openings with squares were used to directly extract dominant bean diameter from binary images of coee beans; no segmentation (separation of touching beans) was required whatsoever. Similarly, Fig. 1 illustrates how granulometries can be used to robustly estimate structure size in grayscale images without any prior segmentation 1. In other applications, granulometric curves are considered as feature vectors that characterize image texture and are used for classication. Though the discriminating power of these curves has theoretical limitations [1], experiments with automatic plankton identication from towed video microscopy images [2, 12] proved that granulometries can provide extremely reliable set of features (see Fig. 2). The ability of granulometries to characterize textures makes it natural to think of using them locally for texture image segmentation [1, 3, 5]. Unfortunately, without special-purpose hardware, image segmentation using local granulometries can be an extremely slow process. Even the relatively ecient technique described in [5] requires a signicant amount of computing power, as well as large amounts of memory. Based on the concept of opening trees proposed in [14], new ecient local grayscale granulometry algorithms are introduced in the present paper. Section 2 rst provides some reminders on opening trees and derived algorithms. In Section 3, these techniques are shown to be naturally suited to the extraction of local granulometries. Applications include the ecient extraction of grayscale size transforms [16], in which each image pixel is mapped to the size of the dominant bright (resp. dark) structure it is part of a grayscale extension of the concept of an opening transform [6, 15]. The robustness of the proposed algorithms generally increases when the local granulometries are computed over a moving window. Ecient algorithms are also proposed for this case. All the techniques described work for granulometries with linear openings/closings and combinations thereof, some of which approximating the isotropic case. 2. Background on Opening Trees Fast algorithms were proposed in [14] for linear grayscale granulometries and grayscale granulometries using openings (resp. closings) with combinations of linear structuring elements. One of the key concepts introduced there is that of an opening tree: given an image cross-section in any orientation, an opening tree T can be used to compactly represent the successive values of each pixel of this cross-section when performing linear openings of increasing size in orientation. The opening tree therefore captures the entire granulometric information for this cross-section, as illustrated in Fig. 3. Opening trees can be eciently extracted from a gray image I in any orientation. They are especially useful for computing granulometries with maxima of linear 1 Images gracefully provided by DMS, CSIRO, Australia.

OPENING TREES AND LOCAL GRANULOMETRIES 3 (a) (b) 35 3 Horizontal Vertical 14 12 Horizontal Vertical 25 1 2 8 15 6 1 4 5 2 5 1 15 2 25 3 (c) 5 1 15 2 25 3 (d) Fig. 1. Use of linear grayscale granulometries to estimate dominant width of white patterns in X-ray images of welds: curves in (c) clearly indicate that typical width of the white patterns in (a) is 4 pixels. Similarly, pattern spectra (d) show that typical pattern width in image (b) is 12 pixels. Vertical and horizontal granulometries provide the same answer in each case. On these 512 512 images, extraction of each curve takes about.2s on a Sun Sparc Station 1, using the algorithms introduced in [14]. openings in two orientations 1 and 2: each pixel p of I is mapped to a leaf of opening tree T 1 and to a leaf of opening tree T 2. By following these two trees simultaneously down to their root, the successivevalues of p through maxima of linear openings in directions 1 and 2 are eciently derived. The corresponding granulometric curve ofi follows immediately. This technique extends to acombination of any number of linear openings (resp. linear closings). Furthermore, pseudogranulometries by minima of linear openings (resp. maxima of linear closings) can also be derived. While minima of linear openings are generally of little practical value, pseudo-granulometries based on such families of transforms tend to capture the same information as granulometries with convex elements such as squares, and have proved equally valuable for classication applications [12] (The curves of Fig. 2 are in fact pseudo-granulometries).

4 LUC VINCENT (a) Copepod oithona (b) Pteropods.3.3.25.25.2.2.15.15.1.1.5.5 5 1 15 2 5 1 15 2 Typical curve for copepod oithona Typical curve for pteropods Fig. 2. Plankton classication using grayscale granulometries. Grayscale: 13 9 8 6 4 2 Maximum 1 i pixels j pixels k pixels Contribution to bin i Contribution to bin j Contribution to bin k... Maximal region around maximum 1 p pixels q pixels m pixels n pixels Maximum 2 (9, i) (6, j) (4, k) (2, p) (, q) (6, m) (4, n) Fig. 3. Left: cross-section of a grayscale image exhibiting two maxima. Right: corresponding opening tree capturing all the linear granulometric information in the direction of the cross-section. The leaves of the tree correspond to image pixels. See [14] for more information. 3. Local Granulometry Algorithms The algorithms recalled in the previous section straightforwardly extend to local granulometries. Indeed, for each pixel p, following the associated opening tree(s) provides the successive values taken by this pixel through openings of increasing size: this is equivalent to the local granulometry information at p. At each pixel location, the local granulometry information can be fed to a classier (e.g., a neural network) in order to do texture segmentation [5]. The local pattern spectrum can also be used to derive a grayscale equivalent of the opening transform. In the binary case, the opening transform of an image I maps each pixel p to the

OPENING TREES AND LOCAL GRANULOMETRIES 5 size of the rst opening such that the value of p in the opened image becomes. There are two simple ways to extend this concept to grayscale:, Assign to each pixel the sum of its successive opening values., Assign to each pixel the opening size n that causes the biggest drop in gray level for this pixel, i.e., that maximizes n(i)(p), n,1(i)(p). (Note that with this denition, n is not necessarily unique.) One can easily verify that, when applied to binary images, both transforms are equivalent to an opening transform. Both are also easily derived from the local granulometry information, i.e. the opening tree(s) at each pixel. The rst transform was found to be only useful for very specic applications, whose description would be beyond the scope of the present paper. The second transform, already proposed in [16], is more generally useful. However, as pointed out by Vogt, its results are only meaningful when input image objects have \fairly clean boundaries". The concept of a grayscale size transform is illustrated in Fig. 4. Total computation time for this 29 252 image on a Sun Sparc Station 1 without particularly optimized code was of about.3s. (a) original grayscale text image (b) horizontal size transform Fig. 4. Example of size transform computed on dark image structures using \horizontal closing trees". Transform was restricted to dark pixels of original image. It maps each pixel to the local stroke width. Notice that stroke width is found to be largest inside the dropcap (large 'L' in top-left corner). Instead of mapping each pixel p of grayscale image I to an opening (resp. closing) size n, another interesting transform, also proposed in [16], is derived by mapping p to its value in n(i), the opening of size n. The resulting transformed image can be described as an adaptive opening: at each pixel location in the image, the opening size is adapted to t the size of the dominant structure. The corresponding adaptive top hat transform is particularly promising for automatic background normalization, when the size of image structures is either unknown (making it dicult to select the opening size for a classic top hat transform), or subject to large variations within the image. The opening-tree based implementation proposed here makes it possible to compute such adaptive openings/closings in typically under a second for most applications.

6 LUC VINCENT Unfortunately, experimentation showed that the above size transforms and adaptive openings/closings produce rather unstable results when computed on somewhat dicult or noisy input images. This can be attributed to the fact that granulometric information is usually not meaningful unless extracted over a large enough area in fact, for most images, this information is meaningless at a pixel level. One workaround is to simply smooth or median-lter the size transforms or adaptive openings described above. A more robust technique consists of extracting the granulometric information for each pixel p over a reasonably large window centered at p. More precisely, using the algorithms described in [14], the granulometric curve in a window W (p) centered at pixel p of image I can be derived from the opening trees corresponding to the pixels in W (p). Directly extracting granulometric information in each sub-window W (p) foreach pixel p would however be prohibitively expensive. To speed-up computation, we take advantage of the fact that for two neighboring pixels p and q, there is signicant overlap between W (p) and W (q). Having computed the granulometric curve in W (p), we can therefore derive the granulometric curve in W (q) by: 1. subtracting the granulometric contribution of the pixels in W (p) n W (q), (where 'n' denotes set dierence), 2. adding the granulometric contribution of the pixels in W (q) n W (p) These two operations are easily achieved by using the opening trees corresponding to pixels in W (p) n W (q) andinw (q) n W (p). Such a scheme can be optimally implemented by scanning the image \like the ox plows the eld", i.e., by scanning the rst line from left to right, the second line from right to left, etc, until the last image line is reached. This is illustrated in Fig. 5. Note that this kind of technique can also be used to eciently implement dilations/erosions by arbitrary structuring elements using moving histograms, and has even proved useful for binary dilations and erosions [13]. Computationally, a local granulometry operation such as a size transform computed over an nn window is only be about 2n times slower than the \local" size transform described earlier in this section, which remains competitive. Experimentation showed that for most practical purposes, a window size of 1 1 to 4 4 was adequate. p q Subtract contribution of these pixels Add contribution of these pixels Fig. 5. Type of image scanning used for the ecient computation of local granulometries over moving windows (window is a disk here). An example of a \regional" size transform is shown in Fig.6. Fig. 6a is an image

OPENING TREES AND LOCAL GRANULOMETRIES 7 of ssion tracks in apatite. Such tracks form the basis of well-known techniques for dating rocks [4], and track length even provides thermal history information. The result of a regional size transform is shown in Fig. 6b. To produce this result, a diskshape window of radius 15 was used. Also, since the intent was to characterize the size of dark structures, closing trees were used instead of opening trees. Notice that because of the circular window used by the algorithm, the dark structures appear dilated in the resulting transform. In fact, for this example, \pseudo-granulometries" based on maxima of linear closings were used. Just like minima of linear openings are not openings, maxima of linear closings are not closings. However, when computed over large enough windows, these pseudo-granulometries tend capture size information that is very similar to what can be extracted using actual 2-D granulometries [12]. Regional size transforms based on these pseudo openings and closings are therefore useful operations. On the other hand, adaptive openings based on minima of linear openings and adaptive closings based on maxima of linear closings should be avoided. a. Fission tracks image b. Regional size transform Fig. 6. Example of size transform of black structures, computed over a moving disk of radius 15. Dark values in (b) correspond to large structures. 4. Conclusions A comprehensive set of ecient local grayscale granulometry algorithms was proposed. Based on the notion of opening trees, these techniques can be used to compute any transform such that the value of a pixel in the transformed image may be derived from local granulometric information at this pixel. Local granulometric information can be computed either on a pixel by pixel basis, or integrated over moving windows, for added robustness. Among the most useful derived operations are size transforms

8 LUC VINCENT of bright or dark structures, which are a grayscale extension of the classic opening transforms and closing transforms. The proposed techniques are valid for granulometries based on linear openings/closings and combinations thereof. True 2D granulometries are not handled yet. However, this was found not to be a major drawback in practice: in many cases, \pseudo-granulometries" with minima of linear openings or maxima of linear closings provide an adequate substitute to 2D granulometries. Overall, the set of methods described in this paper make local granulometries a computationally competitive alternative for texture segmentation problems. Acknowledgments Many thanks go to Michael Buckley of CSIRO, Australia, for kindly providing the images used in Figs. 1 and 6. References 1. Y. Chen and E. Dougherty. Texture classication by gray-scale morphological granulometries. In SPIE Vol. 1818, Visual Communications and Image Processing, Boston MA, Nov. 1992. 2. C. S. Davis, S. M. Gallager, and A. R. Solow. Microaggregations of oceanic plankton observed bytowed video microscopy. Science, 257:23{232, Jan. 1992. 3. E. Dougherty, J. Pelz, F. Sand, and A. Lent. Morphological image segmentation by local granulometric size distributions. Journal of Electronic Imaging, 1(1), Jan. 1992. 4. R. Fleischer, P. Price, and R. Walker. Nuclear Tracks in Solids. University of California at Berkeley Press, 1975. 5. C. Gratin, J. Vitria, F. Moreso, and D. Seron. Texture classication using neural networks and local granulometries. In J. Serra and P. Soille, editors, EURASIP Workshop ISMM'94, Mathematical Morphology and its Applications to Image Processing, pages 39{316, Fontainebleau, France, Sept. 1994. Kluwer Academic Publishers. 6. B. Lay. Recursive algorithms in mathematical morphology. In Acta Stereologica Vol. 6/III, pages 691{696, Caen, France, Sept. 1987. 7th International Congress For Stereology. 7. P. Maragos. Pattern spectrum and multiscale shape representation. IEEE Trans. Pattern Anal. Machine Intell., 11(7):71{716, July 1989. 8. G. Matheron. Elements pour une Theorie des Milieux Poreux. Masson, Paris, 1967. 9. G. Matheron. Random Sets and Integral Geometry. John Wiley and Sons, New York, 1975. 1. J. Mattioli and M. Schmitt. On information contained in the erosion curve. In NATO Shape in Picture Workshop, pages 177{195, Driebergen, The Netherlands, Sept. 1992. 11. J. Serra. Image Analysis and Mathematical Morphology. Academic Press, London, 1982. 12. X. Tang, K. Stewart, L. Vincent, H. Huang, M. Marra, S. Gallager, and C. Davis. Automatic plankton image recognition. International Articial Intelligence Review Journal, 1996. 13. L. Vincent. Morphological transformations of binary images with arbitrary structuring elements. Signal Processing, 22(1):3{23, Jan. 1991. 14. L. Vincent. Fast grayscale granulometry algorithms. In J. Serra and P. Soille, editors, EURASIP Workshop ISMM'94, Mathematical Morphology and its Applications to Image Processing, pages 265{272, Fontainebleau, France, Sept. 1994. Kluwer Academic Publishers. 15. L. Vincent. Fast opening functions and morphological granulometries. In SPIE Vol. 23, Image Algebra and Morphological Image Processing V, pages 253{267, San Diego, CA, July 1994. 16. R. C. Vogt. A spacially variant, locally adaptive, background normalization operator. In J. Serra and P. Soille, editors, EURASIP Workshop ISMM'94, Mathematical Morphology and its Applications to Image Processing, pages 45{52, Fontainebleau, France, Sept. 1994. Kluwer Academic Publishers.