Skip to content

Commit ae79b25

Browse files
authored
Merge pull request #174 from bdiazroh/master
Add spacing to DistanceTransfrom
2 parents ec2ce8f + 9928c71 commit ae79b25

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

distancetransform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def run(self, workspace):
7171

7272
x_data = x.pixel_data
7373

74-
y_data = scipy.ndimage.distance_transform_edt(x_data)
74+
y_data = scipy.ndimage.distance_transform_edt(x_data, sampling=x.spacing)
7575

7676
if self.rescale_values.value:
7777
y_data = y_data / numpy.max(y_data)

0 commit comments

Comments
 (0)