Added interval on threshold segmentation

Signed-off-by: Luiz Carlos Cavalcanti <cavalcanti.luiz@gmail.com>