java.lang.ObjectFrom http://www.w3.org/TR/PNG-Filters.html: The Paeth filter computes a simple linear function of the three neighboring pixels (left, above, upper left), then chooses as predictor the neighboring pixel closest to the computed value. This technique is due to Alan W. Paeth [PAETH]. To compute the Paeth filter, apply the following formula to each byte of the scanline:org.apache.pdfbox.pdmodel.graphics.predictor.PredictorAlgorithm
org.apache.pdfbox.pdmodel.graphics.predictor.Paeth
Paeth(i,j) = Raw(i,j) - PaethPredictor(Raw(i-1,j), Raw(i,j-1), Raw(i-1,j-1))
To decode the Paeth filter
Raw(i,j) = Paeth(i,j) - PaethPredictor(Raw(i-1,j), Raw(i,j-1), Raw(i-1,j-1))
xylifyx
- @yahoo.co.uk$
- Revision: 1.3 $Method from org.apache.pdfbox.pdmodel.graphics.predictor.Paeth Summary: |
---|
decodeLine, encodeLine, paethPredictor |
Methods from org.apache.pdfbox.pdmodel.graphics.predictor.PredictorAlgorithm: |
---|
aboveLeftPixel, abovePixel, checkBufsiz, decode, decodeLine, encode, encodeLine, getBpp, getFilter, getHeight, getWidth, leftPixel, main, setBpp, setHeight, setWidth |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from org.apache.pdfbox.pdmodel.graphics.predictor.Paeth Detail: |
---|
|
|
|