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
Cursor s 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, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
protected 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.Image
public 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.Container
public Cursor<T> createCursor()
Cursor
that will traverse the image's pixel data in a memory-optimized fashion.Cursor
public LocalizableCursor<T> createLocalizableCursor()
LocalizableCursor
that will traverse the image's pixel data in a memory-optimized fashion
and keeps track of its positionLocalizableCursor
public LocalizablePlaneCursor<T> createLocalizablePlaneCursor()
LocalizablePlaneCursor
which is optimized to iterate arbitrary 2-dimensional planes within an Image
.
This is very important for the Display
.LocalizablePlaneCursor
public 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 Image
public 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 OutOfBoundsStrategyFactory
LocalizableByDimCursor
that can leave the Image
public Interpolator<T> createInterpolator(InterpolatorFactory<T> factory)
factory
- - the InterpolatorFactory
to useInterpolator
public void setDefaultDisplay()
public static final long createUniqueId()
public void close()
public int[] createPositionArray()
Image
which can be used for addressing Cursor
s.public int getNumDimensions()
getNumDimensions
in interface ImageProperties
getNumDimensions
in interface Dimensionality
public int[] getDimensions()
getDimensions
in interface ImageProperties
getDimensions
in interface Dimensionality
public int getNumPixels()
getNumPixels
in interface ImageProperties
public String getName()
getName
in interface ImageProperties
public void setName(String name)
setName
in interface ImageProperties
public void getDimensions(int[] dimensions)
getDimensions
in interface ImageProperties
getDimensions
in interface Dimensionality
public int getDimension(int dim)
getDimension
in interface ImageProperties
public ContainerFactory getContainerFactory()
ContainerFactory
of this Image
.ContainerFactory
public ImageFactory<T> getImageFactory()
ImageFactory
of this Image
.ImageFactory
public void removeAllCursors()
public void closeAllCursors()
public void getCursors(Collection<Cursor<T>> collection)
Cursor
s currently instantiated into a Collection
.public int getNumCursors()
Cursor
spublic int getNumActiveCursors()
Cursor
spublic 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.