Skip to content

Commit

Permalink
don't know how to fix it, works fine for axial
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmanderson committed Jul 21, 2020
1 parent 1979347 commit 9c007ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Image_Array_And_Mask_From_Dicom_RT.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def make_output(self, annotation, i):
for point in points:
output.append(((point[1]) * self.PixelSize[0] + self.mult1 * self.ShiftRows[i]))
output.append(((point[0]) * self.PixelSize[1] + self.mult2 * self.ShiftCols[i]))
output.append(self.ShiftZ[i])
output.append(self.ShiftZ[i] + point[1] * self.PixelSize[0] * Xz + point[0] * self.PixelSize[1] * Yz)
self.contour_dict[i].append(output)
hole_annotation = 1 - annotation
filled_annotation = binary_fill_holes(annotation)
Expand All @@ -98,7 +98,7 @@ def make_output(self, annotation, i):
for point in points:
output.append(((point[1]) * self.PixelSize[0] + self.mult1 * self.ShiftRows[i]))
output.append(((point[0]) * self.PixelSize[1] + self.mult2 * self.ShiftCols[i]))
output.append(self.ShiftZ[i])
output.append(self.ShiftZ[i] + point[1] * self.PixelSize[0] * Xz + point[0] * self.PixelSize[1] * Yz)
self.contour_dict[i].append(output)


Expand Down

0 comments on commit 9c007ff

Please sign in to comment.