MATLAB: How to change the image resolution

digital image processingimageimage acquisitionimage processingImage Processing Toolboximage segmentation

For example: I have an image whose resolution is 46×67 and I want to change it to 35×45…How should I do that?…any help is highly appreciated

Best Answer

You can either crop it
croppedImage = imresize(originalImage, [35, 45]);
or you can use indexing if the original image is larger:
croppedImage = originalImage(topRow:topRow+34, leftColumn:leftColumn+44);
You can make topRow and leftColumn whatever you want, such as 1.