|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjjil.algorithm.ZeroCrossingHoriz
public class ZeroCrossingHoriz
Computes an array of zero crossing positions in the input gray image. Not a pipeline stage. The output is an array of arrays of exact positions of zero crossings, one array per row of the input image. A threshold parameter lets you set the zero crossing strength. The zero crossings are returned as an array of arrays of ints, one array per row, each integer referring to the position of a zero crossing in the row, multiplied by 256 so fractional positions can be represented.
Constructor Summary | |
---|---|
ZeroCrossingHoriz(int wThreshold)
Creates a new instance of ZeroCrossingHoriz. |
Method Summary | |
---|---|
int |
getThreshold()
Returns the current threshold. |
int[][] |
push(Gray8Image image)
Computes the zero crossings of an input gray image that are greater than a threshold. |
void |
setThreshold(int wThreshold)
Changes the zero crossing threshold. |
java.lang.String |
toString()
Returns a string describing this instance of ZeroCrossingHoriz, including the minimum strength parameter. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ZeroCrossingHoriz(int wThreshold) throws Error
wThreshold
- -- the minimum strength for a zero crossing to
be considered significant.
Error
- if the threshold is less than 0. Use
0 if you want all zero crossings.Method Detail |
---|
public int getThreshold()
public int[][] push(Gray8Image image)
image
- the input image.
public java.lang.String toString()
toString
in class java.lang.Object
public void setThreshold(int wThreshold) throws Error
wThreshold
- the new threshold.
Error
- if wThreshold is less than 0. Use 0
if you want all zero crossings.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |