public abstract class AbstractWritableSuperEllipsoid extends AbstractEuclideanSpace implements WritableSuperEllipsoid
WritableSuperEllipsoid implementations.| Modifier and Type | Field and Description |
|---|---|
protected double[] |
center |
protected double |
exponent |
protected double[] |
semiAxisLengths |
n| Constructor and Description |
|---|
AbstractWritableSuperEllipsoid(double[] center,
double[] semiAxisLengths,
double exponent)
Creates an n-d superellipsoid, where n is determined by the length of the
smaller array.
|
| Modifier and Type | Method and Description |
|---|---|
RealLocalizableRealPositionable |
center()
Returns the center.
|
protected double |
distancePowered(RealLocalizable l)
Computes the unit distance between a given location and the center of the
superellipsoid.
|
boolean |
equals(Object obj) |
double |
exponent()
Returns the exponent of this superellipsoid
|
int |
hashCode() |
double |
realMax(int d) |
double |
realMin(int d) |
double |
semiAxisLength(int d)
Returns the semi-axis length of the superellipsoid in a given dimension d
|
void |
setExponent(double exponent)
Sets the exponent.
|
void |
setSemiAxisLength(int d,
double length)
Sets the semi-axis length in dimension d.
|
numDimensionsclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitand, isEmpty, minus, or, realMax, realMax, realMin, realMin, transform, xorboundaryType, isAll, knownConstantnumDimensionsprotected double exponent
protected final double[] center
protected final double[] semiAxisLengths
public AbstractWritableSuperEllipsoid(double[] center,
double[] semiAxisLengths,
double exponent)
center - position of the superellipsoid in space, given in pixel
coordinatessemiAxisLengths - array containing n elements representing half values of
width/height/depth/...exponent - exponent of the superellipsoidpublic double realMin(int d)
realMin in interface RealIntervalpublic double realMax(int d)
realMax in interface RealIntervalpublic double exponent()
SuperEllipsoidexponent in interface SuperEllipsoidpublic double semiAxisLength(int d)
SuperEllipsoidsemiAxisLength in interface SuperEllipsoidpublic RealLocalizableRealPositionable center()
center in interface SuperEllipsoidcenter in interface WritableSuperEllipsoidpublic void setExponent(double exponent)
WritableSuperEllipsoidsetExponent in interface WritableSuperEllipsoidpublic void setSemiAxisLength(int d,
double length)
WritableSuperEllipsoidsetSemiAxisLength in interface WritableSuperEllipsoidprotected double distancePowered(RealLocalizable l)
l - location to checkexponentCopyright © 2009–2018 ImgLib2. All rights reserved.