|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjjil.core.PipelineStage
jjil.algorithm.GrayHistMatch
public class GrayHistMatch
Pipeline stage modifies a gray image's pixel values to make its histogram match a target histogram (to the extent this is possible while uniquely mapping each input grayvalue). This PipelineStage modifies its input.
| Constructor Summary | |
|---|---|
GrayHistMatch(int[] histTarget)
Creates a new instance of GrayHistMatch |
|
| Method Summary | |
|---|---|
int[] |
getHistogram()
getHistogram returns the target histogram that has been previously set. |
void |
push(Image image)
push transforms an input gray image to have the target histogram, as near as possible while assigning each input grayvalue a unique output grayvalue. |
void |
setHistogram(int[] histTarget)
setHistogram sets a new target histogram. |
| 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 GrayHistMatch(int[] histTarget)
throws Error
histTarget - the input histogram.
Error - if the input histogram does not have
256 elements.| Method Detail |
|---|
public int[] getHistogram()
public void push(Image image)
throws Error
push in class PipelineStageimage - the input image.
Error - if the input image is not gray.
public void setHistogram(int[] histTarget)
throws Error
histTarget - the new target histogram
Error - if histTarget does not have 256
elements.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||