Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2861eda

Browse files
committed
Fixed Java test failure.
1 parent ac90acd commit 2861eda

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

modules/features2d/include/opencv2/features2d.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -889,6 +889,9 @@ class CV_EXPORTS_W AKAZE : public Feature2D
889889
@param nOctaveLayers Default number of sublevels per scale level
890890
@param diffusivity Diffusivity type. DIFF_PM_G1, DIFF_PM_G2, DIFF_WEICKERT or
891891
DIFF_CHARBONNIER
892+
@param max_points Maximum amount of returned points. In case if image contains
893+
more features, then the features with highest response are returned.
894+
Negative value means no limitation.
892895
*/
893896
CV_WRAP static Ptr<AKAZE> create(AKAZE::DescriptorType descriptor_type = AKAZE::DESCRIPTOR_MLDB,
894897
int descriptor_size = 0, int descriptor_channels = 3,

modules/features2d/misc/java/test/AKAZEDescriptorExtractorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void testWriteYml() {
5858

5959
extractor.write(filename);
6060

61-
String truth = "%YAML:1.0\n---\nformat: 3\nname: \"Feature2D.AKAZE\"\ndescriptor: 5\ndescriptor_channels: 3\ndescriptor_size: 0\nthreshold: 1.0000000474974513e-03\noctaves: 4\nsublevels: 4\ndiffusivity: 1\n";
61+
String truth = "%YAML:1.0\n---\nformat: 3\nname: \"Feature2D.AKAZE\"\ndescriptor: 5\ndescriptor_channels: 3\ndescriptor_size: 0\nthreshold: 1.0000000474974513e-03\noctaves: 4\nsublevels: 4\ndiffusivity: 1\nmax_points: -1\n";
6262
String actual = readFile(filename);
6363
actual = actual.replaceAll("e([+-])0(\\d\\d)", "e$1$2"); // NOTE: workaround for different platforms double representation
6464
assertEquals(truth, actual);

0 commit comments

Comments
 (0)