|
||||||||||
| 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<BufferedImageContainer>
adams.data.jai.transformer.AbstractJAITransformer
adams.data.jai.transformer.GaussianBlur
public class GaussianBlur
Performs a gaussian blur.
Original code taken from here:
http://www.jhlabs.com/ip/blurring.html
-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
-radius <double> (property: radius) The blur radius. default: 2.0 minimum: 1.0E-4
| Field Summary | |
|---|---|
protected double |
m_Radius
the radius to use. |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
GaussianBlur()
|
|
| Method Summary | |
|---|---|
protected int |
clamp(int c)
Clamp a value to the range 0..255 |
protected void |
convolveAndTranspose(Kernel kernel,
int[] inPixels,
int[] outPixels,
int width,
int height)
Applies the kernel. |
void |
defineOptions()
Adds options to the internal list of options. |
protected BufferedImageContainer[] |
doTransform(BufferedImageContainer img)
Performs no transformation at all, just returns the input. |
double |
getRadius()
Returns the blur radius. |
String |
globalInfo()
Returns a string describing the object. |
protected Kernel |
makeKernel(float radius)
Make a Gaussian blur kernel. |
String |
radiusTipText()
Returns the tip text for this property. |
void |
setRadius(double value)
Sets the blur radius. |
| Methods inherited from class adams.data.jai.transformer.AbstractJAITransformer |
|---|
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 double m_Radius
| Constructor Detail |
|---|
public GaussianBlur()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractOptionHandlerpublic void setRadius(double value)
value - the radiuspublic double getRadius()
public String radiusTipText()
protected int clamp(int c)
c - the value to clamp
protected void convolveAndTranspose(Kernel kernel,
int[] inPixels,
int[] outPixels,
int width,
int height)
kernel - the kernel to applyinPixels - the incoming pixelsoutPixels - the generated pixelswidth - the width of the imageheight - the height of the imageprotected Kernel makeKernel(float radius)
radius - the radius of the kernelprotected BufferedImageContainer[] doTransform(BufferedImageContainer img)
doTransform in class AbstractImageTransformer<BufferedImageContainer>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 | |||||||||