Commit 43be77eb authored by Cyrille Valladeau's avatar Cyrille Valladeau

ENH: add bin size control (already done in 1 of the case)

parent 7c9ed544
......@@ -201,6 +201,9 @@ HistogramOfOrientedGradientCovariantImageFunction<TInputImage, TOutputPrecision,
// lies in [-pi, pi]
unsigned int binIndex = vcl_floor((otb::CONST_PI + angle)/orientationBinWidth);
if(binIndex == m_NumberOfOrientationBins)
// Compute the angular position
double angularPosition = vcl_atan2((double)j, (double)i) - principalOrientation;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment