2d and 3d Local filtering implemented with bugs.