Metadata extraction tool based on Bio-Formats
Go to file
2022-09-29 15:13:33 +09:00
src/main/java/jp/riken/neurodata/tools use source code indentation style to 4 spaces. 2022-09-29 15:13:33 +09:00
.gitignore first commit. 2022-07-12 09:40:35 +09:00
LICENSE.txt add license file. 2022-07-14 09:07:14 +09:00
pom.xml update version to 1.1.0. 2022-09-29 15:12:45 +09:00
README.md revised package development environment. 2022-07-12 17:46:31 +09:00

BioFormatsImageInfo

Metadata extraction tool based on Bio-Formats

make package

mvn package

run

./target/dist/bin/bioformats-imageinfo "[path to image file]"

run by jar

java -jar ./target/dist/lib/bioformats-imageinfo-1.0.0.jar "[path to image file]"

run by fat jar

java -jar ./target/bioformats-imageinfo-1.0.0-jar-with-dependencies.jar "[path to image file]"

library usage

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 occurred
  e.printStackTrace();
}