iradon_sart: Test clip functionality and add a test for it.

This commit is contained in:
Jostein Bø Fløystad
2013-07-05 13:14:39 +02:00
parent a5df8d4630
commit a4870242b6
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -413,5 +413,5 @@ def iradon_sart(radon_image, theta=None, image=None, projection_shifts=None,
projection_shifts[angle_index])
image += relaxation * image_update
if not clip is None:
image = clip(image, clip[0], clip[1])
image = np.clip(image, clip[0], clip[1])
return image