Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enh: benchmark contours in hierarchy children #149

Open
paulmueller opened this issue Oct 27, 2021 · 0 comments
Open

enh: benchmark contours in hierarchy children #149

paulmueller opened this issue Oct 27, 2021 · 0 comments

Comments

@paulmueller
Copy link
Member

paulmueller commented Oct 27, 2021

map_indices_child2parent might be better replaced with map_indices_child2root and keep a reference of the root contour object. Contours are nowadays ancillary features (computed from mask) and obtaining the contour ancillary feature via __getitem__ costs approximately 0.003 s, because the ancillary feature always has to check if it is available.

Thus, exporting contour data from hierarchy children is penalized with an overhead of 0.003 s per event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant