Java API: typo in converter is fixed

This commit is contained in:
Andrey Pavlenko 2011-07-28 15:37:46 +00:00
parent 0c096b3dc2
commit 8c328a9e3b

View File

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