Skip to content
Prev Previous commit
Next Next commit
fix assertion failed error
  • Loading branch information
TanaseButcaru committed Feb 29, 2016
commit 413dd7bf976af380e44778cd25dc5ccefa649008
4 changes: 2 additions & 2 deletions src/Features2d.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class AsyncDetectSimilarity: public Nan::AsyncWorker {
extractor->compute(image2, keypoints2, descriptors2);


if (descriptors1.type() == descriptors2.type() && descriptors1.cols() == descriptors2.cols()) {
if (descriptors1.type() == descriptors2.type() && descriptors1.cols == descriptors2.cols) {
matcher->match(descriptors1, descriptors2, matches);

double max_dist = 0;
Expand Down Expand Up @@ -83,7 +83,7 @@ class AsyncDetectSimilarity: public Nan::AsyncWorker {

}
else {
dissimilarity = std::numeric_limits<T>::quiet_NaN();
dissimilarity = Nan::Null();
}

}
Expand Down