public final class DefaultDatasetService extends AbstractService implements DatasetService
Dataset
s.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
Dataset s. |
List<Dataset> |
getDatasets(ImageDisplay display)
Gets a list of
Dataset s 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, toString
getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
registerEventHandlers
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
dispose
public ObjectService getObjectService()
getObjectService
in interface DatasetService
public List<Dataset> getDatasets()
DatasetService
Dataset
s. This method is a shortcut that
delegates to ObjectService
.getDatasets
in interface DatasetService
public List<Dataset> getDatasets(ImageDisplay display)
DatasetService
Dataset
s linked to the given ImageDisplay
.getDatasets
in interface DatasetService
public Dataset create(long[] dims, String name, AxisType[] axes, int bitsPerPixel, boolean signed, boolean floating)
DatasetService
create
in interface DatasetService
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.public Dataset create(long[] dims, String name, AxisType[] axes, int bitsPerPixel, boolean signed, boolean floating, boolean virtual)
DatasetService
create
in interface DatasetService
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.public <T extends RealType<T> & NativeType<T>> Dataset create(T type, long[] dims, String name, AxisType[] axes)
DatasetService
create
in interface DatasetService
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.public <T extends RealType<T> & NativeType<T>> Dataset create(T type, long[] dims, String name, AxisType[] axes, boolean virtual)
DatasetService
create
in interface DatasetService
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.public <T extends RealType<T>> Dataset create(ImgFactory<T> factory, long[] dims, String name, AxisType[] axes)
DatasetService
ImgFactory
.create
in interface DatasetService
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.public <T extends Type<T>> Dataset create(ImgPlus<T> imgPlus)
DatasetService
ImgPlus
.create
in interface DatasetService
imgPlus
- The ImgPlus
backing the dataset.public <T extends Type<T>> Dataset create(RandomAccessibleInterval<T> rai)
DatasetService
RandomAccessibleInterval
.create
in interface DatasetService
rai
- The RandomAccessibleInterval
, which will be wrapped into
an ImgPlus
that will back the new dataset.public void initialize()
initialize
in interface Initializable
initialize
in interface Service
@Deprecated public boolean canOpen(String source)
DatasetService
Dataset
using the DatasetService.open(String)
method.canOpen
in interface DatasetService
@Deprecated public boolean canSave(String destination)
DatasetService
Dataset
using the DatasetService.save(Dataset, String)
method.canSave
in interface DatasetService
@Deprecated public Dataset open(String source) throws IOException
DatasetService
open
in interface DatasetService
IOException
@Deprecated public Dataset open(String source, Object config) throws IOException
DatasetService
DatasetService.open(String)
, with the given
io.scif.config.SCIFIOConfig
.open
in interface DatasetService
IOException
@Deprecated public void revert(Dataset dataset) throws IOException
DatasetService
revert
in interface DatasetService
IOException
@Deprecated public Object save(Dataset dataset, String destination) throws IOException
DatasetService
save
in interface DatasetService
dataset
- 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
DatasetService
save
in interface DatasetService
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 public <T extends RealType<T>> Dataset create(ImgFactory<T> factory, T type, long[] dims, String name, AxisType[] axes)
create
in interface DatasetService
Copyright © 2014–2022 ImageJ. All rights reserved.