use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.
the class SelectAlgorithmAndInputPanel method loadInputData.
/**
* Loads a standardized file for input references
*
* @param fileName path to config file
*/
@Override
public void loadInputData(String fileName) {
Reader r = media.openFile(fileName);
List<PathLabel> refs = new ArrayList<>();
try {
BufferedReader reader = new BufferedReader(r);
String line;
while ((line = reader.readLine()) != null) {
String[] z = line.split(":");
String[] names = new String[z.length - 1];
for (int i = 1; i < z.length; i++) {
names[i - 1] = baseDirectory + z[i];
}
refs.add(new PathLabel(z[0], names));
}
setInputList(refs);
} catch (IOException e) {
throw new RuntimeException(e);
}
}
Aggregations