Help! How to convert grey scale image to colour contrast image?

1 回表示 (過去 30 日間)
ruban ramalingam
ruban ramalingam 2019 年 8 月 19 日
コメント済み: ruban ramalingam 2019 年 8 月 20 日
I want to count the number of dimples (holes) in the microstructure. I want to change the colour constrast from black and white to some other colour which everyone can see. Is there any other way to count the number of dimples(holes) in the image using image processing software??.
The following code is used:
img=imread('2.bmp');
comp=imcomplement(img);
imshow(comp);
Any help is much appreciated. Please find the attachment.
  1 件のコメント
darova
darova 2019 年 8 月 19 日
What about im2bw() and bwlabel()?

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

回答 (1 件)

Image Analyst
Image Analyst 2019 年 8 月 19 日
Try a bottom hat filter on the dark hole image
filteredImage = imbothat(grayImage, .......................
  1 件のコメント
ruban ramalingam
ruban ramalingam 2019 年 8 月 20 日
Sir., Please suggest me the code so that I can easily track the number and size of the holes...It will be helpful for me

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

Community Treasure Hunt

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

Start Hunting!

Translated by