MATLAB: How to assign Pixel values to the entire images

image processing

Hi, I have set of images and then i need to make those images into 32*32. I did this by using imresize. Now i have 32*32 pixel image, then i need to image pixel value between 0 and 1. I know that i can use rand(32, 32) to have values between 0 and 1. how i can give it to the image?

Best Answer

a=min(A(:));
b=max(A(:));
B=(A-a)/(b-a);