applies morphological bottom hat filter to an image
ResultImage = BottomHat(Image, StructureElement);
2D matrix of type uint8, uint16, uint32, double or boolean
struct with the components Width, Height and Data, should be generated using CreateStructureElement
matrix of the same size and type as Image
This function applies a morphological bottom hat filter to a numeric or boolean image. This filter empasizes dark objects that the structuring element does not fit in.
Image = 0.8 * ones(9, 9) // generate a light image Image(:, 5) = 0 // draw a dark line StructureElement = CreateStructureElement('square', 3) // create structuring element ResultImage = BottomHat(Image, StructureElement) | ![]() | ![]() |