Skip to content

Commit 3f4e7df

Browse files
jacosovrasov
authored andcommitted
ceil explicit cast added
1 parent 83f80a3 commit 3f4e7df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/saliency/src/motionSaliencyBinWangApr2014.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,15 +236,15 @@ bool MotionSaliencyBinWangApr2014::lowResolutionDetection( const Mat& image, Mat
236236
lowResBFMask.setTo( 1 );
237237

238238
// Scan all the ROI of original matrices
239-
for ( int i = 0; i < ceil( (float) image.rows / N ); i++ )
239+
for ( int i = 0; i < (int)ceil( (float) image.rows / N ); i++ )
240240
{
241241
if( ( roi.y + ( N - 1 ) ) <= ( image.rows - 1 ) )
242242
{
243243
// Reset original ROI dimension
244244
roi = Rect( Point( roi.x, roi.y ), Size( N, N ) );
245245
}
246246

247-
for ( int j = 0; j < ceil( (float) image.cols / N ); j++ )
247+
for ( int j = 0; j < (int)ceil( (float) image.cols / N ); j++ )
248248
{
249249
/* Pixels with activity greater than Bth are eliminated from the detection result. In this way,
250250
continuously blinking noise-pixels will be eliminated from the detection results,

0 commit comments

Comments
 (0)