Resampling and quantization of image.
Mostrar comentarios más antiguos
If the size of width and height of image are different, how to to resampling and quantization?
Respuestas (2)
Image Analyst
el 23 de Sept. de 2021
0 votos
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)
Categorías
Más información sobre Image Filtering en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
