From 6bd2bbc572d64b97a45428d84a853a0be2b3dae0 Mon Sep 17 00:00:00 2001 From: Yoshihiro OKUMURA Date: Thu, 29 Sep 2022 19:03:57 +0900 Subject: [PATCH] update example code for extracting thumbnail. --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e55baea..0a09adb 100644 --- a/README.md +++ b/README.md @@ -26,14 +26,17 @@ java -jar ./target/bioformats-imageinfo-1.1.0-jar-with-dependencies.jar "[path t import java.util.LinkedHashMap; import java.util.Map; import jp.riken.neurodata.tools.BioFormatsImageInfo; -import jp.riken.neurodata.tools.BioFormatsException; +import jp.riken.neurodata.tools.BioFormatsImageException; +import jp.riken.neurodata.tools.BioFormatsImageThumbnail; String path = "[path to image file]"; String format = ""; Map metadata = new LinkedHashMap(); +Map thumbnail = new LinkedHashMap(); try { format = BioFormatsImageInfo.readMetadata(path, metadata); + BioFormatsImageThumbnail.readThumbnail(path, thumbnail); } catch (BioFormatsImageException e) { // error occurred e.printStackTrace();