public interface DatasetService extends ImageJService
Datasets.| Modifier and Type | Method and Description |
|---|---|
boolean |
canOpen(String source)
Deprecated.
Use io.scif.services.DatasetIOService#canOpen instead.
|
boolean |
canSave(String destination)
Deprecated.
Use io.scif.services.DatasetIOService#canSave instead.
|
<T extends RealType<T>> |
create(ImgFactory<T> factory,
long[] dims,
String name,
AxisType[] axes)
Creates a new dataset using the provided
ImgFactory. |
<T extends RealType<T>> |
create(ImgFactory<T> factory,
T type,
long[] dims,
String name,
AxisType[] axes)
Deprecated.
Use
create(ImgFactory, long[], String, AxisType[])
instead. |
<T extends Type<T>> |
create(ImgPlus<T> imgPlus)
Creates a new dataset using the provided
ImgPlus. |
Dataset |
create(long[] dims,
String name,
AxisType[] axes,
int bitsPerPixel,
boolean signed,
boolean floating)
Creates a new dataset.
|
Dataset |
create(long[] dims,
String name,
AxisType[] axes,
int bitsPerPixel,
boolean signed,
boolean floating,
boolean virtual)
Creates a new dataset.
|
<T extends Type<T>> |
create(RandomAccessibleInterval<T> rai)
Creates a new dataset using the provided
RandomAccessibleInterval. |
<T extends RealType<T> & NativeType<T>> |
create(T type,
long[] dims,
String name,
AxisType[] axes)
Creates a new dataset.
|
<T extends RealType<T> & NativeType<T>> |
create(T type,
long[] dims,
String name,
AxisType[] axes,
boolean virtual)
Creates a new dataset.
|
List<Dataset> |
getDatasets()
Gets a list of all
Datasets. |
List<Dataset> |
getDatasets(ImageDisplay display)
Gets a list of
Datasets linked to the given ImageDisplay. |
ObjectService |
getObjectService() |
Dataset |
open(String source)
Deprecated.
Use io.scif.services.DatasetIOService#open instead.
|
Dataset |
open(String source,
Object config)
Deprecated.
Use io.scif.services.DatasetIOService#open instead.
|
void |
revert(Dataset dataset)
Deprecated.
Use io.scif.services.DatasetIOService#revert instead.
|
Object |
save(Dataset dataset,
String destination)
Deprecated.
Use io.scif.services.DatasetIOService#save instead.
|
Object |
save(Dataset dataset,
String destination,
Object config)
Deprecated.
Use io.scif.services.DatasetIOService#save instead.
|
initialize, registerEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposeObjectService getObjectService()
List<Dataset> getDatasets()
Datasets. This method is a shortcut that
delegates to ObjectService.List<Dataset> getDatasets(ImageDisplay display)
Datasets linked to the given ImageDisplay.Dataset create(long[] dims, String name, AxisType[] axes, int bitsPerPixel, boolean signed, boolean floating)
dims - The dataset's dimensional extents.name - The dataset's name.axes - The dataset's dimensional axis labels.bitsPerPixel - The dataset's bit depth. Currently supported bit depths
include 1, 8, 12, 16, 32 and 64.signed - Whether the dataset's pixels can have negative values.floating - Whether the dataset's pixels can have non-integer values.IllegalArgumentException - If the combination of bitsPerPixel, signed
and floating parameters do not form a valid data type.Dataset create(long[] dims, String name, AxisType[] axes, int bitsPerPixel, boolean signed, boolean floating, boolean virtual)
dims - The dataset's dimensional extents.name - The dataset's name.axes - The dataset's dimensional axis labels.bitsPerPixel - The dataset's bit depth. Currently supported bit depths
include 1, 8, 12, 16, 32 and 64.signed - Whether the dataset's pixels can have negative values.floating - Whether the dataset's pixels can have non-integer values.virtual - Whether to store in a virtual data structure or not.IllegalArgumentException - If the combination of bitsPerPixel, signed
and floating parameters do not form a valid data type.<T extends RealType<T> & NativeType<T>> Dataset create(T type, long[] dims, String name, AxisType[] axes)
T - The type of the dataset.type - The type of the dataset.dims - The dataset's dimensional extents.name - The dataset's name.axes - The dataset's dimensional axis labels.<T extends RealType<T> & NativeType<T>> Dataset create(T type, long[] dims, String name, AxisType[] axes, boolean virtual)
T - The type of the dataset.type - The type of the dataset.dims - The dataset's dimensional extents.name - The dataset's name.axes - The dataset's dimensional axis labels.virtual - If true make a virtual dataset.<T extends RealType<T>> Dataset create(ImgFactory<T> factory, long[] dims, String name, AxisType[] axes)
ImgFactory.T - The type of the dataset.factory - The ImgFactory to use to create the data.dims - The dataset's dimensional extents.name - The dataset's name.axes - The dataset's dimensional axis labels.<T extends Type<T>> Dataset create(ImgPlus<T> imgPlus)
ImgPlus.imgPlus - The ImgPlus backing the dataset.<T extends Type<T>> Dataset create(RandomAccessibleInterval<T> rai)
RandomAccessibleInterval.rai - The RandomAccessibleInterval, which will be wrapped into
an ImgPlus that will back the new dataset.@Deprecated boolean canOpen(String source)
Dataset
using the open(String) method.@Deprecated boolean canSave(String destination)
Dataset using the save(Dataset, String) method.@Deprecated Dataset open(String source) throws IOException
IOException@Deprecated Dataset open(String source, Object config) throws IOException
open(String), with the given
io.scif.config.SCIFIOConfig.IOException@Deprecated void revert(Dataset dataset) throws IOException
IOException@Deprecated Object save(Dataset dataset, String destination) throws IOException
dataset - The dataset to save.destination - Where the dataset should be saved (e.g., a file path on
disk).IOException@Deprecated Object save(Dataset dataset, String destination, Object config) throws IOException
dataset - The dataset to save.destination - Where the dataset should be saved (e.g., a file path on
disk).config - The io.scif.config.SCIFIOConfig describing how the
data should be saved.IOException@Deprecated <T extends RealType<T>> Dataset create(ImgFactory<T> factory, T type, long[] dims, String name, AxisType[] axes)
create(ImgFactory, long[], String, AxisType[])
instead.Copyright © 2014–2022 ImageJ. All rights reserved.