필터 지우기
필터 지우기

Unknown size matrix-Cut image

조회 수: 1 (최근 30일)
Ann G
Ann G 2015년 10월 7일
댓글: Ann G 2015년 10월 7일
Hello everyone..I want to create a matrix where I will put specific elements of a ROI (e.g. >0) but i do not know the size of the final matrix. Or else, I want to cut the image and keep only the ROI. How can I do that?

채택된 답변

Image Analyst
Image Analyst 2015년 10월 7일
You can use imrect() or rbbox() or imcrop() to crop the image to a smaller rectangle. Let us know if you can't figure out the code to do it.
  댓글 수: 1
Ann G
Ann G 2015년 10월 7일
thank u for your help..I tried imcrop but it shows me error maybe because i dont give the right inputs. D=imcrop(K,[x y]); where x,y are different every time i run the algorithm and they are not just 4.

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

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by