Commit a0cf385
BUG: Fix image file reader crash when axis direction vector is short
The image file reader crashed when an IO class stored additional non-spatial (such as time) dimension in the image array
and provided axis direction vectors that covered only the spatial axes.
The previous implementation crashed (due to vector out of bounds access), while the current implementation augments the
direction matrix with unit direction vectors for additional axes.1 parent d0b0706 commit a0cf385
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| |||
0 commit comments