<< cv_threshold_mean ComputerVision cv_warpAffine_image >>

ComputerVision >> ComputerVision > cv_tophat

cv_tophat

To provide tophat morphological operation

Calling Sequence

img_ret=cv_tophat(image,kernel_type,kernel_size)

Arguments

image

It is the Input Image (grayscale/rgb)

kernel_type

It accepts Integer/Float as Input 1->MORPH_RECT 2-> MORPH_ELLIPSE 3-> MORPH_CROSS

kernel_size

It accepts a list as input specifying the size of Kernel needed: example [5,5]

img_ret

Returned Image after tophat operation

Description

Performs tophat operation

Tophat gives the difference between input image and Opening of the image.Morphological transformations are some simple operations based on the image shape. It is normally performed on binary images. Two basic morphological operators are Erosion and Dilation. Then its variant forms like Opening, Closing, Gradient etc also comes into play

Examples

img_ret=cv_tophat(input_image,1,[5,5])

See Also


Report an issue
<< cv_threshold_mean ComputerVision cv_warpAffine_image >>