public class DefaultImarisApplication extends AbstractContextual implements ImarisApplication
ImarisApplication
, which wraps IApplicationPrx
and represents one particular Imaris instance.Constructor and Description |
---|
DefaultImarisApplication(Imaris.IApplicationPrx iApplicationPrx,
int applicationId) |
Modifier and Type | Method and Description |
---|---|
<T extends NativeType<T> & RealType<T>> |
createDataset(T type,
DatasetDimensions dims,
ImarisDatasetOptions options)
TODO
|
<T extends NativeType<T> & RealType<T>> |
createDataset(T type,
int sx,
int sy,
int sz,
int sc,
int st,
ImarisDatasetOptions options)
Create a new
ImarisDataset of the specified type with the
specified dimensions. |
int |
getApplicationID()
Get the object ID of the underlying
IApplication ICE proxy. |
Imaris.IApplicationPrx |
getIApplicationPrx()
Get the underlying
IApplication ICE proxy. |
ImarisDataset<?> |
getImage(int imageIndex,
ImarisDatasetOptions options)
Get the Imaris image at
imageIndex as an ImarisDataset . |
int |
getNumberOfImages()
Get the number of images loaded in the application.
|
void |
setImage(int imageIndex,
ImarisDataset<?> dataset)
Set an image to the application.
|
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDataset, createDataset, getDataset, getDataset, getImage, setDataset
setContext
public DefaultImarisApplication(Imaris.IApplicationPrx iApplicationPrx, int applicationId)
public Imaris.IApplicationPrx getIApplicationPrx()
ImarisApplication
IApplication
ICE proxy.getIApplicationPrx
in interface ImarisApplication
public int getApplicationID()
ImarisApplication
IApplication
ICE proxy.getApplicationID
in interface ImarisApplication
public int getNumberOfImages()
ImarisApplication
getNumberOfImages
in interface ImarisApplication
public ImarisDataset<?> getImage(int imageIndex, ImarisDatasetOptions options)
ImarisApplication
imageIndex
as an ImarisDataset
.getImage
in interface ImarisApplication
public void setImage(int imageIndex, ImarisDataset<?> dataset)
ImarisApplication
setImage
in interface ImarisApplication
public <T extends NativeType<T> & RealType<T>> ImarisDataset<T> createDataset(T type, int sx, int sy, int sz, int sc, int st, ImarisDatasetOptions options)
ImarisApplication
ImarisDataset
of the specified type
with the
specified dimensions.
Sizes s≤0
indicate missing dimensions. For example, createDataset(new UnsignedByteType(), 300, 200, 0, 0, 0)
creates a 2D
ImarisDataset
with axes [X,Y]
. The size along missing
dimensions (Z, C, T in this example) is set to s=1
on the Imaris
side.
createDataset
in interface ImarisApplication
type
- imglib2 pixel type. Must be one of UnsignedByteType
, UnsignedShortType
, or FloatType
.sx
- size in X dimensionsy
- size in Y dimensionsz
- size in Z dimensionsc
- size in C (channel) dimensionst
- size in T (time) dimensionpublic <T extends NativeType<T> & RealType<T>> ImarisDataset<T> createDataset(T type, DatasetDimensions dims, ImarisDatasetOptions options)
ImarisApplication
createDataset
in interface ImarisApplication
Copyright © 2019–2021 Imaris. All rights reserved.