Threshold selection

Signed-off-by: jfruitet <jean.fruitet@free.fr>