DIPlib Documentation - ©1995-2008 Quantitative Imaging Group, Delft University of Technology.

dip__PixelGetInteger

Midlevel PixelIO function

SYNOPSIS

#include "dip_support.h"

dip_Error dip__PixelGetInteger ( vptr, type, position, stride, plane, val )

FUNCTION

The dip__PixelGet/SetInteger and dip__PixelGet/SetFloat functions provide midlevel access to image pixel values. These functions are faster than the highlevel Get and Set functions, but are easier to use than the lowlevel DIP_PIXEL_GET and DIP_PIXEL_SET macros as defined in dip_macros.h.

ARGUMENTS

Data typeNameDescription
void *vptrVoid pointer to the image data
dip_DataTypetypeImage data type. See DIPlib's data types
dip_IntegerArraypositionPosition of the pixel in the image
dip_IntegerArraystrideImage data stride
dip_intplanePlane of the pixel (binary images)
dip_int *valPointer to the variable receiving the obtained pixel value

SEE ALSO

dip__PixelGetFloat, dip__PixelSetInteger, dip__PixelSetFloat, Get, Set, GetInteger, SetInteger, GetFloat, SetFloat

DIPlib on-line documentation | Function reference | Global function index