-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Surface helper tuto fill contours #827
Surface helper tuto fill contours #827
Conversation
…hain wich was the exterior of the shape
@troussil, in the last commit I also update the contourS.fc in the direct orientation, and you use it in : |
* Given a boundary surface [bdry] in [ks], compute its exterior as a | ||
* set of unoriented spels. The technique is to fill line by line and | ||
* tests the intersection with the surface. | ||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SCellSet -> insist in the fact that it should reflect a closed surface.
@dcoeurjo as discussed with @JacquesOlivierLachaud I change it with SurfelPredicate and with ImageContainer template (since it is used usually with image). |
Can I check this PR ? |
yes It could be nice ! :) |
|
||
|
||
|
||
To construct the set of signed SCell, we exploit the method getInterPixelLinels of FreemanChain class: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SCells, we use the
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
|
||
@snippet topology/ctopo-fillContours.cpp ctopoFillContoursFillRegion | ||
|
||
The interior Cell obtained from such a contour are illustrated here: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cells
corrected thank! |
@dcoeurjo can we merge ? |
This can be merged but Surfaces.h is a bit messy and should be refactored a little bit (there are only 2D things, some nD functions...). |
Surface helper tuto fill contours
Add doc on filling contour region in complement of Surface class from topology/helper.
A new example in link to the freeman2pgm tool of DGTalTools and new function uComputeExterior.
The test was also updated and the contour tests/samples/contourS.fc was updated (since he was obtained with an inverted cell selection).