Fixed assertion in ORB::setFirstLevel()
authorVitaly Tuzov <terfendail@mediana.jetos.com>
Thu, 1 Feb 2018 13:58:35 +0000 (16:58 +0300)
committerVitaly Tuzov <terfendail@mediana.jetos.com>
Thu, 1 Feb 2018 13:58:35 +0000 (16:58 +0300)
modules/features2d/include/opencv2/features2d.hpp
modules/features2d/src/orb.cpp

index 6a3405f..466bddf 100644 (file)
@@ -307,7 +307,7 @@ public:
     input_image_linear_size/pow(scaleFactor, nlevels - firstLevel).
     @param edgeThreshold This is size of the border where the features are not detected. It should
     roughly match the patchSize parameter.
-    @param firstLevel The level of pytramid to put source image to. Previous layers are filled
+    @param firstLevel The level of pyramid to put source image to. Previous layers are filled
     with upscaled source image.
     @param WTA_K The number of points that produce each element of the oriented BRIEF descriptor. The
     default value 2 means the BRIEF where we take a random point pair and compare their brightnesses,
index 6a4fad7..722e81b 100644 (file)
@@ -673,7 +673,7 @@ public:
     void setEdgeThreshold(int edgeThreshold_) { edgeThreshold = edgeThreshold_; }
     int getEdgeThreshold() const { return edgeThreshold; }
 
-    void setFirstLevel(int firstLevel_) { CV_Assert(firstLevel >= 0);  firstLevel = firstLevel_; }
+    void setFirstLevel(int firstLevel_) { CV_Assert(firstLevel_ >= 0);  firstLevel = firstLevel_; }
     int getFirstLevel() const { return firstLevel; }
 
     void setWTA_K(int wta_k_) { wta_k = wta_k_; }