fixed SIFT when keypoints vector is empty (#1162)
This commit is contained in:
parent
fbed6d1d44
commit
0b1575c485
@ -1722,6 +1722,7 @@ void SIFT::operator()(const Mat& image, const Mat& mask,
|
|||||||
KeyPointsFilter::removeDuplicated( keypoints );
|
KeyPointsFilter::removeDuplicated( keypoints );
|
||||||
|
|
||||||
// Compute descriptors.
|
// Compute descriptors.
|
||||||
|
if( featuresSeq->total > 0 )
|
||||||
cvSeqRemoveSlice( featuresSeq, cvSlice(0, featuresSeq->total) );
|
cvSeqRemoveSlice( featuresSeq, cvSlice(0, featuresSeq->total) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user