napari-process-points-and-surfaces icon indicating copy to clipboard operation
napari-process-points-and-surfaces copied to clipboard

Apply scale parameter

Open jo-mueller opened this issue 3 years ago • 2 comments
trafficstars

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.

jo-mueller avatar Mar 09 '22 11:03 jo-mueller

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

haesleinhuepf avatar Mar 11 '22 21:03 haesleinhuepf

Yes, exactly! PR coming soon 👍

jo-mueller avatar Mar 22 '22 08:03 jo-mueller