VOOZH about

URL: https://www.geeksforgeeks.org/python/mahotas-hit-miss-transform/

⇱ Mahotas - Hit & Miss transform - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Mahotas - Hit & Miss transform

Last Updated : 10 Jul, 2020
In this article we will see how we can perform hit and miss transform in mahotas. In mathematical morphology, hit-or-miss transform is an operation that detects a given configuration in a binary image, using the morphological erosion operator and a pair of disjoint structuring elements.
In order to do this we will use mahotas.hitmiss method Syntax : mahotas.hitmiss(img, template) Argument : It takes two numpy ndarray as argument Return : It returns ndarray
Below is the implementation Output :
Image
👁 Image
Image after hit miss transform
👁 Image
Another example
Output :
Image
👁 Image
Image after hit miss transform
👁 Image
Comment
Article Tags:
Article Tags: