haesleinhuepf / napari-process-points-and-surfaces

Process and analyze surfaces using vedo in napari.
BSD 3-Clause "New" or "Revised" License
21 stars 4 forks source link

Implementation of plot density #12

Open EdwinHernandezG opened 2 years ago

EdwinHernandezG commented 2 years ago

It will be possible to implement points.density in `napari-process-points-and-surfaces? It would be amazing to see cell densities in 3D!

Thanks in advance for your amazing work!

haesleinhuepf commented 1 year ago

Hi @EdwinHernandezG ,

sorry, I missed this issue for so long. I agree, this makes a lot of sense! I think the code might be similar to points_to_labels here: https://github.com/haesleinhuepf/napari-process-points-and-surfaces/blob/main/napari_process_points_and_surfaces/__init__.py#L317

.... except that we create ImageData instead of LabelsData. Furthermore, we can call points.density instead of this silly for loop.

Would you mind sending a PR for this?

Thanks!

Best, robert