Introduction - If you have any usage issues, please Google them yourself
For a 8-bit gray image (lena.bmp)
1)Use a dithering matrix (4*4), generate the dithered image.
2) Generate the ordered ditering image (4*4).
3) For a 24-bit color image, generate the dithered image (4*4).