Skip to content

BUG: Fix regression in PolygonSpatialObject::IsInsideInObjectSpace#2454

Merged
dzenanz merged 1 commit intoInsightSoftwareConsortium:masterfrom
dzenanz:PolygonSpatalObjectRegression-fix
Mar 29, 2021
Merged

BUG: Fix regression in PolygonSpatialObject::IsInsideInObjectSpace#2454
dzenanz merged 1 commit intoInsightSoftwareConsortium:masterfrom
dzenanz:PolygonSpatalObjectRegression-fix

Conversation

@dzenanz
Copy link
Copy Markdown
Member

@dzenanz dzenanz commented Mar 29, 2021

A clone of #2453 which goes into master branch.

@dzenanz dzenanz requested a review from jhlegarreta March 29, 2021 15:14
This is a followup to the bugfix for issue InsightSoftwareConsortium#1082 where there was a
regression in the code on determining the inside/outsideness of points.

There are some cases where the algorithm still fails as there are two
boundary checks in the code which should be identical.
1. Test on adjacent segment pairs from start to finish
2. Test on segment pair from finish point to start point on closed
   polygons.

The previous bugfix fixed the code in item 1, but did not update the
check (which should be identical in item 2).

This should address this issue making both boundary on segments the same.
@dzenanz dzenanz force-pushed the PolygonSpatalObjectRegression-fix branch from f4dda67 to e3bf8e9 Compare March 29, 2021 15:26
@dzenanz dzenanz merged commit 31c682d into InsightSoftwareConsortium:master Mar 29, 2021
@dzenanz dzenanz deleted the PolygonSpatalObjectRegression-fix branch March 29, 2021 20:21
@rflanz
Copy link
Copy Markdown

rflanz commented Mar 30, 2021

@dzenanz Hi, Thanks once again for your help on this.
My company will be interested in pulling a release version of ITK with this fix in the near future.
I am not sure if I follow ITK branching strategies at the moment, so if you know when a patch version or new release with this fix is scheduled, I can let my company know about it.

Thanks,
Robert

@dzenanz
Copy link
Copy Markdown
Member Author

dzenanz commented Mar 30, 2021

ITK 5.2.0 is expected to be tagged within days.

@dzenanz
Copy link
Copy Markdown
Member Author

dzenanz commented Apr 2, 2021

@rflanz 5.2.0 has been tagged today. It will probably take some days to generate all the release-related things (Python packages, release announcements etc), but you can start using it.

hjmjohnson pushed a commit to hjmjohnson/ITK that referenced this pull request May 6, 2026
…nSpatalObjectRegression-fix

BUG: Fix regression in PolygonSpatialObject::IsInsideInObjectSpace
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

Successfully merging this pull request may close these issues.

3 participants