1 // This file is part of OpenCV project.
2 // It is subject to the license terms in the LICENSE file found in the top-level directory
3 // of this distribution and at http://opencv.org/license.html.
4 
5 #ifndef OPENCV_DNN_SRC_CUDA4DNN_KERNELS_REGION_HPP
6 #define OPENCV_DNN_SRC_CUDA4DNN_KERNELS_REGION_HPP
7 
8 #include "../csl/stream.hpp"
9 #include "../csl/span.hpp"
10 
11 #include <cstddef>
12 
13 namespace cv { namespace dnn { namespace cuda4dnn { namespace kernels {
14 
15     template <class T>
16     void region(const csl::Stream& stream, csl::Span<T> output, csl::View<T> input, csl::View<T> bias,
17         T object_prob_cutoff, T class_prob_cutoff,
18         std::size_t boxes_per_cell, std::size_t box_size,
19         std::size_t rows, std::size_t cols, T scale_x_y,
20         std::size_t height_norm, std::size_t width_norm,
21         bool if_true_sigmoid_else_softmax);
22 
23 }}}} /* namespace cv::dnn::cuda4dnn::kernels */
24 
25 #endif /* OPENCV_DNN_SRC_CUDA4DNN_KERNELS_REGION_HPP */
26