Commit 69f5d8c1 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

applied patch from #1712 (thanks to Vlad)

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