threshold cropping for different data types and two different start positions for z slice scanning