#ifndef _OTB_TRISKELE_ARRAY_TREE_WEIGHT_TPP #define _OTB_TRISKELE_ARRAY_TREE_WEIGHT_TPP template inline MedianWeight::MedianWeight (const PixelT *pixels, const GraphWalker &graphWalker) : WB (pixels, graphWalker.size) { median = graphWalker.getMedian (*this); thresholdPixel = median < WB::halfPixel ? median * 2 : WB::maxPixel - (WB::maxPixel-median) * 2; thresholdWeight = median < WB::halfPixel ? median * 2 : (WB::maxPixel-median) * 2; } #endif // _OTB_TRISKELE_ARRAY_TREE_WEIGHT_TPP