This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Image Dithering

Does anyone know how to use dithering technique to convert 16 bit bitmap image to low depth color such as 12 bpp or 8 bpp for LCD display...?

The source is RGB565 bmp format convert to RGB444 or RGB323 format.

I guess that there are many algorthm exist for PC but we would like to perform it on arm with limited resource.
I don't care about dithering algorithm's efficiency,
but care about the dithering algorithm's quality.

Thanks in advance.

Parents
  • for matlab RTW, the code generation is controlled by the user. it's quite more than just "a fun prototype tool" and meets the middle (such as hcs12) to high end processors (mpc or arm) code generation. You can also direct the target library, which will be more efficient to generate the code.

    Currently, lots of embedded applications are benefited from the code gen technology, especially in automotive.

    I guess for this application, a DSP or or other 16/32 bit MCU with hw/sw DSP functions may be applied.

Reply
  • for matlab RTW, the code generation is controlled by the user. it's quite more than just "a fun prototype tool" and meets the middle (such as hcs12) to high end processors (mpc or arm) code generation. You can also direct the target library, which will be more efficient to generate the code.

    Currently, lots of embedded applications are benefited from the code gen technology, especially in automotive.

    I guess for this application, a DSP or or other 16/32 bit MCU with hw/sw DSP functions may be applied.

Children
  • Have you looked at the amount of code that is needed to extract the image data from a png or jpeg image?

    Have you looked at the amount of code that is needed to perform error diffusion for limiting the color depth?

    What was your initial thought about the amount of code for the two tasks?

    When all you have is a hammer, everything around you tends to look like a nail. The quality of the code Matlab can generate isn't really relevant if the majority of the problem is to implement networking code that receives data from a webcam, and decodes the actual image data. The dithering step may be less than a percent of the application. That might mean that it is better to decide what tools are most suitable for the other 99% of the application - especially since

    Matlab is an excellent tool but in this case the algorithms requested are quite simple.