示例#1
0
 def test_n3_bias_field_correction_example(self):
     image = ants.image_read(ants.get_ants_data('r16'))
     image_n3 = ants.n3_bias_field_correction(image)
示例#2
0
 def test_example(self):
     fi = ants.image_read(ants.get_ants_data('r16'))
     fi = ants.n3_bias_field_correction(fi, 2)
     seg = ants.kmeans_segmentation(fi, 3)
示例#3
0
 def test_n3_bias_field_correction(self):
     for img in self.imgs:
         image_n3 = ants.n3_bias_field_correction(img)
示例#4
0
def bias_field_correction(img):
    return ants.n3_bias_field_correction(img)