#include <HxExportExtraIdentMaskMedian.h>
Public Types | |
typedef HxTagTransInVar | TransVarianceCategory |
Functor is translation invariant. More... | |
typedef HxTag1Phase | PhaseCategory |
1 phase. More... | |
Public Methods | |
HxExportExtraIdentMaskMedian (HxTagList &tags) | |
Constructor. More... | |
~HxExportExtraIdentMaskMedian () | |
Destructor. More... | |
void | doIt (const ImValT &imV, const ExtraValT &extraV) |
Processing one pixel. More... | |
Static Public Methods | |
HxString | className () |
The name : "identMaskMedian". More... |
|
Functor is translation invariant.
|
|
1 phase.
|
|
Constructor.
00057 : _tags(tags) 00058 { 00059 _maskVal = HxGetTag<int>(tags, "maskVal"); 00060 _result = HxScalarInt(0); 00061 _minVal = ImValT::LARGE_VAL; 00062 _maxVal = ImValT::SMALL_VAL; 00063 } |
|
Destructor.
00067 { 00068 _result = ResultT(_minVal) + ResultT(_maxVal); 00069 _result /= HxScalarInt(2); 00070 HxAddTag(_tags, "result", HxValue(_result)); 00071 } |
|
Processing one pixel.
00077 { 00078 if (extraV == _maskVal) { 00079 if(imV < _minVal) 00080 _minVal=imV; 00081 if(imV > _maxVal) 00082 _maxVal=imV; 00083 } 00084 } |
|
The name : "identMaskMedian".
00089 { 00090 return HxString("identMaskMedian"); 00091 } |