Automatic segmentation of chromosomes in Q-band images