Fixed the conditions for applying gauss fit.

Signed-off-by: Pier-Luc Plante <pier-luc.plante.1@ulaval.ca>