how can i add circle around object and my code here just need a circle
1 回表示 (過去 30 日間)
古いコメントを表示
clc
clear all
a=imread('D:\image prosses\Brain MRI Images for Brain Tumor Detection\yes\Y25.jpg');
b=rgb2gray(a);
x=im2double(b);
c=fspecial('laplacian',0.2);
Xp=imfilter(b,c);
figure
imshow(Xp)
figure
imshow(Xp+b)
d= edge(b,'canny');
figure
imshow(b)
figure
imshow(d+x)
y=d+x;
bw=im2bw(x,0.8);
figure
imshow(bw+x)
3 件のコメント
Adam Danz
2023 年 3 月 7 日
We're missing the jpeg file. I ran your code to expose the error we see when we try to run it.
回答 (1 件)
Image Analyst
2023 年 3 月 8 日
編集済み: Image Analyst
2023 年 3 月 8 日
I have no idea of the radius or center location of the circle you want to draw because you forgot to attach the image. But usually viscircles will do what you want.
If your version is too old for viscircles, see the FAQ: https://matlab.fandom.com/wiki/FAQ#How_do_I_create_a_circle?
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Biotech and Pharmaceutical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!