필터 지우기
필터 지우기

image masking by position

조회 수: 1 (최근 30일)
RAJKUMAR Palaniappan
RAJKUMAR Palaniappan 2013년 5월 30일
I want to analyses a part of an image without disturbing the full image. Lets say the position of the image part to be analyzed is [x1,x2,y1,y2]. i tired using the below mentioned code but was not able to do it.
I = imread('cameraman.tif'); F= image(I, [x1 y1 x2 y2]);
??? Error using ==> image Incorrect number of arguments specified
Error in ==> fd at 39 F=image(I, [x1,y1,x2,y2])

채택된 답변

Image Analyst
Image Analyst 2013년 5월 30일
You wanted (the badly-named) I, like lain said, rather than image(), which is a built-in function for displaying images and which is why you got the error you did. Also, please see the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_mask_an_image.3F

추가 답변 (1개)

Iain
Iain 2013년 5월 30일
segment = I(x1:x2,y1:y2);

Community Treasure Hunt

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

Start Hunting!

Translated by