[mmConst] [Up] [mmDrawv] Image Creation

mmGconst
Create a constant image.

Synopsis

Image mmGconst ( const Double& width , const Double& height , const Double& depth , const Double& V = 0, const String& TYPE = "uint8" );

Input

width Double []

Number of columns in the image.

height Double []

Number of rows in the image.

depth Double []

Number of bands in the image.

V Double [ Non-negative integer. ]

Pixel value.

Default: 0

TYPE String

'uint8', 'uint16', 'int32', or 'binary'.

Default: "uint8"

Output

Y Image [ Gray-scale (uint8 or uint16) or binary image ]

Description

Create a constant image of width columns, height rows and depth bands. All pixels will have value v of the given data type

See also

mmBinary Convert a gray-scale image into a binary image
mmGray Convert a binary image into a gray-scale image.
[mmConst] [Up] [mmDrawv]