The following figure shows an image before any automatic color leveling has been performed:
The following figure shows what would happen if you start with the original image and apply the function using the AUTO_LEVEL flag.
The following figure shows what would happen if you start with the original image and apply the function using the AUTO_INTENSITY flag.
The following figure shows what would happen if you start with the original image and apply the function using the AUTO_CONTRAST flag.