def test_organize_chromosomes(self): image_file = data_dir + "/test/karyotype.bmp" image = Pipeline.read_image(image_file) chromosomes = Pipeline.extract_chromosomes(image) straightened_chromosomes = Pipeline.straighten_chromosomes(chromosomes) # interesting_points = Pipeline.detect_interesting_points(straightened_chromosomes) interesting_points = None classified_chromosomes = Pipeline.classify_chromosomes( straightened_chromosomes, interesting_points) karyotyping_image = Pipeline.organize_chromosomes( classified_chromosomes) image_utils.show_image(karyotyping_image)
def test_read_image(self): image_file = data_dir + "/test/karyotype.bmp" image = Pipeline.read_image(image_file) image_utils.show_image(image)