<< AnalyzeBlobs Image Processing Design CalculateOtsuThreshold >>

Image Processing Design >> Image Processing Design > BottomHat

BottomHat

applies morphological bottom hat filter to an image

Calling Sequence

ResultImage = BottomHat(Image, StructureElement);

Parameters

Image

2D matrix of type uint8, uint16, uint32, double or boolean

StructureElement

struct with the components Width, Height and Data, should be generated using CreateStructureElement

ResultImage

matrix of the same size and type as Image

Description

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.

Examples

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)

See also


Report an issue
<< AnalyzeBlobs Image Processing Design CalculateOtsuThreshold >>