Skip to content

Commit 6764334

Browse files
style(pre-commit): autofix
1 parent 5f309f8 commit 6764334

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

perception/autoware_tensorrt_yolox/include/autoware/tensorrt_yolox/utils.hpp

+6-7
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#ifndef AUTOWARE_TENSORRT_YOLOX__UTILS_HPP_
16-
#define AUTOWARE_TENSORRT_YOLOX__UTILS_HPP_
15+
#ifndef AUTOWARE__TENSORRT_YOLOX__UTILS_HPP_
16+
#define AUTOWARE__TENSORRT_YOLOX__UTILS_HPP_
1717
#include <opencv2/opencv.hpp>
1818

19-
2019
namespace autoware::tensorrt_yolox
2120
{
22-
std::vector<std::pair<uint8_t, int>> runLengthEncoder(const cv::Mat & mask);
23-
cv::Mat runLengthDecoder(const std::vector<uint8_t> & rle_data, const int rows, const int cols);
24-
} // namespace autoware::tensorrt_yolox
21+
std::vector<std::pair<uint8_t, int>> runLengthEncoder(const cv::Mat & mask);
22+
cv::Mat runLengthDecoder(const std::vector<uint8_t> & rle_data, const int rows, const int cols);
23+
} // namespace autoware::tensorrt_yolox
2524

26-
#endif //AUTOWARE_TENSORRT_YOLOX__UTILS_HPP_
25+
#endif // AUTOWARE__TENSORRT_YOLOX__UTILS_HPP_

perception/autoware_tensorrt_yolox/src/tensorrt_yolox_node.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
#include "autoware/tensorrt_yolox/tensorrt_yolox_node.hpp"
1616

17-
#include "object_recognition_utils/object_classification.hpp"
1817
#include "autoware/tensorrt_yolox/utils.hpp"
18+
#include "object_recognition_utils/object_classification.hpp"
1919

2020
#include <autoware_perception_msgs/msg/object_classification.hpp>
2121

perception/autoware_tensorrt_yolox/src/utils.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ std::vector<std::pair<uint8_t, int>> runLengthEncoder(const cv::Mat & image)
3636
return compressed_data;
3737
}
3838

39-
40-
cv::Mat runLengthDecoder(
41-
const std::vector<uint8_t> & rle_data, const int rows, const int cols)
39+
cv::Mat runLengthDecoder(const std::vector<uint8_t> & rle_data, const int rows, const int cols)
4240
{
4341
cv::Mat mask(rows, cols, CV_8UC1, cv::Scalar(0));
4442
int idx = 0;
@@ -63,4 +61,4 @@ cv::Mat runLengthDecoder(
6361
return mask;
6462
}
6563

66-
} // namespace tensorrt_yolox
64+
} // namespace autoware::tensorrt_yolox

0 commit comments

Comments
 (0)