Directional Derivative Shock Filter Matlab