|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjjil.core.PipelineStage
jjil.algorithm.CannyHoriz
public class CannyHoriz
Computes the horizontal Canny operator 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 less sensitive to high frequencies and more sensitive to low frequencies.
Constructor Summary | |
---|---|
CannyHoriz(int cSigma)
Creates a new instance of CannyHoriz |
Method Summary | |
---|---|
int |
getSigma()
Returns the current value of sigma. |
void |
push(Image image)
Apply the Canny operator 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 Canny operator. |
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 CannyHoriz(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
- if cSigma is out of range.Method Detail |
---|
public void push(Image image) throws Error
push
in class PipelineStage
image
- the input Gray8Image
Error
- if the input is not a Gray8Image.public int getSigma()
public void setSigma(int cSigma) throws Error
cSigma
- the new sigma value
Error
- if cSigma is out of range.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 |