public abstract class ComplexTypeImpl<T extends ComplexTypeImpl<T>> extends TypeImpl<T> implements ComplexType<T>
Constructor and Description |
---|
ComplexTypeImpl() |
Modifier and Type | Method and Description |
---|---|
void |
add(T c) |
void |
complexConjugate() |
void |
decIndex()
Decreases the array index,
this is called by the
Cursor s which iterate over the image. |
void |
decIndex(int decrement)
Decreases the index by increment steps,
this is called by the
Cursor s which iterate over the image. |
void |
div(T c) |
Display<T> |
getDefaultDisplay(Image<T> image)
|
int |
getEntitiesPerPixel() |
double |
getPhaseDouble() |
float |
getPhaseFloat() |
double |
getPowerDouble() |
float |
getPowerFloat() |
Precision.PrecisionReal |
getPreferredRealPrecision() |
void |
incIndex()
Increases the array index,
this is called by the
Cursor s which iterate over the image. |
void |
incIndex(int increment)
Increases the index by increment steps,
this is called by the
Cursor s which iterate over the image. |
void |
mul(double c) |
void |
mul(float c) |
void |
mul(T t) |
void |
set(T c)
Sets the value of another
Type . |
void |
setComplexNumber(double real,
double complex) |
void |
setComplexNumber(float real,
float complex) |
void |
setOne() |
void |
setZero() |
void |
sub(T c) |
String |
toString() |
void |
updateIndex(int i)
Set the array position of the
Type . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComplexDouble, getComplexFloat, getRealDouble, getRealFloat, setComplex, setComplex, setReal, setReal
copy, createArray1D, createArray2D, createArray3D, createSuitableDirectAccessContainer, createVariable, duplicateTypeOnSameDirectAccessContainer, getIndex, updateContainer
public int getEntitiesPerPixel()
getEntitiesPerPixel
in interface Type<T extends ComplexTypeImpl<T>>
public Display<T> getDefaultDisplay(Image<T> image)
Type
Type
creates the default Display
for displaying the image contents. Only Type
can do this as in Image
the Type
is only a Generic. Later the user can create its own Display
s if wanted.
This could be basically a static function.getDefaultDisplay
in interface Type<T extends ComplexTypeImpl<T>>
image
- - the image to create the Display
forDisplay
public void set(T c)
Type
Type
.set
in interface Type<T extends ComplexTypeImpl<T>>
c
- - the new valuepublic void mul(float c)
mul
in interface NumericType<T extends ComplexTypeImpl<T>>
public void mul(double c)
mul
in interface NumericType<T extends ComplexTypeImpl<T>>
public void add(T c)
add
in interface NumericType<T extends ComplexTypeImpl<T>>
public void div(T c)
div
in interface NumericType<T extends ComplexTypeImpl<T>>
public void mul(T t)
mul
in interface NumericType<T extends ComplexTypeImpl<T>>
public void sub(T c)
sub
in interface NumericType<T extends ComplexTypeImpl<T>>
public void complexConjugate()
complexConjugate
in interface ComplexType<T extends ComplexTypeImpl<T>>
public float getPowerFloat()
getPowerFloat
in interface ComplexType<T extends ComplexTypeImpl<T>>
public double getPowerDouble()
getPowerDouble
in interface ComplexType<T extends ComplexTypeImpl<T>>
public float getPhaseFloat()
getPhaseFloat
in interface ComplexType<T extends ComplexTypeImpl<T>>
public double getPhaseDouble()
getPhaseDouble
in interface ComplexType<T extends ComplexTypeImpl<T>>
public void setOne()
setOne
in interface NumericType<T extends ComplexTypeImpl<T>>
public void setZero()
setZero
in interface NumericType<T extends ComplexTypeImpl<T>>
public void setComplexNumber(float real, float complex)
setComplexNumber
in interface ComplexType<T extends ComplexTypeImpl<T>>
public void setComplexNumber(double real, double complex)
setComplexNumber
in interface ComplexType<T extends ComplexTypeImpl<T>>
public Precision.PrecisionReal getPreferredRealPrecision()
getPreferredRealPrecision
in interface ComplexType<T extends ComplexTypeImpl<T>>
public void updateIndex(int i)
Type
Type
.updateIndex
in interface Type<T extends ComplexTypeImpl<T>>
updateIndex
in class TypeImpl<T extends ComplexTypeImpl<T>>
i
- - index valuepublic void incIndex()
Type
Cursor
s which iterate over the image.incIndex
in interface Type<T extends ComplexTypeImpl<T>>
incIndex
in class TypeImpl<T extends ComplexTypeImpl<T>>
public void incIndex(int increment)
Type
Cursor
s which iterate over the image.incIndex
in interface Type<T extends ComplexTypeImpl<T>>
incIndex
in class TypeImpl<T extends ComplexTypeImpl<T>>
increment
- - how many stepspublic void decIndex()
Type
Cursor
s which iterate over the image.decIndex
in interface Type<T extends ComplexTypeImpl<T>>
decIndex
in class TypeImpl<T extends ComplexTypeImpl<T>>
public void decIndex(int decrement)
Type
Cursor
s which iterate over the image.decIndex
in interface Type<T extends ComplexTypeImpl<T>>
decIndex
in class TypeImpl<T extends ComplexTypeImpl<T>>
Copyright © 2015–2021 Fiji. All rights reserved.