[mmPlot] [Up] [mmDraw] Obsolete

mmGetpixel
Returns the value of an pixel of an image.

Synopsis

Double mmGetpixel ( const Image& X , const Double& W , const Double& H , const Double& D = 0 );

Input

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

W Double [ Non-negative integer. ]

(width coordinate)

H Double [ Non-negative integer. ]

(height coordinate)

D Double [ Non-negative integer. ]

(depth coordinate)

Default: 0

Output

V Double [ Non-negative integer. ]

Pixel value.

Description

mmGetpixel returns the value V of the pixel at coordinates ( W(width), H(height), D(depth)) of the image X. The image coordinates origin is at W=0, H=0 and D=0, which represents the top left image pixel. If X is a binary image, the result is either 0 or 1.

See also

[mmPlot] [Up] [mmDraw]