Scilab Function
Last update : 28/10/2005

bmpcolor - Reads RGB Windows 3.1 Bitmaps

Calling Sequence

[yr,yg,yb] = bmpcolor(datei)

Parameters

Description

This function reads a file representing a Windows 3.1 RGB bitmap. The range of values of the outputs arguments is [0...255]. The matrices yr, yg, yb are of type double.

If only one rhs-argument is used for function call, then the matrix yr contains the luminace information. The luminance is calculated by the formula yr = 0.299 .*yr + 0.587 .*yg + 0.114 .*yb

Examples

[yr,yg,yb]=bmpcolor();

See Also

bmpread ,  

Authors

Dr. Andreas Geissler geisslea@web.de