How to do a horizontal shift of an image in MATLAB? -
I have an image that I have changed to a double matrix. I want to move it horizontally, but I'm not sure how to do it. I try to manipulate the situation, but it has come to know that I am only adding color to
Is there a way that I can reference the pixel position instead, and then can I continuously add to a change?
By using the Image Processing Toolbox, you can:
img = Imread ('pout.tif'); T = Marketform ('Anne', [0 0; 50 100 1]); % # Translate img2 = imtransform (img, T, ... 'xdata', [1 size (img, 2)], 'ydata', [1 size (img, 1)]; subplot (121) , Imsho (img), axis (122), emsho (img2) on the axle,
Comments
Post a Comment