Skip to content

Perimeter feature #113

Answered by crisluengo
pstack12 asked this question in General
May 4, 2022 · 3 comments · 5 replies
Discussion options

You must be logged in to vote

I've made some changes in 253418e and fa46259. In the code snippet I posted above, you can now skip modifying the chain code, and directly do length = cc.length("include") + dip::pi. And you can also configure the "Perimeter" feature to measure perimeters including those pixels at the image boundary. In C++ you'd do

dip::MeasurementTool measurementTool;
measurementTool.Configure("Perimeter", "include boundary pixels", 1);
measurementTool.Measure(...);

Thanks for your feedback! I love these opportunities to improve DIPlib.

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pstack12
Comment options

Answer selected by crisluengo
Comment options

You must be logged in to vote
4 replies
@pstack12
Comment options

@pstack12
Comment options

@crisluengo
Comment options

@pstack12
Comment options

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