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

PixelQueuePush

Push item onto queue

SYNOPSIS

#include "dip_pixelqueue.h"

dip_Error dip_PixelQueuePush ( queue, coords, pointer )

FUNCTION

Pushes a pixel onto the queue. See PixelQueueNew for information on the queue data structure. Both coords and pointer are stored, except if the stack was created with ndims set to 0, in which case the coords values are ignored.

coords is a pointer to an array of dip_ints, such as that obtained with dip_IntegerArray->array. It should have as many elements as the image dimensionality. pointer is a pointer to any memory location.

ARGUMENTS

Data typeNameDescription
dip_PixelQueuequeueThe queue structure
dip_int *coordsCoordinates to be pushed
void *pointerPointer to be pushed

SEE ALSO

PixelQueueNew, PixelHeapNew, StablePixelHeapNew, PixelQueueFree, PixelQueuePop, PixelQueueIsEmpty