applied patch from #1712 (thanks to Vlad)

This commit is contained in:
Vadim Pisarevsky 2012-03-26 08:04:27 +00:00
parent 216ef24b92
commit 69f5d8c1d3

View File

@ -418,7 +418,7 @@ struct SURFFindInvoker
for( int i=range.begin(); i<range.end(); i++ )
{
int layer = (*middleIndices)[i];
int octave = i % nOctaveLayers;
int octave = i / nOctaveLayers;
findMaximaInLayer( *sum, *mask_sum, *dets, *traces, *sizes,
*keypoints, octave, layer, hessianThreshold,
(*sampleSteps)[layer] );