Metadata extraction tool based on Bio-Formats
Go to file
2022-07-12 09:40:35 +09:00
src/main/java/jp/riken/neurodata/tools first commit. 2022-07-12 09:40:35 +09:00
.gitignore first commit. 2022-07-12 09:40:35 +09:00
pom.xml first commit. 2022-07-12 09:40:35 +09:00
README.md first commit. 2022-07-12 09:40:35 +09:00

BioFormatsImageInfo

Metadata extraction tool based on Bio-Formats

Compile

mvn compile

run

mvn exec:java -Dexec.mainClass=jp.riken.neurodata.tools.BioFormatsImageInfo -Dexec.args="'[path to image file]'"

make jar package

mvn package

run by jar

java -jar target\bioformats-imageinfo-1.0.0.jar [path to image file]

run by class

import java.util.LinkedHashMap;
import java.util.Map;
import jp.riken.neurodata.tools.BioFormatsImageInfo;
import jp.riken.neurodata.tools.BioFormatsException;

String path = "[path to image file]";
String format = "";
Map<String, Object> metadata = new LinkedHashMap<String, Object>();

try {
  format = BioFormatsImageInfo.readMetadata(path, metadata));
} catch (BioFormatsImageException e) {
  // error occured
  e.printStackTrace();
}