Skip to content

Commit

Permalink
objdetect: int to MagicFlag casting
Browse files Browse the repository at this point in the history
  • Loading branch information
cv3d committed Sep 12, 2018
1 parent 73e4627 commit 1111f26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/objdetect/src/cascadedetect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ void HaarEvaluator::computeChannels(int scaleIdx, InputArray img)
int sqy = sy + (sqofs / sbufSize.width);
UMat sum(usbuf, Rect(sx, sy, s.szi.width, s.szi.height));
UMat sqsum(usbuf, Rect(sx, sqy, s.szi.width, s.szi.height));
sqsum.flags = (sqsum.flags & ~UMat::DEPTH_MASK) | CV_32S;
sqsum.flags = (sqsum.flags & static_cast<MagicFlag>(~UMat::DEPTH_MASK)) | CV_32SC1;

if (hasTiltedFeatures)
{
Expand Down

0 comments on commit 1111f26

Please sign in to comment.