Allows the segments detection using one of the available automatic threshold methods.