STIRA  0.1
Public Member Functions | List of all members
stira::imageanalysis::mycomparison< T > Class Template Reference

help class: needed by priority_queue for ordering the elements More...

#include <Watershed.h>

Public Member Functions

 mycomparison (const bool &revparam=true)
 constructor More...
 
bool operator() (PixelElement< T > &lhs, PixelElement< T > &rhs) const
 comparison operator: compares the values of two pixel elements More...
 

Detailed Description

template<class T>
class stira::imageanalysis::mycomparison< T >

help class: needed by priority_queue for ordering the elements

Constructor & Destructor Documentation

template<class T >
stira::imageanalysis::mycomparison< T >::mycomparison ( const bool &  revparam = true)
inline

constructor

Parameters
revparamtrue if we want to sort from large to small

Member Function Documentation

template<class T >
bool stira::imageanalysis::mycomparison< T >::operator() ( PixelElement< T > &  lhs,
PixelElement< T > &  rhs 
) const
inline

comparison operator: compares the values of two pixel elements

Parameters
lhsfirst pixel element
rhssecond pixel element

References stira::imageanalysis::PixelElement< T >::value.


The documentation for this class was generated from the following file: