FilterNIHR function

Artefact filter based in an adaptive threshold