reafactoring: replaced query device props functions with the DeviceInfo class
This commit is contained in:
@@ -104,7 +104,7 @@ namespace
|
||||
CV_Assert(img.type() == CV_8UC1);
|
||||
CV_Assert(mask.empty() || (mask.size() == img.size() && mask.type() == CV_8UC1));
|
||||
CV_Assert(nOctaves > 0 && nIntervals > 2);
|
||||
CV_Assert(hasAtomicsSupport(getDevice()));
|
||||
CV_Assert(DeviceInfo().has(ATOMICS));
|
||||
|
||||
max_features = static_cast<int>(img.size().area() * featuresRatio);
|
||||
max_candidates = static_cast<int>(1.5 * max_features);
|
||||
|
Reference in New Issue
Block a user