fbpx
Wikipedia

Hit-or-miss transform

In mathematical morphology, hit-or-miss transform is an operation that detects a given configuration (or pattern) in a binary image, using the morphological erosion operator and a pair of disjoint structuring elements. The result of the hit-or-miss transform is the set of positions where the first structuring element fits in the foreground of the input image, and the second structuring element misses it completely.

Mathematical definition edit

In binary morphology, an image is viewed as a subset of a Euclidean space   or the integer grid  , for some dimension d. Let us denote this space or grid by E.

A structuring element is a simple, pre-defined shape, represented as a binary image, used to probe another binary image, in morphological operations such as erosion, dilation, opening, and closing.

Let   and   be two structuring elements satisfying  . The pair (C,D) is sometimes called a composite structuring element. The hit-or-miss transform of a given image A by B=(C,D) is given by:

 ,

where   is the set complement of A.

That is, a point x in E belongs to the hit-or-miss transform output if C translated to x fits in A, and D translated to x misses A (fits the background of A).

Some applications edit

Thinning edit

 
The structuring elements Ci, Di, Bi as described in the text. The top two rows show the pairings of C1+D1, and C2+D2. The bottom two rows show how B1-B8 are generated by rotating (C1+D1) and (C2+D2). The numbering of B1-B8 are arbitrary. (White pixels are not included in any of these sets, and are shown only to keep the spacing intelligible. Red and Blue pixels identify set membership only, and do not represent a pixel's actual color value.)

Let  , and consider the eight composite structuring elements, composed of:

  and  ,
  and  

and the three rotations of each by 90°, 180°, and 270°. The corresponding composite structuring elements are denoted  .

For any i between 1 and 8, and any binary image X, define

 

where   denotes the set-theoretical difference.

The thinning of an image A is obtained by cyclically iterating until convergence:

 

Other applications edit

  • Pattern detection. By definition, the hit-or-miss transform indicates the positions where a certain pattern (characterized by the composite structuring element B) occurs in the input image.
  • Pruning. The hit-or-miss transform can be used to identify the end-points of a line to allow this line to be shrunk from each end to remove unwanted branches.
  • Computing the Euler number.

Bibliography edit

  • An Introduction to Morphological Image Processing by Edward R. Dougherty, ISBN 0-8194-0845-X (1992)

miss, transform, mathematical, morphology, miss, transform, operation, that, detects, given, configuration, pattern, binary, image, using, morphological, erosion, operator, pair, disjoint, structuring, elements, result, miss, transform, positions, where, first. In mathematical morphology hit or miss transform is an operation that detects a given configuration or pattern in a binary image using the morphological erosion operator and a pair of disjoint structuring elements The result of the hit or miss transform is the set of positions where the first structuring element fits in the foreground of the input image and the second structuring element misses it completely Contents 1 Mathematical definition 2 Some applications 2 1 Thinning 2 2 Other applications 3 BibliographyMathematical definition editIn binary morphology an image is viewed as a subset of a Euclidean space Rd displaystyle mathbb R d nbsp or the integer grid Zd displaystyle mathbb Z d nbsp for some dimension d Let us denote this space or grid by E A structuring element is a simple pre defined shape represented as a binary image used to probe another binary image in morphological operations such as erosion dilation opening and closing Let C displaystyle C nbsp and D displaystyle D nbsp be two structuring elements satisfying C D displaystyle C cap D emptyset nbsp The pair C D is sometimes called a composite structuring element The hit or miss transform of a given image A by B C D is given by A B A C Ac D displaystyle A odot B A ominus C cap A c ominus D nbsp dd where Ac displaystyle A c nbsp is the set complement of A That is a point x in E belongs to the hit or miss transform output if C translated to x fits in A and D translated to x misses A fits the background of A Some applications editThinning edit nbsp The structuring elements Ci Di Bi as described in the text The top two rows show the pairings of C1 D1 and C2 D2 The bottom two rows show how B1 B8 are generated by rotating C1 D1 and C2 D2 The numbering of B1 B8 are arbitrary White pixels are not included in any of these sets and are shown only to keep the spacing intelligible Red and Blue pixels identify set membership only and do not represent a pixel s actual color value Let E Z2 displaystyle E mathbb Z 2 nbsp and consider the eight composite structuring elements composed of C1 0 0 1 1 0 1 1 1 displaystyle C 1 0 0 1 1 0 1 1 1 nbsp and D1 1 1 0 1 1 1 displaystyle D 1 1 1 0 1 1 1 nbsp C2 1 0 0 0 1 1 0 1 displaystyle C 2 1 0 0 0 1 1 0 1 nbsp and D2 0 1 1 1 1 0 displaystyle D 2 0 1 1 1 1 0 nbsp and the three rotations of each by 90 180 and 270 The corresponding composite structuring elements are denoted B1 B8 displaystyle B 1 ldots B 8 nbsp For any i between 1 and 8 and any binary image X define X Bi X X Bi displaystyle X otimes B i X setminus X odot B i nbsp dd where displaystyle setminus nbsp denotes the set theoretical difference The thinning of an image A is obtained by cyclically iterating until convergence A B1 B2 B8 B1 B2 displaystyle A otimes B 1 otimes B 2 otimes ldots otimes B 8 otimes B 1 otimes B 2 otimes ldots nbsp Other applications edit Pattern detection By definition the hit or miss transform indicates the positions where a certain pattern characterized by the composite structuring element B occurs in the input image Pruning The hit or miss transform can be used to identify the end points of a line to allow this line to be shrunk from each end to remove unwanted branches Computing the Euler number Bibliography editAn Introduction to Morphological Image Processing by Edward R Dougherty ISBN 0 8194 0845 X 1992 Retrieved from https en wikipedia org w index php title Hit or miss transform amp oldid 1123566936, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.