|
||||||||||
| 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<ImagePlusContainer>
adams.data.imagej.transformer.AbstractImageJTransformer
adams.data.imagej.transformer.Resize
public class Resize
Resizes the image to predefined width and height.
Valid options are:-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-width <int> (property: width) The width to resize the image to; use -1 to use original width. default: -1 minimum: -1
-height <int> (property: height) The height to resize the image to; use -1 to use original height. default: -1 minimum: -1
| Field Summary | |
|---|---|
protected int |
m_Height
the new height. |
protected int |
m_Width
the new width. |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
Resize()
|
|
| Method Summary | |
|---|---|
void |
defineOptions()
Adds options to the internal list of options. |
protected ImagePlusContainer[] |
doTransform(ImagePlusContainer img)
Performs no transformation at all, just returns the input. |
int |
getHeight()
Returns the height to resize to. |
int |
getWidth()
Returns the width to resize to. |
String |
globalInfo()
Returns a string describing the object. |
String |
heightTipText()
Returns the tip text for this property. |
void |
setHeight(int value)
Sets the height to resize to. |
void |
setWidth(int value)
Sets the width to resize to. |
String |
widthTipText()
Returns the tip text for this property. |
| Methods inherited from class adams.data.imagej.transformer.AbstractImageJTransformer |
|---|
forCommandLine, forName, getTransformations |
| Methods inherited from class adams.data.image.AbstractImageTransformer |
|---|
checkImage, cleanUp, compareTo, destroy, equals, shallowCopy, shallowCopy, transform |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, finishInit, getDebugLevel, getOptionManager, 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 |
| Field Detail |
|---|
protected int m_Width
protected int m_Height
| Constructor Detail |
|---|
public Resize()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractOptionHandlerpublic void setWidth(int value)
value - the width, -1 uses original widthpublic int getWidth()
public String widthTipText()
public void setHeight(int value)
value - the height, -1 uses original heightpublic int getHeight()
public String heightTipText()
protected ImagePlusContainer[] doTransform(ImagePlusContainer img)
doTransform in class AbstractImageTransformer<ImagePlusContainer>img - the image to process (can be modified, since it is a copy)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||