WIP: Added HoughTransform2D Circle class, simplified GetCircles() ret…#129
WIP: Added HoughTransform2D Circle class, simplified GetCircles() ret…#129hjmjohnson wants to merge 1 commit intoInsightSoftwareConsortium:masterfrom
Conversation
…urn type Added a very simple Circle class to represent a circle, detected by itk::HoughTransform2DCirclesImageFilter. Changed the return type of HoughTransform2DCirclesImageFilter::GetCircles() from std::list<EllipseSpatialObject<2>::Pointer>& to std::vector<Circle>&, to ease retrieval of the center and the radius of detected circles. Added convenience conversion function from Circle to EllipseSpatialObject<2>, to ease upgrading legacy code that depended on the old (<= ITK 4.13) interface. Removed redundant local variable 'circles' (equal to m_CirclesList.size()) from GetCircles(). Triggered by comments from Tim Evain, starting at: https://discourse.itk.org/t/hough-transform-2d-circles-image-filter-getcircles-patch/350/46 Change-Id: I5de7522b1a18715743d41b8ac3a40e9d6d1bfb93
|
http://review.source.kitware.com/#/c/23139/ Niels Dekker Kitware Build Robot Niels Dekker Niels Dekker Kitware Build Robot Niels Dekker Niels Dekker Kitware Build Robot Kitware Build Robot Niels Dekker Niels Dekker Kitware Build Robot Niels Dekker Niels Dekker Kitware Build Robot Niels Dekker Niels Dekker Kitware Build Robot Niels Dekker Niels Dekker Niels Dekker Kitware Build Robot Niels Dekker Matt McCormick Niels Dekker Matt McCormick Thanks, Neils. Good question -- a CircleSpatialObject should be its own class along with the other SpatialObject's. Niels Dekker Niels Dekker Niels Dekker Niels Dekker Kitware Build Robot Niels Dekker Niels Dekker Hans J. Johnson Niels Dekker @hans, thanks for trying to move this to GitHub. Maybe I should just abandon the issue, as I could not convince Matt (or anyone else, I guess) that filter->GetCircles() should return std::vector& ('Circle' being a simple aggregate of a radius and a center point), instead of the more complicated std::list<EllipseSpatialObject<2>::Pointer>&. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
…urn type
Added a very simple Circle class to represent a circle, detected by
itk::HoughTransform2DCirclesImageFilter. Changed the return type of
HoughTransform2DCirclesImageFilter::GetCircles() from
std::list<EllipseSpatialObject<2>::Pointer>& to std::vector&,
to ease retrieval of the center and the radius of detected circles.
Added convenience conversion function from Circle to EllipseSpatialObject<2>,
to ease upgrading legacy code that depended on the old (<= ITK 4.13) interface.
Removed redundant local variable 'circles' (equal to m_CirclesList.size())
from GetCircles().
Triggered by comments from Tim Evain, starting at:
https://discourse.itk.org/t/hough-transform-2d-circles-image-filter-getcircles-patch/350/46