How can I enhance the image resolution?
이전 댓글 표시
Hi,
I use the "imread" command to read an image from the file. The result is a two-dimensional matrix with M rows and N columns. For example my image has M = 2505 and N = 2713 by default. But I would like to decide the number of sample in which the image will be divided. Is it possible to set the M and N values, which will represent the image?
Many thanks in advance,
Regards,
Elena
댓글 수: 1
Patrik Ek
2014년 7월 28일
There is some support for resampling in matlab. Eg resample it could be worth if the resolution is important
채택된 답변
추가 답변 (1개)
Yes you can. You can select the range of pixels like this:
A = imread('peppers.png');
size(A) % get the size of your image, in your case its 2505x2713
ans =
384 512 3
B = A(100:300,200:400,:); % select the part of the image you want to display. Note that it does not increase the resolution though.
subplot(2,1,1);imshow(A);subplot(2,1,2);imshow(B)
Giving this:

Is this what you meant?
댓글 수: 3
Elena
2014년 7월 28일
Ben11
2014년 7월 28일
ok then I don't understand sorry. You want to analyze to complete image, but without actually using all the pixels?
Anindya Banerjee
2018년 9월 18일
@ben11 can you please tell me how you assigned the numbers to select the parts to be displayed?? ( B = A(100:300,200:400,:) )
카테고리
도움말 센터 및 File Exchange에서 Contrast Adjustment에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
