How to do "the black top-hat transformation"

21 ビュー (過去 30 日間)
Ashim Chakraborty
Ashim Chakraborty 2016 年 4 月 22 日
回答済み: MD AMIR SOHAIL 2019 年 3 月 6 日
after filtering the image i want to perform a black top hat transformation but could not find any information about it. please, any one help me .

採用された回答

Image Analyst
Image Analyst 2016 年 4 月 22 日
Perhaps you're talking about the "bottom hat filter".
IM2 = imbothat(IM,SE) performs morphological bottom-hat filtering on the grayscale or binary input image, IM, returning the filtered image, IM2. SE is a structuring element returned by the strel function. SE must be a single structuring element object, not an array containing multiple structuring element objects.

その他の回答 (3 件)

Pekko Tuominen
Pekko Tuominen 2017 年 7 月 3 日
In Matlab, the black top-hat transform is called bottom-hat and the white top-hat transform is called tophat. This should remove your confusion.

MD AMIR SOHAIL
MD AMIR SOHAIL 2019 年 3 月 6 日
White Top-hat Filtering: ( Original Image - Opening of original Image ) [which is imtophat() in matlab]
Black Top-hat Filtering: ( Closing of Original Image - Original Image ) [which is imbothat() in matlab ]

Jos (10584)
Jos (10584) 2016 年 4 月 22 日
  1 件のコメント
Ashim Chakraborty
Ashim Chakraborty 2016 年 4 月 22 日
Hi jos thank you for your comment. I tried it already but the output is appearing different. there are two different types of top hat is black and white. I am looking for the black top hat which not mentioned anywhere and the code IM2 = imtophat(IM,SE) IM2 = imtophat(IM,NHOOD) gpuarrayIM2 = imtophat(gpuarrayIM,___) giving different output.

サインインしてコメントする。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by