Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

CPriorityQueue Class Reference

A priority queue of pixels. More...

#include <PriorityQueue.h>

Inheritance diagram for CPriorityQueue

Inheritance graph

[legend]
Collaboration diagram for CPriorityQueue:

Collaboration graph

[legend]
List of all members.

Public Methods

 CPriorityQueue ()
virtual ~CPriorityQueue ()
bool empty ()
 Check if the queue is empty.

void first (LPPIXEL *p)
 Get the first pixel of the queue in 4 or 8 connectivity.

void first (LPPIXEL *p, short *parity)
 Get the first pixel of the queue in 6 connectivity.

void add (LPPIXEL p)
 Adding a pixel to the queue in 4 or 8 connectivity.

void add (LPPIXEL p, short parity)
 Adding a pixel to the queue in 6 connectivity.

void invert ()
 invert the queue (not always possible).


Private Attributes

priority_queue<PriorPix, vector<
PriorPix>, PixGreater > 
pqueue

Detailed Description

A priority queue of pixels.

Author(s):
Laurent Najman
Date:
8/26/01
Keywords:
Queue
Version:
Id: PriorityQueue.h,v 1.1 2001/08/28 21:56:16 laurentnajman Exp
Content:
An implementation of priority queue for use in morphological algorithm. A pixel is put into a queue. The less is its pixel value, the most prioritary it is.


The documentation for this class was generated from the following file:
Generated at Sun May 12 19:04:29 2002 for OpenMorpho by doxygen1.2.0 written by Dimitri van Heesch, © 1997-2000