public class Utils
extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static ij.io.FileInfo |
getTiffInfos(String imagePath)
Read the tiff metadata from a tif file header using ImageJ built-in functionality (TiffDecoder).
|
static int[] |
getWidthHeightBitDepthFromInfo(ij.io.FileInfo tiffMetadata)
Read an image dimensions [width, height, bitDepth] from the header of a tiff image.
|
static int[] |
getWidthHeightBitDepthFromTiff(String imagePath) |
static boolean |
ijVersionEqualOrAbove(String version)
Check if current ImageJ version is equal or above the given version.
|
static boolean |
ijVersionLessThan(String version)
Check if current ImageJ version is smaller than given version.
|
static <T> void |
printArray(Collection<T> collection)
Print each elements of a collection on a new-line for better readability.
|
static void |
printArray(Object[] array)
Print each elements of an array on a new-line for better readability.
|
static void |
setCalibrationPixelSizeXY(ij.ImagePlus imp,
ij.io.FileInfo tiffMetadata)
Populate the pixelWidth and pixelHeight of an ImagePlus based on tiffMetadata.
|
public static boolean ijVersionEqualOrAbove(String version)
public static boolean ijVersionLessThan(String version)
public static void printArray(Object[] array)
public static <T> void printArray(Collection<T> collection)
public static ij.io.FileInfo getTiffInfos(String imagePath) throws IOException
IOException
public static int[] getWidthHeightBitDepthFromTiff(String imagePath) throws IOException
IOException
public static int[] getWidthHeightBitDepthFromInfo(ij.io.FileInfo tiffMetadata)
public static void setCalibrationPixelSizeXY(ij.ImagePlus imp, ij.io.FileInfo tiffMetadata)