필터 지우기
필터 지우기

how can i add circle around object and my code here just need a circle

조회 수: 1 (최근 30일)
3lewwi
3lewwi 2023년 3월 7일
편집: Image Analyst 2023년 3월 8일
clc
clear all
a=imread('D:\image prosses\Brain MRI Images for Brain Tumor Detection\yes\Y25.jpg');
Error using imread>get_full_filename
File "D:\image prosses\Brain MRI Images for Brain Tumor Detection\yes\Y25.jpg" does not exist.

Error in imread (line 372)
fullname = get_full_filename(filename);
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
3lewwi
3lewwi 2023년 3월 7일
@Matt J i want to circle the center of cancer ( after i circle all the cancer )
Adam Danz
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
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:

카테고리

Help CenterFile Exchange에서 Biotech and Pharmaceutical에 대해 자세히 알아보기

제품


릴리스

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by