public class ImageIOUtils extends Object
| Constructor and Description |
|---|
ImageIOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static HashMap<Integer,String> |
availableCodecs(Class<? extends loci.formats.IFormatWriter> writerclass)
Get available codecs of a specific writer class.
|
static HashMap<Integer,String> |
availableQualities(Class<? extends loci.formats.IFormatWriter> writerclass)
Get available qualities of a specific writer class.
|
static Integer |
getKey(HashMap<Integer,String> hmap,
String value)
Obtain the key for a given value of a HashMap, if available.
|
static String |
imgReadInfo(loci.formats.IFormatReader r)
Create a string of image reading information
|
static String |
imgWriteInfo(String filename,
loci.formats.IFormatWriter w,
int imgIdx)
Create a string of image writing information
|
static ome.xml.model.enums.PixelType |
omePixelType(MTBImage.MTBImageType type)
Get the OME pixel type corresponding to the specified MTB image type
|
static void |
physicalPixelSize_from_OME(ij.measure.Calibration cal,
loci.formats.meta.IMetadata omemeta,
int imageIdx)
Set the calibration of an image from the OME meta data of image of index
imageIdx |
static void |
physicalPixelSize_to_OME(ij.measure.Calibration cal,
loci.formats.meta.IMetadata omemeta,
int imageIdx)
Set OME meta data for image of index
imageIdx using
information from a Calibration object. |
static double |
toMicrons(double val,
String unit)
Convert a value of given space unit to microns.
|
static double |
toSeconds(double val,
String unit)
Convert a value of given time unit to seconds.
|
public static ome.xml.model.enums.PixelType omePixelType(MTBImage.MTBImageType type)
type - public static void physicalPixelSize_to_OME(ij.measure.Calibration cal,
loci.formats.meta.IMetadata omemeta,
int imageIdx)
imageIdx using
information from a Calibration object.cal - Calibration object.omemeta - OME object where to store calibration metadata.imageIdx - Index of image.public static double toMicrons(double val,
String unit)
val - Value to convert.unit - Source unit.public static double toSeconds(double val,
String unit)
val - unit - public static void physicalPixelSize_from_OME(ij.measure.Calibration cal,
loci.formats.meta.IMetadata omemeta,
int imageIdx)
imageIdxcal - omemeta - imageIdx - public static String imgWriteInfo(String filename, loci.formats.IFormatWriter w, int imgIdx)
filename - w - imgIdx - public static String imgReadInfo(loci.formats.IFormatReader r)
r - public static HashMap<Integer,String> availableCodecs(Class<? extends loci.formats.IFormatWriter> writerclass)
writerclass - public static HashMap<Integer,String> availableQualities(Class<? extends loci.formats.IFormatWriter> writerclass)
writerclass - Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.