// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. #ifndef OPENCV_DNN_SRC_CUDA4DNN_KERNELS_DETECTION_OUTPUT_HPP #define OPENCV_DNN_SRC_CUDA4DNN_KERNELS_DETECTION_OUTPUT_HPP #include "../csl/stream.hpp" #include "../csl/span.hpp" #include "../csl/tensor.hpp" namespace cv { namespace dnn { namespace cuda4dnn { namespace kernels { template void decode_bboxes(const csl::Stream& stream, csl::Span output, csl::View locations, csl::View priors, std::size_t num_loc_classes, bool share_location, std::size_t background_label_id, bool transpose_location, bool variance_encoded_in_target, bool corner_true_or_center_false, bool normalized_bbox, bool clip_box, float clip_width, float clip_height); template void findTopK(const csl::Stream& stream, csl::TensorSpan indices, csl::TensorSpan count, csl::TensorView scores, std::size_t background_label_id, float threshold); template void box_collect(const csl::Stream& stream, csl::TensorSpan collected_bboxes, csl::TensorView decoded_bboxes, csl::TensorView indices, csl::TensorView count, bool share_location, std::size_t background_label_id); template void blockwise_class_nms(const csl::Stream& stream, csl::TensorSpan indices, csl::TensorSpan count, csl::TensorView collected_bboxes, bool normalized_bbox, std::size_t background_label_id, float nms_threshold); template void nms_collect(const csl::Stream& stream, csl::TensorSpan kept_indices, csl::TensorSpan kept_count, csl::TensorView indices, csl::TensorView count, csl::TensorView scores, float, std::size_t background_label_id); template void consolidate_detections(const csl::Stream& stream, csl::TensorSpan output, csl::TensorView kept_indices, csl::TensorView kept_count, csl::TensorView decoded_bboxes, csl::TensorView scores, bool share_location, csl::DevicePtr num_detections); }}}} /* namespace cv::dnn::cuda4dnn::kernels */ #endif /* OPENCV_DNN_SRC_CUDA4DNN_KERNELS_DETECTION_OUTPUT_HPP */