Derivative-based optimization in colour image filtering an application for derivative learning