ROI optimization

조회 수: 10 (최근 30일)
varadharajan
varadharajan 2011년 4월 11일
I would like to choose a region of interest (ROI) above and below an oblique (45°) planar interface in my 2d image. I used ROIPOLY of Matlab to get the rectangular mask from my image. I would like to optimize this rectangular mask so that my model and data values match. How could I programmatically increase/decrease the width and height of the rectangle which I draw parallel to my 45° interface?
  댓글 수: 2
Sean de Wolski
Sean de Wolski 2011년 4월 11일
Can you post an image to help clarify your question please? (see markup help for instructions.)
varadharajan
varadharajan 2011년 4월 11일
Hi I added a photo.Thanks!

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

답변 (1개)

Sean de Wolski
Sean de Wolski 2011년 4월 11일
%An Image Processing Morphology Approach
You could use imdilate and imerode with an appropriate structuring element (tuned for 45 degrees) to increase/decrease the height width.
doc imdilate
doc imerode
doc strel

Community Treasure Hunt

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

Start Hunting!

Translated by