[mmMin] [Up] [mmPutpixels] Programming support

mmGetpixels
Select pixels of image fv at 1D offset indexes given by image fi.

Synopsis

Image mmGetpixels ( const Image& fv , const Image& fi , const Double& v = 3.402823466E+38F );

Input

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

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

v Double []

When this parameter is given, no error is reported if the indexes are outside of the domain of image f_v. In this case the value v is taken.

Default: 3.402823466E+38F

Output

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

Description

Create an image of same size as image fi, but with pixel values taken from image fv at the 1D pixel raster coordinates given by image fi. If any index of image fi is outside the domain of image fv, an error is reported. If parameter v is used, instead of an error, the value v is used for indexes outside the image domain. This function is equivalent to the MATLAB facility to access a sub-array using its 1-D index addressing.

See also

mmPutpixels Set ROI using 1-D indexing from another input image
[mmMin] [Up] [mmPutpixels]