File directoyOfMatFiles; // it points to the directory that contains mat files
File[] contentOfDirectoyOfMatFiles = directoyOfMatFiles.listFiles();
ArrayList<Mat> mats = new ArrayList<Mat>();
for (File f : contentOfDirectoyOfMatFiles) {
Mat m = Highgui.imread(f.getAbsolutePath());
mats.add(m);
}
Read array of images from external directory into MAT objects in android
-
31-07-2022 - |
Frage
How do i read array of images stored in SDcard to a array of MAT object ? i want to do similar imread like in this post, but for array of images
Lösung
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow