필터 지우기
필터 지우기

i want to select elliptical region of various sizes by varying a and b in an image.Can anyone please suggest the algorithm by using imcrop.

조회 수: 2 (최근 30일)
I want to develop a program in which an image is taken as input. Then elliptical regions are selected by varying a and b.
  댓글 수: 2
John D'Errico
John D'Errico 2017년 7월 25일
편집: John D'Errico 2017년 7월 25일
Why would imcrop be the tool to use here, allowing you to crop an elliptical region? imcrop uses a rectangular crop. There are no alternatives in imcrop to let you use a general elliptical region. You will need to write your own crop tool.
But first, you need to decide what it means to crop an image to an elliptical region, since this makes no sense at all. A cropped image is still an image. An image is a rectangular array of pixels. So an elliptical region means you MUST decide what happens to the pixels that lie outside of the ellipse. Until you do that, cropping to an ellipse makes no sense.

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

채택된 답변

Image Analyst
Image Analyst 2017년 7월 25일
See my attached ellipse demos. Probably mask_multiple_ellipses.m is what you want.
  댓글 수: 1
anmol maharana
anmol maharana 2017년 7월 25일
i have an image suppose cameraman. i want to write a program in which elliptical region of various shapes of that image can get cropped when i vary the major axis and minor axis. it means i want to develop a function which upon calling will give various cropped subimages of elliptical shape

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by