This example shows you how to invert images on your Raspberry Pi. Image inversion is the technique in which light areas are mapped to dark and dark areas are mapped to light. An inverted image is essentially a digital negative of the original image.
If you have a USB camera that is Raspberry Pi compatible, follow the instructions on this documentation page after connecting your USB camera to the Raspberry Pi. The inverted image can be brought into Simulink or viewed on a HDMI compatible monitor connected to your Raspberry Pi.
If you have a Raspberry Pi camera board, step-by-step instructions are provided in the video on how to perform image inversion using the Simulink support package