image_normalize, a MATLAB program which reads image data from a file, converts it (if necessary) to grayscale, resizes it to H pixels by W pixels.

This simple program is useful, for example, in a facial recognition study, when a set of images of varying sizes and types needs to be standardized to grayscale of a given shape, before a common processing function is applied.


The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.


IMAGE_NORMALIZE is available in a MATLAB version.

Related Data and Programs:

IMAGE_COMPONENTS, a MATLAB library which seeks the connected "nonzero" or "nonblack" components of an image or integer vector, array or 3D block.

IMAGE_CONTRAST, a MATLAB program which applies image processing techniques to increase the contrast in an image.

IMAGE_DENOISE, MATLAB programs which apply image processing techniques to remove noise from an image.

IMAGE_EDGE, a MATLAB library which demonstrates a simple procedure for edge detection in images.

IMAGE_NOISE, MATLAB programs which add noise to an image.


IMAGE_QUANTIZATION, a MATLAB library which demonstrates how the KMEANS algorithm can be used to reduce the number of colors or shades of gray in an image.

IMAGE_RGB_TO_GRAY, MATLAB programs which makes a grayscale version of an RGB image.

IMAGE_THRESHOLD, MATLAB programs which make a black and white version of a grayscale image by setting all pixels below or above a threshold value to black or white.


MathWorks documentation for the Image Processing Toolbox is available at

Source Code:

Last revised on 15 December 2018.