Resampling and quantization of image.
이전 댓글 표시
If the size of width and height of image are different, how to to resampling and quantization?
답변 (2개)
Image Analyst
2021년 9월 23일
0 개 추천
You can use imresize() and specify either a saling equally in both directions, or you can specify the exact number of rows and columns you want the output image to have.
clc; clear all; close all;
im = imread('football.jpg');
% make the same
wh = min([size(im,1) size(im, 2)]);
im2 = imresize(im, [wh wh], 'bilinear');
figure;
montage({im,im2}, 'Size', [1 2], 'BackgroundColor', 'c', 'BorderSize', [3 3])
size(im2)
카테고리
도움말 센터 및 File Exchange에서 Image Filtering에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
