Detect voids in FRC by Image Processing Toolbox
古いコメントを表示
I want to detect voids in FRC through image processing, and so far I have put up a code that can detect some circles by drawing a line that represent the diameter for a void, but I cant seem to circle every void with the given diameter.
clear
foto = imread("SNAP-134309-0001.jpg");
gsfoto = im2gray(foto);
BWfoto= imbinarize(gsfoto);
imshow(foto);
d = drawline;
pos = d.Position;
diffpos = diff(pos);
diameter = hypot(diffpos(1),diffpos(2))
Rmin = diameter*0.275;
Rmax = diameter*0.5;
[centersDark, radiiDark] = imfindcircles(foto,[fix(Rmin),fix(Rmax)],"ObjectPolarity","dark","Sensitivity",0.9,"EdgeThreshold",0.2);
viscircles(centersDark,radiiDark,"color","r")
I also cant seem to filter away the black "noise" to detect the voids by "imbinarize".
採用された回答
その他の回答 (2 件)
yanqi liu
2021 年 11 月 26 日
0 投票
sir,may be upload image file to do some analysis
Mikkel Eilers
2021 年 11 月 26 日
編集済み: Mikkel Eilers
2021 年 11 月 26 日
0 投票
1 件のコメント
Image Analyst
2021 年 11 月 26 日
I don't see anything in there that is circular except possibly some small debris. What are the voids? The light gray, the darker/medium gray blobs, or the really dark/black small blobs? So no wonder imfindcircles() didn't find any since there aren't any. Why do you think you want only circular blobs and not irregularly shaped blobs?
カテゴリ
ヘルプ センター および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
