RIO iteratively to create mask
古いコメントを表示
clc;clear;close all
im=imread("coloredChips.png");
imshow(im);
for i=1:6
h(i)=drawcircle;
end
for i=1:6
mask.a(i)=h(i).createMask;
end
im1=inpaintCoherent(im,mask,"SmoothingFactor",0.5);
figure;imshow(im1)
5 件のコメント
Amir Azadeh Ranjbar
2021 年 12 月 28 日
Amir Azadeh Ranjbar
2021 年 12 月 28 日
Rik
2021 年 12 月 28 日
What does 'not ok' mean?
Note that imshow will wipe a lot of settings for an axes. Also, the code you posted uses arrays (which is good), but your final suggestion uses numbered variables (which is bad).
Amir Azadeh Ranjbar
2021 年 12 月 28 日
Rik
2021 年 12 月 28 日
If you start with an array with only true, I don't see why using | wouldn't work. I don't see why you would need numbered variables.
I'm on mobile, so I can't run your code to test it. Is it returning an object instead of a binary image?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で ROI-Based Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!