forked from InsightSoftwareConsortium/ITK
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: IsInside(point) made easier, especially for HoughTransform circles
Added ComputeObjectToParentTransform() call to EllipseSpatialObject:: SetCenterPoint(point). This will allow users to directly call circle->IsInside(point) for a circle detected by HoughTransform, without having to worry about calling ComputeObjectToParentTransform() or ComputeObjectToWorldTransform() themselves. Added a test. This commit indirectly also restores a backward compatibility issue introduced by commit 1722d1e, which replaced GetObjectToParentTransform()->m_Offset by GetObjectToWorldTransform()->m_Offset as storage location for the center coordinates. This new commit ensures that the center coordinates will be placed at both storage locations. Change-Id: Iff7fc5ba60f3a9bd0ad4165c047930d283fc7c48
- Loading branch information
Showing
2 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters