Real-time non-linear image processing using an active optical scanning technique