public class Slice extends Object implements Collection<Contour>
Contours. They are sorted by decreasing area.| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Contour e) |
boolean |
addAll(Collection<? extends Contour> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
isEmpty() |
Iterator<Contour> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
void |
xRayCast(double y,
gnu.trove.list.array.TDoubleArrayList x,
double yScale)
Computes the position of the intersection of this slice (as a contour
collection) with the ray parallel to the X axis and of ordinate y.
|
void |
xRayCast(double y,
gnu.trove.list.array.TDoubleArrayList x,
gnu.trove.list.array.TDoubleArrayList nx,
double yScale)
Computes the position of the intersection of this slice (as a contour
collection) with the ray parallel to the X axis and of ordinate y, and
measure the projected normal value at these intersections.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streampublic int size()
size in interface Collection<Contour>public boolean isEmpty()
isEmpty in interface Collection<Contour>public boolean contains(Object o)
contains in interface Collection<Contour>public Object[] toArray()
toArray in interface Collection<Contour>public <T> T[] toArray(T[] a)
toArray in interface Collection<Contour>public boolean add(Contour e)
add in interface Collection<Contour>public boolean remove(Object o)
remove in interface Collection<Contour>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<Contour>public boolean addAll(Collection<? extends Contour> c)
addAll in interface Collection<Contour>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<Contour>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<Contour>public void clear()
clear in interface Collection<Contour>public void xRayCast(double y,
gnu.trove.list.array.TDoubleArrayList x,
gnu.trove.list.array.TDoubleArrayList nx,
double yScale)
y - the ordinate of the ray to cast.x - an array in which to store the intersection position. Reset by
this call. Is sorted by increasing X value.nx - an array in which to store the projected normal value at the
intersections. Reset by this call.yScale - some scale in Y (such as the pixel size in Y), used to shift
the vertices and ray position by a small fraction of this
size.public void xRayCast(double y,
gnu.trove.list.array.TDoubleArrayList x,
double yScale)
y - the ordinate of the ray to cast.x - an array in which to store the intersection position. Reset by
this call.yScale - some scale in Y (such as the pixel size in Y), used to shift
the vertices and ray position by a small fraction of this
size.Copyright © 2016–2023 ImgLib2. All rights reserved.