Esempio n. 1
0
 def test_detect_interesting_points(self):
     image_file = data_dir + "/test/karyotype.bmp"
     image = image_utils.read_image(image_file)
     chromosomes = Pipeline.extract_chromosomes(image)
     straightened_chromosomes = Pipeline.straighten_chromosomes(chromosomes)
     _ = Pipeline.detect_interesting_points(straightened_chromosomes,
                                            verbose=True)
Esempio n. 2
0
 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)
Esempio n. 3
0
 def test_straighten_chromosomes(self):
     image_file = data_dir + "/test/karyotype.bmp"
     image = image_utils.read_image(image_file)
     chromosomes = Pipeline.extract_chromosomes(image)
     _ = Pipeline.straighten_chromosomes(chromosomes, debug=True)