<< ShowImage Image Processing Design UpsampleFilter >>

Image Processing Design >> Image Processing Design > TopHat

TopHat

applies morphological top hat filter to an image

Calling Sequence

ResultImage = TopHat(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 top hat filter to a numeric or boolean image. This filter empasizes light objects that the structuring element does not fit in.

Examples

Image = 0.2 * ones(9, 9) // generate a dark image

Image(:, 5) = 1 // draw a light line

StructureElement = CreateStructureElement('square', 3) // create structuring element

ResultImage = TopHat(Image, StructureElement)

See also


Report an issue
<< ShowImage Image Processing Design UpsampleFilter >>