Name

gray_imread — Read any image as grayscale

Calling Sequence

im = gray_imread(filename)

Parameters

Img
2D array representing pixel intensities

Description

This is a simple utility routine to read any image as grayscale. If the image is truecolor or pseudo-color, it is converted using im2gray

Examples

    initial_dir = PWD;
    chdir (SIPDIR + 'images');

    Img = gray_imread('ararauna.png');
    xbasc()
    imshow(Img,[]);

    chdir(initial_dir);

Authors

Ricardo Fabbri <ricardofabbri (AT) users DOT sf DOT net>

Availability

The latest version of the Scilab Image Processing toolbox can be found at

http://siptoolbox.sourceforge.net

See Also

imshow , im2gray , im2bw