Closed yucedagonurcan closed 3 years ago
thank you for comment. As you said, there is no need to calculate centroid. Basically, there is no place where the Z value is used, so it will not affect. I'll fix it here.
This is reflected in the internal version, so I think it will be fixed in v0.9.0.
Hello,
Like I asked already on header, I don't think we need to calculate centroid in 3D (and loop through all the points), because cv::minEnclosingCircle will give the centroid in 2D already and we can calculate the centroid in 3D by:
https://github.com/tier4/Pilot.Auto/blob/0f3dee10dd4c22fddbee44662bd520e5a6d87ef7/perception/object_recognition/detection/shape_estimation/src/model/normal/cylinder.cpp#L39-L46
https://github.com/tier4/Pilot.Auto/blob/0f3dee10dd4c22fddbee44662bd520e5a6d87ef7/perception/object_recognition/detection/shape_estimation/src/model/normal/cylinder.cpp#L64