private List<Mat> checkMat(Mat mat) { List<Mat> mats = new ArrayList<>(); if (CvType.CV_8UC1 == mat.type() || CvType.CV_8UC3 == mat.type()) { mats.add(mat); } else if (CvType.CV_8UC4 == mat.type()) { List<Mat> matsBGRA = new ArrayList<>(); Core.split(mat, matsBGRA); Mat mBGR = new Mat(mat.size(), CvType.CV_8UC3); Mat matA = matsBGRA.remove(3); Core.merge(matsBGRA, mBGR); mats.add(mBGR); MatOfDouble mStdDev = new MatOfDouble(); Core.meanStdDev(matA, new MatOfDouble(), mStdDev); if (0 < mStdDev.toArray()[0]) { mats.add(matA); } } return mats; }
public List<Double> toList() { double[] a = toArray(); Double ab[] = new Double[a.length]; for(int i=0; i<a.length; i++) ab[i] = a[i]; return Arrays.asList(ab); } }
public List<Double> toList() { double[] a = toArray(); Double ab[] = new Double[a.length]; for(int i=0; i<a.length; i++) ab[i] = a[i]; return Arrays.asList(ab); } }
public List<Double> toList() { double[] a = toArray(); Double ab[] = new Double[a.length]; for(int i=0; i<a.length; i++) ab[i] = a[i]; return Arrays.asList(ab); } }
public List<Double> toList() { double[] a = toArray(); Double ab[] = new Double[a.length]; for(int i=0; i<a.length; i++) ab[i] = a[i]; return Arrays.asList(ab); } }
public List<Double> toList() { double[] a = toArray(); Double ab[] = new Double[a.length]; for(int i=0; i<a.length; i++) ab[i] = a[i]; return Arrays.asList(ab); } }
public List<Double> toList() { double[] a = toArray(); Double ab[] = new Double[a.length]; for(int i=0; i<a.length; i++) ab[i] = a[i]; return Arrays.asList(ab); } }
public List<Double> toList() { double[] a = toArray(); Double ab[] = new Double[a.length]; for(int i=0; i<a.length; i++) ab[i] = a[i]; return Arrays.asList(ab); } }
public List<Double> toList() { double[] a = toArray(); Double ab[] = new Double[a.length]; for(int i=0; i<a.length; i++) ab[i] = a[i]; return Arrays.asList(ab); } }
public List<Double> toList() { double[] a = toArray(); Double ab[] = new Double[a.length]; for(int i=0; i<a.length; i++) ab[i] = a[i]; return Arrays.asList(ab); } }
public List<Double> toList() { double[] a = toArray(); Double ab[] = new Double[a.length]; for(int i=0; i<a.length; i++) ab[i] = a[i]; return Arrays.asList(ab); } }
public List<Double> toList() { double[] a = toArray(); Double ab[] = new Double[a.length]; for(int i=0; i<a.length; i++) ab[i] = a[i]; return Arrays.asList(ab); } }
public List<Double> toList() { double[] a = toArray(); Double ab[] = new Double[a.length]; for(int i=0; i<a.length; i++) ab[i] = a[i]; return Arrays.asList(ab); } }
public List<Double> toList() { double[] a = toArray(); Double ab[] = new Double[a.length]; for(int i=0; i<a.length; i++) ab[i] = a[i]; return Arrays.asList(ab); } }
public List<Double> toList() { double[] a = toArray(); Double ab[] = new Double[a.length]; for(int i=0; i<a.length; i++) ab[i] = a[i]; return Arrays.asList(ab); } }
public List<Double> toList() { double[] a = toArray(); Double ab[] = new Double[a.length]; for(int i=0; i<a.length; i++) ab[i] = a[i]; return Arrays.asList(ab); } }
public List<Double> toList() { double[] a = toArray(); Double ab[] = new Double[a.length]; for(int i=0; i<a.length; i++) ab[i] = a[i]; return Arrays.asList(ab); } }
public List<Double> toList() { double[] a = toArray(); Double ab[] = new Double[a.length]; for(int i=0; i<a.length; i++) ab[i] = a[i]; return Arrays.asList(ab); } }
public List<Double> toList() { double[] a = toArray(); Double ab[] = new Double[a.length]; for(int i=0; i<a.length; i++) ab[i] = a[i]; return Arrays.asList(ab); } }