Skip to content

x,y coordinates for each segment #175

Answered by Abe404
emmeb2021 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Emme,

Thanks for the kind words!

You're right that the "Extract region properties" option in the Measurements menu just gives the centroid of each segment. Internally, this uses regionprops from scikit-image.

you can see the relevant bit of code here:

https://github.com/Abe404/root_painter/blob/1700ed33060e02e94ccfb6b7f9fdd56de4029b7c/painter/src/main/python/extract_regions.py#L40C15-L40C34

regionprops doc: https://scikit-image.org/docs/0.23.x/auto_examples/segmentation/plot_regionprops.html

But yes, for what you're trying to do re-drawing the actual outlines to compute overlap, the centroid alone won’t help.

If your goal is to measure overlap between RootPainter segmentations and thos…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by emmeb2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants