April 2020
Intermediate to advanced
438 pages
12h 2m
English
As you can see in the preceding section, the binary_hit_or_miss() function from the scipy.ndimage.morphology module was used to apply the morphological hit-or-miss transform operation (shown in the following screenshot) to a binary image:

The input binary image, along with a couple of disjointed structuring elements, are passed to the function. The first SE argument represents part of the SE that must match (hit) the foreground. The second SE argument represents part of the SE that must miss the foreground completely.
This binary_hit_or_miss() function finds the locations inside the input image that match the given pattern ...
Read now
Unlock full access