Re: Prediction in differencing pixels with the left neighbour.



On 8 Gen, 15:19, danilobrambi...@xxxxxxxxxx wrote:
Hi all,

given a single channel of an RGB24 image (say green), I compute for
each pixel the difference with the previous one (starting from the top-
left to the lower right). Can anyone point me to a algorithm to reduce
errors by prediction of the next step?

Thank you all!

Well, at the moment I am working on lossless compression. Wavelets and
Curvelets seems to be quite too complex for my needs. I am not
intended to reach state of the art image compression levels, just
coding for fun. I would prefer on a simple, clear and fast algorithm
than a complex one. My algorithm now uses simple technics like channel
differencing, neighbour pixels comparison, Rice encoding and Move to
Front. I can compress images near Photoshop HP JPEG-LS plugin can do
using very small amout of memory, and can beat JPEG-LS in a few ones,
but I am not using any kind of prediction right now so I hope to fill
the gap in this way.

So, as sayid before I compute for each pixel the difference with the
previous left one (starting from the top-left to the lower right),
then encode residuals. Is there any simple algorithm that can help me
to predict the next pixel, say given the very near past ones, to
reduce residuals?
For example, I tryied to compute average between the current residual
and the last one, using it as an 'error correction' for the next step,
but It doesn't work well on all images. It makes complex images
smaller (ok here) but tends to increase size of images that already
compress well without any prediction (so it increase errors, not
reduce them)

Thank you for help! :-)
.



Relevant Pages

  • Re: File Size Question
    ... In 8 bit JPEG format, it takes 3 bytes to represent one pixel. ... your 10 Megapixel camera makes IMAGES that are around 30 Megabytes. ... JPEG uses highly efficient lossey compression. ...
    (rec.photo.digital)
  • Re: Desperately needing direction with EncoderParameters and saving images under different compressi
    ... Save your images in png format instead of jpeg. ... and will preserve your pixel values exactly. ... That is the nature of lossy compression. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Major printing problem
    ... I used PowerPoint's compression tool on all ... the images in the presentation (however I don't think the tool affects PNG ... 1024x768 (regardless of how large the projection screen would be). ... more than 1024x768 pixel for projection. ...
    (microsoft.public.powerpoint)
  • Re: Differential intra-interchannel filters for RGB images lossless compression
    ... >>> However IMHO many photographic images are even slightly more difficult ... don't look right, lighting doesn't look right, surfaces are almost always ... compression, it seems concievable to me that they could. ... would likely be able to fairly accurately predict the pixel. ...
    (comp.compression)
  • Re: New lossless image compression algorithm
    ... Well the algorithm should be quite stable, ... "Lossless Compression and Interpolation for High Quality Still Images ... whereas LOCO allready is in cameras ...
    (comp.compression)

Loading