From: ImageAnalyst on
On Apr 27, 4:07 pm, "Faris " <sagaby...(a)yahoo.com> wrote:
> ImageAnalyst <imageanal...(a)mailinator.com> wrote in message <81c0351f-5de9-40da-ba29-df4ee2025...(a)o1g2000vbe.googlegroups.com>...
> > Faris:
> > How about using a for loop (over all images) and the function
> > imresize() to do the resizing?
>
>  ImageAnalyst:
>
> I've tried that , but it didn't work..
> because these images in gray-scale and aren't processed yet..

---------------------------------------------------------------------------------------------
Well then you're not telling the complete story because I'm telling
you I know for a fact that imresize CAN resize a 1728x2592 image to
32x32. Here's proof that it works perfectly well:

% Read in standard MATLAB gray scale demo image.
grayImage = imread('cameraman.tif');
[rows columns numberOfColorBands] = size(grayImage)
subplot(2, 2, 1);
imshow(grayImage, []);
title('Original Grayscale Image', 'FontSize', 20);
set(gcf, 'Position', get(0,'Screensize')); % Maximize figure.

% Resize it bigger:
bigImage = imresize(grayImage, [1728, 2592]);
subplot(2, 2, 2);
imshow(bigImage, []);
title('Big Image', 'FontSize', 20);

% Resize the 1728 by 2592 image to be 32x32:
smallImage = imresize(bigImage, [32, 32]);
subplot(2, 2, 3);
imshow(smallImage, []);
title('Small Image', 'FontSize', 20);
From: Faris on
ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <2ea1b595-e57b-4f77-9444-4f017d6e9fb9(a)i40g2000yqd.googlegroups.com>...
> On Apr 27, 4:07 pm, "Faris " <sagaby...(a)yahoo.com> wrote:
> > ImageAnalyst <imageanal...(a)mailinator.com> wrote in message <81c0351f-5de9-40da-ba29-df4ee2025...(a)o1g2000vbe.googlegroups.com>...
> > > Faris:
> > > How about using a for loop (over all images) and the function
> > > imresize() to do the resizing?
> >
> >  ImageAnalyst:
> >
> > I've tried that , but it didn't work..
> > because these images in gray-scale and aren't processed yet..
>
> ---------------------------------------------------------------------------------------------
> Well then you're not telling the complete story because I'm telling
> you I know for a fact that imresize CAN resize a 1728x2592 image to
> 32x32. Here's proof that it works perfectly well:
>
> % Read in standard MATLAB gray scale demo image.
> grayImage = imread('cameraman.tif');
> [rows columns numberOfColorBands] = size(grayImage)
> subplot(2, 2, 1);
> imshow(grayImage, []);
> title('Original Grayscale Image', 'FontSize', 20);
> set(gcf, 'Position', get(0,'Screensize')); % Maximize figure.
>
> % Resize it bigger:
> bigImage = imresize(grayImage, [1728, 2592]);
> subplot(2, 2, 2);
> imshow(bigImage, []);
> title('Big Image', 'FontSize', 20);
>
> % Resize the 1728 by 2592 image to be 32x32:
> smallImage = imresize(bigImage, [32, 32]);
> subplot(2, 2, 3);
> imshow(smallImage, []);
> title('Small Image', 'FontSize', 20);


Well.. Don't be mad of me ^_*

I'm really sorry for my poor explanation..

I used yours and it worked..

I appreciate your help and I owe u, dude..

Thanks a lot..