Supervised machine learning on Galactic filaments. II. Encoding the position to optimize the detection of filaments over a wide range of column density and contrast | Publicación