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)
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)
def test_n3_bias_field_correction(self): for img in self.imgs: image_n3 = ants.n3_bias_field_correction(img)
def bias_field_correction(img): return ants.n3_bias_field_correction(img)