def test_abp_n4(self): # def abp_n4(image, intensity_truncation=(0.025,0.975,256), mask=None, usen3=False): for img in self.imgs: img2 = ants.abp_n4(img) img3 = ants.abp_n4(img, usen3=True) # intensity trunction doesnt have three values with self.assertRaises(Exception): img = self.imgs[0] ants.abp_n4(img, intensity_truncation=(1, 2))
def test_abp_n4_example(self): image = ants.image_read(ants.get_ants_data('r16')) image2 = ants.abp_n4(image)
def test_abp_n4_example(self): img = ants.image_read(ants.get_ants_data("r16")) img = ants.iMath(img, "Normalize") * 255.0 img2 = ants.abp_n4(img)