public class TIFFImageLoader
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
asGrey |
protected Configuration |
configuration |
protected static java.lang.String |
DEF_IMAGE_NAME
Default name for first image dataset
|
protected java.io.File |
file |
protected static java.lang.String |
FILEPATH_DATASET_SEPARATOR
String to separate full file path or file name from dataset name
|
protected static java.lang.String |
IMAGE_NAME_FORMAT
Name format for an image dataset
|
protected static java.lang.String |
IMAGE_NAME_PREFIX
Name prefix for an image dataset (should be followed by two digits, starting with 01)
|
protected boolean |
keepBitWidth |
protected static org.slf4j.Logger |
logger |
protected static java.lang.String |
STACK_NAME
Name for image stack
|
| Constructor and Description |
|---|
TIFFImageLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure(Configuration configuration) |
protected Dataset |
createDataset(java.awt.image.BufferedImage input) |
protected static Dataset |
createDataset(java.awt.image.BufferedImage input,
boolean asGrey,
boolean keepBitWidth) |
protected LazyDataset |
createLazyDataset(io.github.h5jan.io.AbstractFileLoader.LazyLoaderStub l,
java.lang.String dName,
java.lang.Class<? extends Dataset> clazz,
int... shape) |
protected LazyDataset |
createLazyDataset(IFileLoader loader,
java.lang.String dName,
java.lang.Class<? extends Dataset> clazz,
int... shape) |
protected LazyDataset |
createLazyDataset(IFileLoader loader,
java.lang.String dName,
java.lang.String dhName,
java.lang.Class<? extends Dataset> clazz,
int... shape) |
protected boolean |
createLazyDatasets(DataFrame output,
javax.imageio.ImageReader reader) |
protected java.io.File |
findCorrectSuffix(java.io.File file) |
boolean |
isKeepBitWidth() |
DataFrame |
load(java.io.File file,
Configuration configuration,
IMonitor mon)
This function is called when the ScanFileHolder needs to load data from a particular source
It can also be called on by itself
|
protected static boolean |
monitorIncrement(IMonitor mon) |
void |
setAsGrey(boolean asGrey) |
protected void |
setConfiguration(Configuration configuration) |
void |
setFile(java.io.File file) |
void |
setFileType(java.lang.String fileType) |
void |
setKeepBitWidth(boolean keepBitWidth)
set loader to keep bit width of pixels
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisLoadingprotected static final org.slf4j.Logger logger
protected boolean asGrey
protected boolean keepBitWidth
protected static final java.lang.String IMAGE_NAME_PREFIX
protected static final java.lang.String IMAGE_NAME_FORMAT
protected static final java.lang.String DEF_IMAGE_NAME
protected static final java.lang.String STACK_NAME
protected static final java.lang.String FILEPATH_DATASET_SEPARATOR
protected java.io.File file
protected Configuration configuration
public DataFrame load(java.io.File file, Configuration configuration, IMonitor mon) throws java.io.IOException
IFileLoaderload in interface IFileLoaderfile - - file to loadconfiguration - - configuration or null or emptymon - - may be nulljava.io.IOExceptionprotected void configure(Configuration configuration)
public void setFile(java.io.File file)
protected boolean createLazyDatasets(DataFrame output, javax.imageio.ImageReader reader)
protected Dataset createDataset(java.awt.image.BufferedImage input)
throws java.io.IOException
java.io.IOExceptionprotected static Dataset createDataset(java.awt.image.BufferedImage input,
boolean asGrey,
boolean keepBitWidth)
throws java.io.IOException
java.io.IOExceptionprotected java.io.File findCorrectSuffix(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic void setAsGrey(boolean asGrey)
public void setFileType(java.lang.String fileType)
public boolean isKeepBitWidth()
public void setKeepBitWidth(boolean keepBitWidth)
keepBitWidth - protected void setConfiguration(Configuration configuration)
protected LazyDataset createLazyDataset(io.github.h5jan.io.AbstractFileLoader.LazyLoaderStub l,
java.lang.String dName,
java.lang.Class<? extends Dataset> clazz,
int... shape)
protected LazyDataset createLazyDataset(IFileLoader loader, java.lang.String dName, java.lang.Class<? extends Dataset> clazz, int... shape)
protected LazyDataset createLazyDataset(IFileLoader loader, java.lang.String dName, java.lang.String dhName, java.lang.Class<? extends Dataset> clazz, int... shape)
protected static boolean monitorIncrement(IMonitor mon)
mon -