In image processing, detecting change in color between pixels is necessary for tasks like image compression and object recognition. For this chapter, we have a written a program that shows how to compute differences in RGB values of a pixel and its right and bottom neighbors. If the difference is significant, the main pixel is colored red to distinguish it from the pixels surrounding it. Coloring a pixel red is simply making its R component full value of 255, and the other components (G and B) zero.
Bitte loggen Sie sich ein, um Zugang zu diesem Inhalt zu erhalten