Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(traffic_light_classifier): fix zero size roi bug (#7608)
* fix: continue to process when input roi size is zero Signed-off-by: Taekjin LEE <[email protected]> * fix: consider when roi size is zero, rois is empty fix Signed-off-by: Taekjin LEE <[email protected]> * fix: use emplace_back instead of push_back for adding images and backlight indices The code changes in `traffic_light_classifier_node.cpp` modify the way images and backlight indices are added to the respective vectors. Instead of using `push_back`, the code now uses `emplace_back`. This change improves performance and ensures proper object construction. Signed-off-by: Taekjin LEE <[email protected]> * refactor: bring back for loop skim and output_msg filling Signed-off-by: Taekjin LEE <[email protected]> * chore: refactor code to handle empty input ROIs in traffic_light_classifier_node.cpp Signed-off-by: Taekjin LEE <[email protected]> * refactor: using index instead of vector length Signed-off-by: Taekjin LEE <[email protected]> --------- Signed-off-by: Taekjin LEE <[email protected]>
- Loading branch information