how i can reshape image from original size to new size
이전 댓글 표시
hello
i want to reshape image (matrix) from 6x5000 to another size must be power of 2 such as 64x64,128x128 or 256x256 to do some calculation then return image to original size.
(these calculation must contain all pixels in original image)
thanks
답변 (3개)
David Sanchez
2013년 8월 23일
0 개 추천
The resizing of the image comes to a price, and that's a loss of information. You can resize your image, do whatever you want to it, but then, you can not expect to go back to the original size (bigger) and get back the same original image with the same information, or even worse, the extra information obtained with the process extended to the original image.
Image Analyst
2013년 8월 23일
편집: Image Analyst
2013년 8월 23일
Have you seen the imresize() function in the Image Processing Toolbox?
image64 = imresize(originalImage, [64, 64]);
댓글 수: 2
Ahmed almansory
2013년 8월 23일
Image Analyst
2013년 8월 23일
It can take all pixels into consideration when you do some resizing (i.e. bicubic interpolation) but does not under some other options ('nearest'). So I don't know why you say that.
I've never heard of the wcompress() function.
Deokar Kaustubh Santosh
2018년 10월 8일
편집: Deokar Kaustubh Santosh
2018년 10월 8일
0 개 추천
image='gray.png';
a=imread(image);
b=imresize(a,[256 256]);
imshow(b);
카테고리
도움말 센터 및 File Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!