How to change the image resolution?
56 次查看(过去 30 天)
显示 更早的评论
For example: I have an image whose resolution is 46x67 and I want to change it to 35x45...How should I do that?...any help is highly appreciated
采纳的回答
Image Analyst
2015-7-18
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.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!