crop an image with control points

조회 수: 1 (최근 30일)
talayeh ghodsi
talayeh ghodsi 2019년 6월 23일
댓글: talayeh ghodsi 2019년 6월 26일
hi every body. i have a ct image and i want to crop a ROI which is ellipse like but i dont want to use imellipse to creat a mask and crop it because it doesnt result well.
i want to creat a ellipse mask with 4 control points which are 4 vertexes of the ellipse. i want a program to first imshow the image for operator to mark 4 control points, then creates the ellipse mask in order to crop the image
can anyone help me with this please
BR
  댓글 수: 2
Image Analyst
Image Analyst 2019년 6월 23일
What is the result of imellipse() that "doesnt result well"? What are you doing with it's roi returned variable, and why is that returned variable no good?
talayeh ghodsi
talayeh ghodsi 2019년 6월 24일
because the shape is not exactly ellipse and the adjacent shapes are included in the ellips that are not allowed.
the image attached is the desired croped which i have done in with imfreehand.

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

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 6월 24일
편집: KALYAN ACHARJYA 2019년 6월 24일
For code you are requested to contact me through author page
(Or email:kalyan.acharjya@gmail.com).
The code belongs to me and this ongoing work is not published yet, when it will get published I will upload it here.
  댓글 수: 1
talayeh ghodsi
talayeh ghodsi 2019년 6월 26일
I have sent an email to you sir.

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

Community Treasure Hunt

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

Start Hunting!

Translated by