Repository navigation
|
I try to use meshlib.mrmeshpy.Vector3f(520/7440, 40/350, 50/150) to create 3d model from .tiff files. For each .tiff slice, x range is(-260,260) and y(-20,20). I have 150 tiff files and the total length is 50. I try to make real scale model by using the argument. However, the model has double length in y direction than real scale. For tiff slice, I used 'plt.savefig(filepath, dpi=1200, |
Replies: 2 comments 4 replies
|
Hello! Could you please describe what is 7440 and 350 in your voxel size? (I thing X and Y components of voxel size should be equal in most cases) |
|
Closing, since this was followed up by email. A summary for anyone who finds this thread: Voxel size. When loading a TIFF stack, every pixel becomes one voxel, and So here it should be Iso value can be anything between the volume's No TIFF step needed. If the data is already a NumPy array, you can build the volume from it directly with |


Closing, since this was followed up by email. A summary for anyone who finds this thread:
Voxel size. When loading a TIFF stack, every pixel becomes one voxel, and
voxelSizeis the real-world size of one voxel along each axis. Pixels are square in almost all cases, sovoxelSize.xandvoxelSize.yshould normally be equal. Compute the value from the axis whose physical range you know reliably and use it for both:So here it should be
(520/7440, 520/7440, 50/150). With40/350for Y, the Y voxel is about 1.6× larger than the X voxel (0.11…