|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.data.image.AbstractImageTransformer<T>
T - the type of image to processpublic abstract class AbstractImageTransformer<T extends AbstractImage>
Abstract base class for AbstractImage transformations.
| Field Summary |
|---|
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
AbstractImageTransformer()
|
|
| Method Summary | |
|---|---|
protected void |
checkImage(T img)
Optional checks of the image. |
void |
cleanUp()
Cleans up data structures, frees up memory. |
int |
compareTo(Object o)
Compares this object with the specified object for order. |
void |
destroy()
Frees up memory in a "destructive" non-reversible way. |
protected abstract T[] |
doTransform(T img)
Performs the actual transforming of the image. |
boolean |
equals(Object o)
Returns whether the two objects are the same. |
T |
shallowCopy()
Returns a shallow copy of itself, i.e., based on the commandline options. |
T |
shallowCopy(boolean expand)
Returns a shallow copy of itself, i.e., based on the commandline options. |
T[] |
transform(T img)
Transforms the given image. |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, defineOptions, finishInit, getDebugLevel, getOptionManager, globalInfo, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractImageTransformer()
| Method Detail |
|---|
protected void checkImage(T img)
img - the image to checkprotected abstract T[] doTransform(T img)
img - the image to transform (can be modified, since it is a copy)
public T[] transform(T img)
img - the image to transform
public int compareTo(Object o)
compareTo in interface Comparableo - the object to be compared.
ClassCastException - if the specified object's type prevents it
from being compared to this object.public boolean equals(Object o)
equals in class Objecto - the object to be compared
public T shallowCopy()
public T shallowCopy(boolean expand)
expand - whether to expand variables to their current values
public void cleanUp()
cleanUp in interface CleanUpHandlerpublic void destroy()
destroy in interface Destroyabledestroy in class AbstractOptionHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||