Fix wrong checking of returned descriptor type
This commit is contained in:
parent
c1bf453266
commit
a134e068ef
@ -151,7 +151,7 @@ namespace cv
|
|||||||
impl.Compute_Descriptors(keypoints, desc);
|
impl.Compute_Descriptors(keypoints, desc);
|
||||||
|
|
||||||
CV_Assert((!desc.rows || desc.cols == descriptorSize()));
|
CV_Assert((!desc.rows || desc.cols == descriptorSize()));
|
||||||
CV_Assert((!desc.rows || (desc.type() & descriptorType())));
|
CV_Assert((!desc.rows || (desc.type() == descriptorType())));
|
||||||
}
|
}
|
||||||
|
|
||||||
void AKAZE::detectImpl(InputArray image, std::vector<KeyPoint>& keypoints, InputArray mask) const
|
void AKAZE::detectImpl(InputArray image, std::vector<KeyPoint>& keypoints, InputArray mask) const
|
||||||
@ -197,6 +197,6 @@ namespace cv
|
|||||||
impl.Compute_Descriptors(keypoints, desc);
|
impl.Compute_Descriptors(keypoints, desc);
|
||||||
|
|
||||||
CV_Assert((!desc.rows || desc.cols == descriptorSize()));
|
CV_Assert((!desc.rows || desc.cols == descriptorSize()));
|
||||||
CV_Assert((!desc.rows || (desc.type() & descriptorType())));
|
CV_Assert((!desc.rows || (desc.type() == descriptorType())));
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -120,7 +120,7 @@ namespace cv
|
|||||||
impl.Feature_Description(keypoints, desc);
|
impl.Feature_Description(keypoints, desc);
|
||||||
|
|
||||||
CV_Assert((!desc.rows || desc.cols == descriptorSize()));
|
CV_Assert((!desc.rows || desc.cols == descriptorSize()));
|
||||||
CV_Assert((!desc.rows || (desc.type() & descriptorType())));
|
CV_Assert((!desc.rows || (desc.type() == descriptorType())));
|
||||||
}
|
}
|
||||||
|
|
||||||
void KAZE::detectImpl(InputArray image, std::vector<KeyPoint>& keypoints, InputArray mask) const
|
void KAZE::detectImpl(InputArray image, std::vector<KeyPoint>& keypoints, InputArray mask) const
|
||||||
@ -168,6 +168,6 @@ namespace cv
|
|||||||
impl.Feature_Description(keypoints, desc);
|
impl.Feature_Description(keypoints, desc);
|
||||||
|
|
||||||
CV_Assert((!desc.rows || desc.cols == descriptorSize()));
|
CV_Assert((!desc.rows || desc.cols == descriptorSize()));
|
||||||
CV_Assert((!desc.rows || (desc.type() & descriptorType())));
|
CV_Assert((!desc.rows || (desc.type() == descriptorType())));
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user