select roi on the circle

조회 수: 1 (최근 30일)
Latifa Bouguessaa
Latifa Bouguessaa 2022년 6월 21일
댓글: Image Analyst 2022년 6월 23일
Good day,
I hope someone can help me here.
I have a phantom CT image and want to select the objects (Roi). The objects are on a circle. Is there a way to convert this ROI to Cartesian coordinates. many thanks and best regards
  댓글 수: 1
Sulaymon Eshkabilov
Sulaymon Eshkabilov 2022년 6월 21일
Here are a couple of good examples how to work with ROI:Eg1., Eg2.

댓글을 달려면 로그인하십시오.

답변 (2개)

Image Analyst
Image Analyst 2022년 6월 21일
Looks like you could simply create a mask using the code in the FAQ:

Latifa Bouguessaa
Latifa Bouguessaa 2022년 6월 22일
Hello,
Thank you Sulaymon Eshkabilov and Image Analyst for your answer.
I have now segmented my phantom on the picture and determined the center of the phantom. but I couldn't cut the desired area (roi) on the picture.
I need to select an arc with Radius1=45 and Radius2=55 on the image. The center of the phantom has the coordinates X= 259 and y=252.
can someone help me??
Best regards
  댓글 수: 1
Image Analyst
Image Analyst 2022년 6월 23일
Why do you need to cut it out (crop it)? That's probably not necessary. If you do you can do this
props = regionprops(mask, 'BoundingBox');
croppedImage = imcrop(grayImage, props.BoundingBox);

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by