.. _program_listing_file__tmp_ws_src_vitis_common_include_video_xf_pyr_dense_optical_flow_wrapper.hpp: Program Listing for File xf_pyr_dense_optical_flow_wrapper.hpp ============================================================== |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/vitis_common/include/video/xf_pyr_dense_optical_flow_wrapper.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp /* * Copyright 2019 Xilinx, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef __XF_PYR_DENSE_OPTICAL_FLOW_WRAPPER__ #define __XF_PYR_DENSE_OPTICAL_FLOW_WRAPPER__ #include "hls_stream.h" #include "ap_int.h" #include "common/xf_common.hpp" #include "video/xf_pyr_dense_optical_flow.hpp" namespace xf { namespace cv { template void densePyrOpticalFlow(xf::cv::Mat& _current_img, xf::cv::Mat& _next_image, xf::cv::Mat& _streamFlowin, xf::cv::Mat& _streamFlowout, const int level, const unsigned char scale_up_flag, float scale_in, ap_uint<1> init_flag) { // clang-format off #pragma HLS INLINE OFF // clang-format on xFLKOpticalFlowDenseKernel( _current_img, _next_image, _streamFlowin, _streamFlowout, _current_img.rows, _current_img.cols, _streamFlowin.rows, _streamFlowin.cols, level, scale_up_flag, scale_in, init_flag); } } // namespace cv } // namespace xf #endif