public class Image<T extends Type<T>> extends Object implements ImageProperties, Dimensionality, Collection<T>
| Modifier and Type | Field and Description |
|---|---|
protected float[] |
calibration |
protected ArrayList<Cursor<T>> |
cursors |
protected Display<T> |
display |
protected String |
name |
| Modifier | Constructor and Description |
|---|---|
|
Image(Container<T> container,
T type) |
|
Image(Container<T> container,
T type,
String name) |
protected |
Image(ImageFactory<T> imageFactory,
int[] dim,
String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T e) |
boolean |
addAll(Collection<? extends T> c) |
protected void |
addCursor(Cursor<T> c)
|
void |
clear() |
Image<T> |
clone()
Clones this
Image, i.e. |
void |
close()
|
void |
closeAllCursors()
|
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
Cursor<T> |
createCursor()
Return a
Cursor that will traverse the image's pixel data in a memory-optimized fashion. |
Interpolator<T> |
createInterpolator(InterpolatorFactory<T> factory)
|
LocalizableByDimCursor<T> |
createLocalizableByDimCursor()
Creates a
LocalizableByDimCursor which is able to move freely within the Image. |
LocalizableByDimCursor<T> |
createLocalizableByDimCursor(OutOfBoundsStrategyFactory<T> factory)
Creates a
LocalizableByDimCursor which is able to move freely within and out of Image bounds. |
LocalizableCursor<T> |
createLocalizableCursor()
Return a
LocalizableCursor that will traverse the image's pixel data in a memory-optimized fashion
and keeps track of its position |
LocalizablePlaneCursor<T> |
createLocalizablePlaneCursor()
Creates a
LocalizablePlaneCursor which is optimized to iterate arbitrary 2-dimensional planes within an Image. |
Image<T> |
createNewImage()
Creates a new
Image with the same dimensions, ContainerFactory and Type as this one, the name is given automatically. |
Image<T> |
createNewImage(int[] dimensions)
Creates a new
Image with the same ContainerFactory and Type as this one, the name is given automatically. |
Image<T> |
createNewImage(int[] dimensions,
String name)
|
Image<T> |
createNewImage(String name)
|
int[] |
createPositionArray()
|
T |
createType()
|
static long |
createUniqueId() |
ArrayList<Cursor<T>> |
getActiveCursors()
|
float[] |
getCalibration() |
float |
getCalibration(int dim) |
Container<T> |
getContainer()
Returns the
Container that is used for storing the image data. |
ContainerFactory |
getContainerFactory()
Returns the
ContainerFactory of this Image. |
ArrayList<Cursor<T>> |
getCursors()
|
void |
getCursors(Collection<Cursor<T>> collection)
Put all
Cursors currently instantiated into a Collection. |
int |
getDimension(int dim) |
int[] |
getDimensions() |
void |
getDimensions(int[] dimensions) |
Display<T> |
getDisplay()
|
ImageFactory<T> |
getImageFactory()
Returns the
ImageFactory of this Image. |
String |
getName() |
int |
getNumActiveCursors()
|
int |
getNumCursors()
|
int |
getNumDimensions() |
int |
getNumPixels() |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
void |
removeAllCursors()
Remove all cursors
|
protected void |
removeCursor(Cursor<T> c)
|
boolean |
retainAll(Collection<?> c) |
void |
setCalibration(float[] calibration) |
void |
setCalibration(float calibration,
int dim) |
void |
setDefaultDisplay()
|
void |
setDisplay(Display<T> display)
|
void |
setName(String name) |
int |
size() |
T[] |
toArray() |
<E> E[] |
toArray(E[] a) |
String |
toString() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streamprotected String name
protected final float[] calibration
protected Image(ImageFactory<T> imageFactory, int[] dim, String name)
public Image<T> createNewImage(int[] dimensions)
Image with the same ContainerFactory and Type as this one, the name is given automatically.public Image<T> createNewImage()
Image with the same dimensions, ContainerFactory and Type as this one, the name is given automatically.Imagepublic float[] getCalibration()
public float getCalibration(int dim)
public void setCalibration(float[] calibration)
public void setCalibration(float calibration,
int dim)
public Container<T> getContainer()
Container that is used for storing the image data.Containerpublic Cursor<T> createCursor()
Cursor that will traverse the image's pixel data in a memory-optimized fashion.Cursorpublic LocalizableCursor<T> createLocalizableCursor()
LocalizableCursor that will traverse the image's pixel data in a memory-optimized fashion
and keeps track of its positionLocalizableCursorpublic LocalizablePlaneCursor<T> createLocalizablePlaneCursor()
LocalizablePlaneCursor which is optimized to iterate arbitrary 2-dimensional planes within an Image.
This is very important for the Display.LocalizablePlaneCursorpublic LocalizableByDimCursor<T> createLocalizableByDimCursor()
LocalizableByDimCursor which is able to move freely within the Image.
When exiting the Image this LocalizableByDimCursor will fail!! Therefore it is faster.LocalizableByDimCursor that cannot leave the Imagepublic LocalizableByDimCursor<T> createLocalizableByDimCursor(OutOfBoundsStrategyFactory<T> factory)
LocalizableByDimCursor which is able to move freely within and out of Image bounds.
given a OutOfBoundsStrategyFactory which defines the behaviour out of Image bounds.factory - - the OutOfBoundsStrategyFactoryLocalizableByDimCursor that can leave the Imagepublic Interpolator<T> createInterpolator(InterpolatorFactory<T> factory)
factory - - the InterpolatorFactory to useInterpolatorpublic void setDefaultDisplay()
public static final long createUniqueId()
public void close()
public int[] createPositionArray()
Image which can be used for addressing Cursors.public int getNumDimensions()
getNumDimensions in interface ImagePropertiesgetNumDimensions in interface Dimensionalitypublic int[] getDimensions()
getDimensions in interface ImagePropertiesgetDimensions in interface Dimensionalitypublic int getNumPixels()
getNumPixels in interface ImagePropertiespublic String getName()
getName in interface ImagePropertiespublic void setName(String name)
setName in interface ImagePropertiespublic void getDimensions(int[] dimensions)
getDimensions in interface ImagePropertiesgetDimensions in interface Dimensionalitypublic int getDimension(int dim)
getDimension in interface ImagePropertiespublic ContainerFactory getContainerFactory()
ContainerFactory of this Image.ContainerFactorypublic ImageFactory<T> getImageFactory()
ImageFactory of this Image.ImageFactorypublic void removeAllCursors()
public void closeAllCursors()
public void getCursors(Collection<Cursor<T>> collection)
Cursors currently instantiated into a Collection.public int getNumCursors()
Cursorspublic int getNumActiveCursors()
Cursorspublic boolean addAll(Collection<? extends T> c)
addAll in interface Collection<T extends Type<T>>public void clear()
clear in interface Collection<T extends Type<T>>public boolean contains(Object o)
contains in interface Collection<T extends Type<T>>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<T extends Type<T>>public boolean isEmpty()
isEmpty in interface Collection<T extends Type<T>>public boolean remove(Object o)
remove in interface Collection<T extends Type<T>>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<T extends Type<T>>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<T extends Type<T>>public int size()
size in interface Collection<T extends Type<T>>public <E> E[] toArray(E[] a)
toArray in interface Collection<T extends Type<T>>Copyright © 2015–2021 Fiji. All rights reserved.