Open K-Meech opened 9 months ago
Currently, the scale of Napari layers doesn't seem to be taken into account during the regionprops calculations. This means that e.g. areas aren't scaled by the given pixel size, and are just given in pixel units.
regionprops_table has a 'spacing' parameter which the layer .scale could be passed into: https://scikit-image.org/docs/stable/api/skimage.measure.html#skimage.measure.regionprops_table , which currently isn't used: https://github.com/haesleinhuepf/napari-skimage-regionprops/blob/e38cc72c25e1fe1c31cf31829c3e9cd53a839778/napari_skimage_regionprops/_regionprops.py#L116
regionprops_table
.scale
Would it be possible to add this? Thanks!
Currently, the scale of Napari layers doesn't seem to be taken into account during the regionprops calculations. This means that e.g. areas aren't scaled by the given pixel size, and are just given in pixel units.
regionprops_table
has a 'spacing' parameter which the layer.scale
could be passed into: https://scikit-image.org/docs/stable/api/skimage.measure.html#skimage.measure.regionprops_table , which currently isn't used: https://github.com/haesleinhuepf/napari-skimage-regionprops/blob/e38cc72c25e1fe1c31cf31829c3e9cd53a839778/napari_skimage_regionprops/_regionprops.py#L116Would it be possible to add this? Thanks!