T
- the pixel typeA
- the underlying native access typepublic class ImarisCachedProbabilitiesImg<T extends NativeType<T>,A> extends CachedCellImg<T,A> implements ImarisImg
LazyCellImg
that creates empty Cells lazily when they are accessed
and sends (modified) Cells to Imaris when memory runs full.
At each pixel the image is assumed to represent a probability distribution
over channels. For storing to Imaris IDataSetPrx
backing cache, the
first channel ("background") is removed (only the other channels are stored).
If the dataset has UINT8 or UINT16 type, the [0, 1] range is scaled to the
[0, 2^8-1] or [0, 2^16-1], respectively. For loading data back from the cache
this operation is reversed.
LazyCellImg.Get<T>, LazyCellImg.LazyCells<T>
AbstractCellImg.CellImgSampler<C>
cells, grid
entitiesPerPixel, linkedType, numEntities
dimension, max, n, numPixels
Constructor and Description |
---|
ImarisCachedProbabilitiesImg(ImarisCachedProbabilitiesImgFactory<T> factory,
Imaris.IDataSetPrx dataset,
CellGrid grid,
Fraction entitiesPerPixel,
Cache<Long,Cell<A>> cache,
IoSync<?,?,?> iosync,
A accessType) |
Modifier and Type | Method and Description |
---|---|
ImgFactory<T> |
factory() |
ImarisApplication |
getApplication()
Get the
ImarisApplication which holds (the backing cache for) this image. |
Imaris.IDataSetPrx |
getIDataSetPrx()
Get the underlying
IDataSet ICE proxy. |
void |
persist()
Persist all changes back to Imaris
|
void |
shutdown()
Shutdown the internal
IoSync to free resources via
IoSync.shutdown() . |
getAccessType, getCache
copy
copyDataTo, cursor, getCellGrid, getCells, iterationOrder, localizingCursor, randomAccess, update
createLinkedType, setLinkedType
dimension, dimensions, firstElement, iterator, max, max, max, min, min, min, numDimensions, numElements, randomAccess, realMax, realMax, realMax, realMin, realMin, realMin, size, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAt, getAt, getAt, randomAccess
firstElement, size
forEach, iterator, spliterator
dimension, max, max, max, maxAsLongArray, maxAsPoint, min, min, min, minAsLongArray, minAsPoint, realMax, realMin
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMax, realMin, realMin
allPositive, allPositive, dimensions, dimensions, dimensionsAsLongArray, dimensionsAsPoint, verify, verify, verifyAllPositive, verifyAllPositive
numDimensions
public ImgFactory<T> factory()
factory
in interface Img<T extends NativeType<T>>
factory
in class CachedCellImg<T extends NativeType<T>,A>
public void shutdown()
IoSync
to free resources via
IoSync.shutdown()
. No data will be written to disk after
shutdown.public void persist()
public Imaris.IDataSetPrx getIDataSetPrx()
ImarisImg
IDataSet
ICE proxy.getIDataSetPrx
in interface ImarisImg
public ImarisApplication getApplication()
ImarisImg
ImarisApplication
which holds (the backing cache for) this image.getApplication
in interface ImarisImg
Copyright © 2019–2021 Imaris. All rights reserved.