Java API: typo in converter is fixed
authorAndrey Pavlenko <no@email>
Thu, 28 Jul 2011 15:37:46 +0000 (15:37 +0000)
committerAndrey Pavlenko <no@email>
Thu, 28 Jul 2011 15:37:46 +0000 (15:37 +0000)
modules/java/src/java/Converters.java

index 7957099..300eec3 100644 (file)
@@ -138,9 +138,9 @@ public class Converters {
         if(fs == null)\r
             throw new java.lang.IllegalArgumentException("fs == null");\r
         int count = m.rows();\r
-        if( CvType.CV_32FC1 != m.type() ||  m.rows()!=1 )\r
+        if( CvType.CV_32FC1 != m.type() ||  m.cols()!=1 )\r
             throw new java.lang.IllegalArgumentException(\r
-                    "CvType.CV_32FC1 != m.type() ||  m.rows()!=1\n" + m);\r
+                    "CvType.CV_32FC1 != m.type() ||  m.cols()!=1\n" + m);\r
 \r
         fs.clear();\r
         float[] buff = new float[count];\r