|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjjil.core.PipelineStage
jjil.algorithm.GrayLookup
public class GrayLookup
Pipeline stage applies a lookup table to an image. The lookup table can be supplied through the constructor or by the setTable procedure. This pipeline stage modifies its input.
Constructor Summary | |
---|---|
GrayLookup(byte[] table)
Creates a new instance of GrayLookup. |
Method Summary | |
---|---|
byte[] |
getTable()
Return the lookup table currently being used. |
void |
push(Image image)
Maps input Gray8Image through the lookup table, replacing values in the image. |
void |
setTable(byte[] table)
Assign a new lookup table. |
Methods inherited from class jjil.core.PipelineStage |
---|
getFront, isEmpty |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GrayLookup(byte[] table) throws Error
table
- The mapping table. Element i maps gray value Byte.MinValue + i to table[i].
Error
- when table is not a 256-element array.Method Detail |
---|
public byte[] getTable()
public void push(Image image) throws Error
push
in class PipelineStage
image
- the input image (output replaces input).
Error
- if image is not a Gray8Image.public void setTable(byte[] table) throws Error
table
- The lookup table. Input image value g is mapped to table[g + Byte.MinValue]
Error
- if table is not a 256-element array.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |