|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjjil.core.PipelineStage
jjil.algorithm.GaussHoriz
public class GaussHoriz
Computes a horizontal Gaussian blur for an input gray image. The sigma value for the operator is set in the constructor or setSigma. All calculations are done in integer (per CLDC 1.0) and the sigma value is specified as multiplied by 10.0. The minimum value for the unmultiplied sigma is 0.1; the maximum value is about 10.0. Larger sigma values give an operator which is more blurred.
Hungarian prefix is 'gshz'.
Constructor Summary | |
---|---|
GaussHoriz(int cSigma)
Creates a new instance of GaussHoriz |
Method Summary | |
---|---|
int |
getSigma()
Returns the current value of sigma. |
void |
push(Image image)
Apply the Gaussian horizontally to the input input image. |
void |
setSigma(int cSigma)
sets a new value for sigma. |
java.lang.String |
toString()
returns a string describing this Gaussian blur. |
Methods inherited from class jjil.core.PipelineStage |
---|
getFront, isEmpty |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GaussHoriz(int cSigma) throws Error
cSigma
- the sigma value for the operator, which is the sigma
in the Gaussian distribution multipied by 10.0 and converted to integer.
Error
- is sigma is out of range.Method Detail |
---|
public void push(Image image) throws Error
push
in class PipelineStage
image
- the input Gray8Image
Error
- if image is not a Gray8Imagepublic int getSigma()
public void setSigma(int cSigma) throws Error
cSigma
- the new sigma value
Error
- if cSigma is out of range --
less than or equal to 1 or greater than the number of coefficients
we're precomputed.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |