How to set radii in imfindingcircles function?
古いコメントを表示
dear all, i'm trying to create a mask for this image based on the fuction imfindingcircles. I tried setting different thresholds but I didn't get the rigth result. Can anybody help me? than I would like to set NaN to the mask. Thank you in advance!
clear all
close all
clc
A= imread('image_1567.png');
[rows, columns, numberOfColorChannels] = size(A)
%imshow(A)
[centers,radii] = imfindcircles(A,[50 100],Sensitivity=0.9);
mask = circles2mask(centers,radii,size(A));
figure
montage({A,mask})
A(~(A == mask)) = nan
2 件のコメント
Shantanu Dixit
2024 年 7 月 18 日
Hi Elisa, can you share the image you are working on?
Elisa
2024 年 7 月 18 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Object Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!