Automatic classification of chromosomes in Q-band images