public class SCIFIOConfig extends HashMap<String,Object>
Context,
this class is effectively a container for state. However, its intended scope
is per method call stack, and not through a complete application. If any
object in a call stack has behavior that can be modified through this class,
a complete method chain accepting SCIFIOConfig instances should be
available - even if the intermediate classes do not require configuration
(the need for configuration is, effectively contagious).
Note that each getter and setter method signature in this class is prefixed by the component it affects.
| Modifier and Type | Class and Description |
|---|---|
static class |
SCIFIOConfig.ImgMode
Access type options for opening datasets.
|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
SCIFIOConfig()
Zero-param constructor.
|
SCIFIOConfig(org.scijava.Context context)
Context-injecting constructor.
|
SCIFIOConfig(SCIFIOConfig config)
Copying constructor.
|
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic SCIFIOConfig()
public SCIFIOConfig(org.scijava.Context context)
context - Context to injectpublic SCIFIOConfig(SCIFIOConfig config)
config - Configuration to copy.public SCIFIOConfig enableBufferedReading(boolean enabled)
public boolean bufferedReadingEnabled()
public SCIFIOConfig checkerSetOpen(boolean open)
public boolean checkerIsOpen()
public MetadataLevel parserGetLevel()
MetadataLevel desired for parsing.public SCIFIOConfig parserSetLevel(MetadataLevel level)
level - Desired metadata level for parsing.public boolean parserIsFiltered()
public SCIFIOConfig parserSetFiltered(boolean filterMetadata)
filterMetadata - Desired filtering behavior for parsing.public boolean parserIsSaveOriginalMetadata()
public SCIFIOConfig parserSetSaveOriginalMetadata(boolean saveOriginalMetadata)
saveOriginalMetadata - Desired metadata saving behavior for parsing.public SCIFIOConfig writerSetFailIfOverwriting(boolean failIfOverwriting)
failIfOverwriting - Whether or not an exception should be raised if
the writer's destination already exists. Default: truepublic boolean writerGetFailIfOverwriting()
public SCIFIOConfig writerSetSequential(boolean sequential)
sequential - Flag for writing sequential planes.public boolean writerIsSequential()
public SCIFIOConfig writerSetColorModel(ColorModel cm)
cm - ColorModel to use for writing.public ColorModel writerGetColorModel()
public SCIFIOConfig writerSetFramesPerSecond(int rate)
rate - Desired frames per second to use when writing.public int writerGetFramesPerSecond()
public SCIFIOConfig writerSetCompression(String compress)
compress - Desired compression type to use when writing.public SCIFIOConfig writerSetCompression(CompressionType compressType)
compressType - public String writerGetCompression()
public SCIFIOConfig writerSetCodecOptions(CodecOptions options)
options - Desired CodecOptions to use for writing.public CodecOptions writerGetCodecOptions()
public SCIFIOConfig groupableSetGroupFiles(boolean groupFiles)
groupFiles - Desired behavior for grouping potential multi-file
datasets. If true, these will be grouped into one single dataset.public boolean groupableIsGroupFiles()
public SCIFIOConfig.ImgMode[] imgOpenerGetImgModes()
public SCIFIOConfig imgOpenerSetImgModes(SCIFIOConfig.ImgMode... imgModes)
imgModes - A list of ImgMode access types. How these are interpreted
is up to the ImgFactoryHeuristic, but it is reasonable to expect
modes listed earlier to be preferred.public boolean imgOpenerIsComputeMinMax()
public SCIFIOConfig imgOpenerSetComputeMinMax(boolean computeMinMax)
computeMinMax - Whether or not images should be scaled to min/max
intensities.public ImageRegion imgOpenerGetRegion()
ImageRegion specifying dimension constraints. This may be
of a different dimensionality than the underlying image, in which case the
lengths are assume to be in the natural ordering of the image.public SCIFIOConfig imgOpenerSetRegion(ImageRegion region)
region - Region constraints for any image to openpublic PlaneConverter imgOpenerGetPlaneConverter()
nullpublic SCIFIOConfig imgOpenerSetPlaneConverter(PlaneConverter planeConverter)
planeConverter - Sets a PlaneConverter to use when opening datasets.
This is useful when using a custom Img type.public ImgFactoryHeuristic imgOpenerGetImgFactoryHeuristic()
nullpublic SCIFIOConfig imgOpenerSetImgFactoryHeuristic(ImgFactoryHeuristic imgFactoryHeuristic)
imgFactoryHeuristic - Heuristic to use when selecting an ImgFactory.
Will not be used if an ImgFactory is provided to the ImgOpener.public boolean imgOpenerIsOpenAllImages()
public SCIFIOConfig imgOpenerSetOpenAllImages(boolean openAll)
openAll - Whether or not all available images should be opened.
Default: false.public Range imgOpenerGetRange()
public SCIFIOConfig imgOpenerSetIndex(int index)
index - Image index within the dataset to openpublic SCIFIOConfig imgOpenerSetRange(String range)
range - Range of image indices to open.IllegalArgumentException - If a valid Range can not be
parsed.public SCIFIOConfig imgOpenerSetRange(Range range)
range - Image index to open.IllegalArgumentException - If index < 0public boolean imgSaverGetWriteRGB()
public SCIFIOConfig imgSaverSetWriteRGB(boolean rgb)
rgb - Whether or not the ImgSaver should composite channels when
writing.public SCIFIOConfig clone()
Copyright © 2011–2026 SCIFIO. All rights reserved.