MATLAB: Scale Image RGB

rgbscale

I have an image that her size is 776*608, i like to scale it and change her size to 645*463 ? Also, I have another question, how i know lineair transformation between 2 images, how to find this transformation and what should do to intensity if i find this transformation ? Any help please

Best Answer

I'm not sure I believe you that imresize() does not work. What do you notice when you run this code:
fontSize = 22;
rgbImage = uint8(randi(255, [776, 608, 3]));
subplot(1, 2, 1);
imshow(rgbImage);
title('Original Size Image', 'FontSize', fontSize);
axis on;
rgbImage2 = imresize(rgbImage, [645, 463]);
subplot(1, 2, 2);
imshow(rgbImage2);
title('Re-sized Image', 'FontSize', fontSize);
axis on;
% Enlarge figure to full screen.
set(gcf, 'units','normalized','outerposition',[0 0 1 1]);