public class Circles extends Object
{@link CircleCursor}
Modifier and Type | Method and Description |
---|---|
static <T extends Add<T>> |
add(RandomAccessible<T> rai,
Localizable center,
long radius,
int dimX,
int dimY,
T value)
Writes a circle in the target
RandomAccessible . |
static <T extends Add<T>> |
add(RandomAccessible<T> rai,
Localizable center,
long radius,
T value)
Writes a circle in the target
RandomAccessible . |
static <T extends RealType<T>> |
inc(RandomAccessible<T> rai,
Localizable center,
long radius)
Writes a circle in the target
RandomAccessible . |
static <T extends RealType<T>> |
inc(RandomAccessible<T> rai,
Localizable center,
long radius,
int dimX,
int dimY)
Writes a circle in the target
RandomAccessible . |
static <T extends Type<T>> |
set(RandomAccessible<T> rai,
Localizable center,
long radius,
int dimX,
int dimY,
T value)
Writes a circle in the target
RandomAccessible . |
static <T extends Type<T>> |
set(RandomAccessible<T> rai,
Localizable center,
long radius,
T value)
Writes a circle in the target
RandomAccessible . |
public static <T extends RealType<T>> void inc(RandomAccessible<T> rai, Localizable center, long radius)
RandomAccessible
. The circle is
written by incrementing the pixel values by 1 along the circle.
The circle is written in a plane in dimensions 0 and 1.T
- the type of the target image.rai
- the random accessible. It is the caller responsibility to
ensure it can be accessed everywhere the circle will be
iterated.center
- the circle center. Must be at least of dimension 2. Dimensions
0 and 1 are used to specify the circle center.radius
- the circle radius.public static <T extends RealType<T>> void inc(RandomAccessible<T> rai, Localizable center, long radius, int dimX, int dimY)
RandomAccessible
. The circle is
written by incrementing the pixel values by 1 along the circle.T
- the type of the target image.rai
- the random accessible. It is the caller responsibility to
ensure it can be accessed everywhere the circle will be
iterated.center
- the circle center. Must contain at least of dimensions
dimX
and dimY
, used to specify the
circle center.radius
- the circle radius.dimX
- the first dimension of the plane in which to draw the circle.dimY
- the second dimension of the plane in which to draw the circle.public static <T extends Type<T>> void set(RandomAccessible<T> rai, Localizable center, long radius, T value)
RandomAccessible
. The circle is
written by setting the pixel values with the specified value. The
circle is written in a plane in dimensions 0 and 1.T
- the type of the target image.rai
- the target random accessible. It is the caller responsibility
to ensure it can be accessed everywhere the circle will be
iterated.center
- the circle center. Must be at least of dimension 2. Dimensions
0 and 1 are used to specify the circle center.radius
- the circle radius.value
- the value to write along the circle.public static <T extends Type<T>> void set(RandomAccessible<T> rai, Localizable center, long radius, int dimX, int dimY, T value)
RandomAccessible
. The circle is
written by setting the pixel values with the specified value.T
- the type of the target image.rai
- the target random accessible. It is the caller responsibility
to ensure it can be accessed everywhere the circle will be
iterated.center
- the circle center. Must contain at least of dimensions
dimX
and dimY
, used to specify the
circle center.radius
- the circle radius.dimX
- the first dimension of the plane in which to draw the circle.dimY
- the second dimension of the plane in which to draw the circle.value
- the value to write along the circle.public static <T extends Add<T>> void add(RandomAccessible<T> rai, Localizable center, long radius, T value)
RandomAccessible
. The circle is
written by adding the specified value to the pixel values already
in the image. The circle is written in a plane in dimensions 0 and 1.T
- the type of the target image.rai
- the random accessible. It is the caller responsibility to
ensure it can be accessed everywhere the circle will be
iterated.center
- the circle center. Must be at least of dimension 2. Dimensions
0 and 1 are used to specify the circle center.radius
- the circle radius.value
- the value to add along the circle.public static <T extends Add<T>> void add(RandomAccessible<T> rai, Localizable center, long radius, int dimX, int dimY, T value)
RandomAccessible
. The circle is
written by adding the specified value to the pixel values already
in the image.T
- the type of the target image.rai
- the random accessible. It is the caller responsibility to
ensure it can be accessed everywhere the circle will be
iterated.center
- the circle center. Must contain at least of dimensions
dimX
and dimY
, used to specify the
circle center.radius
- the circle radius.dimX
- the first dimension of the plane in which to draw the circle.dimY
- the second dimension of the plane in which to draw the circle.value
- the value to add along the circle.Copyright © 2015–2022 ImgLib2. All rights reserved.