maweigert / spimagine

GPU accelerated volume rendering / processing in Python
BSD 3-Clause "New" or "Revised" License
117 stars 17 forks source link

Order of stackUnits in volshow doesn't match order of axes in NumPy array #26

Open jni opened 6 years ago

jni commented 6 years ago

I have this array in (plane, row, column) order, so the leading dimension is lower resolution than the other two (by a factor of four). However, to get a correct volshow image, I need to do volshow(image, stackUnits=[1, 1, 4]), instead of [4, 1, 1] as I would have expected.

Also, it should probably be called stack_units ;) or voxel_spacing or spacing.