|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.MiToBo.io.tools.ImageIOUtils
@ALDMetaInfo(export=MANDATORY) public class ImageIOUtils
A class of utility functions used by the MiToBo's image-IO classes
Constructor Summary | |
---|---|
ImageIOUtils()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageIOUtils()
Method Detail |
---|
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
- omemeta
- imageIdx
- public static double toMicrons(double val, String unit)
val
- 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)
imageIdx
cal
- 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
-
public static Integer getKey(HashMap<Integer,String> hmap, String value)
hmap
- value
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |