Closed ychyss closed 2 years ago
Hi @ychyss Yes it looks like step_z and end_z has been mixed up. And your solution for allowing float precision errors seems reasonable. I will implement these changes.
I also noticed that CziImageData currently does not check the axis order when getting the image size. Did you notice the image size being wrong? Which axes were present in the file you tested?
Also, if you have a czi file with z-stacking to share that would be helpful.
These issues have now been fixed by #28. Thanks for reporting!
thanks your code to help me...but i notcie some bug here.
when i try to convert czi to dcm, i notice a bug in CziImageData. The original code is writen as:
here the step_z and end_z may be revesed... they should be:
and then, in the wsidicom->WsiDataset->_get_spacing_between_slices_for_focal_planes, the computing of spacing may have wrong because of the float precision. in my exmaple, the incresment is 0.10073184462375681 between every Z plane.
so, i add a rough way to solve this problem..
hope this problem will be fix in a better way...