ANTsPy icon indicating copy to clipboard operation
ANTsPy copied to clipboard

plot failed with axis =2

Open ibowennn opened this issue 2 years ago • 1 comments

Describe the bug SimpleITK converted a T2 series from Dicom to a nii.gz file. Plotting the T2 series with axis = 2, the error indicates that "index 35 is out of bounds for axis 0 with size 24". In contrast, plotting with axis = 0 or 1 works well.

To Reproduce Steps to reproduce the behavior:

  1. Read the T2 series file.
  2. plot the series with axis= 2

Expected behavior The series could be plotted with axis=2

Screenshots image image image

Desktop (please complete the following information):

  • OS: macos, python 3.9, antspy version 0.3.3

Additional context The T2 series and mask were attached below contour.nii.gz T2W_TSE_ax__0.0.nii.gz

ibowennn avatar Aug 01 '22 03:08 ibowennn