Skip to content

Commit

Permalink
Default value for dip.ChainCode.Lenght().
Browse files Browse the repository at this point in the history
  • Loading branch information
crisluengo committed Jul 3, 2024
1 parent 5ef3954 commit bbefebb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion changelogs/diplib_next.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ None, but see bugfixes to *DIPlib*.

### Bug fixes

None, but see bugfixes to *DIPlib*.
- `dip.ChainCode.Length()` had a parameter `boundaryPixels` added in *DIPlib* 3.3.0, but the Python bindings
did not know about its default value.

(See also bugfixes to *DIPlib*.)

### Build and installation changes
Expand Down
2 changes: 1 addition & 1 deletion pydip/src/measurement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ void init_measurement( py::module& m ) {
chain.def_readonly( "is8connected", &dip::ChainCode::is8connected );
chain.def( "ConvertTo8Connected", &dip::ChainCode::ConvertTo8Connected );
chain.def( "Empty", &dip::ChainCode::Empty );
chain.def( "Length", &dip::ChainCode::Length );
chain.def( "Length", &dip::ChainCode::Length, "boundaryPixels"_a = dip::S::EXCLUDE );
chain.def( "Feret", &dip::ChainCode::Feret, "angleStep"_a = 5.0 / 180.0 * dip::pi );
chain.def( "BendingEnergy", &dip::ChainCode::BendingEnergy );
chain.def( "BoundingBox", []( dip::ChainCode const& self ) {
Expand Down

0 comments on commit bbefebb

Please sign in to comment.