public final class DefaultDatasetService extends AbstractService implements DatasetService
Datasets.| Constructor and Description |
|---|
DefaultDatasetService() |
| 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.
|
<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() |
void |
initialize() |
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.
|
getContext, setContext, toStringgetInfo, getPriority, setInfo, setPrioritycontextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitregisterEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposepublic ObjectService getObjectService()
getObjectService in interface DatasetServicepublic List<Dataset> getDatasets()
DatasetServiceDatasets. This method is a shortcut that
delegates to ObjectService.getDatasets in interface DatasetServicepublic List<Dataset> getDatasets(ImageDisplay display)
DatasetServiceDatasets linked to the given ImageDisplay.getDatasets in interface DatasetServicepublic Dataset create(long[] dims, String name, AxisType[] axes, int bitsPerPixel, boolean signed, boolean floating)
DatasetServicecreate in interface DatasetServicedims - 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.public Dataset create(long[] dims, String name, AxisType[] axes, int bitsPerPixel, boolean signed, boolean floating, boolean virtual)
DatasetServicecreate in interface DatasetServicedims - 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.public <T extends RealType<T> & NativeType<T>> Dataset create(T type, long[] dims, String name, AxisType[] axes)
DatasetServicecreate in interface DatasetServiceT - 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.public <T extends RealType<T> & NativeType<T>> Dataset create(T type, long[] dims, String name, AxisType[] axes, boolean virtual)
DatasetServicecreate in interface DatasetServiceT - 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.public <T extends RealType<T>> Dataset create(ImgFactory<T> factory, long[] dims, String name, AxisType[] axes)
DatasetServiceImgFactory.create in interface DatasetServiceT - 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.public <T extends Type<T>> Dataset create(ImgPlus<T> imgPlus)
DatasetServiceImgPlus.create in interface DatasetServiceimgPlus - The ImgPlus backing the dataset.public <T extends Type<T>> Dataset create(RandomAccessibleInterval<T> rai)
DatasetServiceRandomAccessibleInterval.create in interface DatasetServicerai - The RandomAccessibleInterval, which will be wrapped into
an ImgPlus that will back the new dataset.public void initialize()
initialize in interface Initializableinitialize in interface Service@Deprecated public boolean canOpen(String source)
DatasetServiceDataset
using the DatasetService.open(String) method.canOpen in interface DatasetService@Deprecated public boolean canSave(String destination)
DatasetServiceDataset using the DatasetService.save(Dataset, String) method.canSave in interface DatasetService@Deprecated public Dataset open(String source) throws IOException
DatasetServiceopen in interface DatasetServiceIOException@Deprecated public Dataset open(String source, Object config) throws IOException
DatasetServiceDatasetService.open(String), with the given
io.scif.config.SCIFIOConfig.open in interface DatasetServiceIOException@Deprecated public void revert(Dataset dataset) throws IOException
DatasetServicerevert in interface DatasetServiceIOException@Deprecated public Object save(Dataset dataset, String destination) throws IOException
DatasetServicesave in interface DatasetServicedataset - The dataset to save.destination - Where the dataset should be saved (e.g., a file path on
disk).IOException@Deprecated public Object save(Dataset dataset, String destination, Object config) throws IOException
DatasetServicesave in interface DatasetServicedataset - 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 public <T extends RealType<T>> Dataset create(ImgFactory<T> factory, T type, long[] dims, String name, AxisType[] axes)
create in interface DatasetServiceCopyright © 2014–2022 ImageJ. All rights reserved.