MATLAB: If there a synatix that selects and cuts a line of a image in matlab

image processingImage Processing Toolbox

hi
i'm looking for syntax that selects a line in a image and cuts it. or is there anything around it?
Thanks

Best Answer

What do you mean by "cut"? You mean remove that line, as in
grayImage(row, :) = []; % Remove this row from the image, shrinking the image vertically.
Or do you mean something like improfile(), which gets you the intensity profile along a line between two points?
Related Question