napari-process-points-and-surfaces
napari-process-points-and-surfaces copied to clipboard
Apply scale parameter
When working with parameters like curvature, I think it is dangerous to have the scale parameter set in the layer properties. ´This could lead to a sphere appearing perfectly spherical while, in fact, being ellipsoidal.
We could fix this by introducing a small function that "applies" the scale parameter to the points in points/surface layers as this wouldn't change the actual amount of data to be handled - unlike with image data.
Then it would also make sense to multiply the voxel size with the vertices, after applying marching cubes, right?
E.g. here: https://github.com/haesleinhuepf/napari-process-points-and-surfaces/blob/main/napari_process_points_and_surfaces/init.py#L424
And the opposite should be done here, I think: https://github.com/haesleinhuepf/napari-process-points-and-surfaces/blob/main/napari_process_points_and_surfaces/init.py#L333
Yes, exactly! PR coming soon 👍