@ -177,9 +177,9 @@ void ObjectnessBING::predictBBoxSII( ValStructVec<float, Vec4i> &valBoxes, const
valBoxes ( i ) = valBoxes ( i ) * svmIIw [ 0 ] + svmIIw [ 1 ] ;
}
//valBoxes.sort();
// Ascending order. At the top there are the values with low er
// values of objectness , ie more likely to have objects in the their corresponding rectangles.
valBoxes . sort ( fals e ) ;
// Descending order. At the top there are the values with high er
// values, ie more likely to have objects in the their corresponding rectangles.
valBoxes . sort ( tru e ) ;
}
// Get potential bounding boxes, each of which is represented by a Vec4i for (minX, minY, maxX, maxY).
@ -481,8 +481,8 @@ bool ObjectnessBING::computeSaliencyImpl( const InputArray image, OutputArray ob
ValStructVec < float , Vec4i > finalBoxes ;
getObjBndBoxesForSingleImage ( image . getMat ( ) , finalBoxes , 250 ) ;
// List of rectangles returned by objectess function in a scending order.
// At the top there are the rectangles with lower values of objectnes s, ie more
// List of rectangles returned by objectess function in de scending order.
// At the top there are the rectangles with higher value s, ie more
// likely to have objects in them.
vector < Vec4i > sortedBB = finalBoxes . getSortedStructVal ( ) ;
Mat ( sortedBB ) . copyTo ( objBoundingBox ) ;