Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxWatershedMarkers2.h File Reference

More...

#include "HxImageRep.h"

Go to the source code of this file.

Functions

HxImageRep L_HXIMAGEREP HxWatershedMarkers2 (HxImageRep input, HxImageRep mask, int conn=4, bool doLabelMask=false, int costMethod=0)
 Watershed from markers, second implementation. More...


Detailed Description


Function Documentation

HxImageRep L_HXIMAGEREP HxWatershedMarkers2 HxImageRep    input,
HxImageRep    mask,
int    conn = 4,
bool    doLabelMask = false,
int    costMethod = 0
 

Watershed from markers, second implementation.

  • im is the input image (HxImageRep)
  • mask is the marker image (HxImageRep)
  • conn is the connectivity (4 or 8)
  • doLabelMask (bool) indicate whether the marker images needs to be labeled before, or not
  • costMethod (int) indicate the cost function to be used in comparing to pixels: costMethod = 0: => w=neighbor.img costMethod = 1: => w=(center.img-neighbor.img)
R. Lotufo and A. Falcao. The ordered queue and the optimality of the watershed approaches. In Mathematical Morphology and its Application to Image and Signal Processing, pages 341{350, Dordrecht, The Netherlands, 2000.

00256 {
00257     HxTagList tags;
00258     HxAddTag(tags, "connectivity", conn);
00259     HxAddTag(tags, "doLabelPlusPlus", doLabelMask);
00260     HxAddTag(tags, "costmethod", costMethod);
00261 
00262     return input.queueBasedOp(mask, "qWatershedMarkers2", tags);
00263 }


Generated on Tue Feb 3 14:18:51 2004 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001