Download modules/gapi/src/backends/fluid/gfluidimgproc_func.dispatch.cpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 7.3 kB
-
https://huggingface.co/tgollogly/test/resolve/main/modules/gapi/src/backends/fluid/gfluidimgproc_func.dispatch.cpp
- Command line
-
hf download hf://tgollogly/test/modules/gapi/src/backends/fluid/gfluidimgproc_func.dispatch.cpp
-
curl -L -o gfluidimgproc_func.dispatch.cpp https://huggingface.co/tgollogly/test/resolve/main/modules/gapi/src/backends/fluid/gfluidimgproc_func.dispatch.cpp
7.3 kB
| // 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. | |
| // | |
| // Copyright (C) 2018 Intel Corporation | |
| namespace cv { | |
| namespace gapi { | |
| namespace fluid { | |
| //---------------------------------- | |
| // | |
| // Fluid kernels: RGB2Gray, BGR2Gray | |
| // | |
| //---------------------------------- | |
| void run_rgb2gray_impl(uchar out[], const uchar in[], int width, | |
| float coef_r, float coef_g, float coef_b) | |
| { | |
| CV_CPU_DISPATCH(run_rgb2gray_impl, | |
| (out, in, width, coef_r, coef_g, coef_b), | |
| CV_CPU_DISPATCH_MODES_ALL); | |
| } | |
| //-------------------------------------- | |
| // | |
| // Fluid kernels: RGB-to-HSV | |
| // | |
| //-------------------------------------- | |
| void run_rgb2hsv_impl(uchar out[], const uchar in[], const int sdiv_table[], | |
| const int hdiv_table[], int width) | |
| { | |
| CV_CPU_DISPATCH(run_rgb2hsv_impl, (out, in, sdiv_table, hdiv_table, width), CV_CPU_DISPATCH_MODES_ALL); | |
| } | |
| //-------------------------------------- | |
| // | |
| // Fluid kernels: RGB-to-BayerGR | |
| // | |
| //-------------------------------------- | |
| void run_bayergr2rgb_bg_impl(uchar out[], const uchar **in, int width) | |
| { | |
| CV_CPU_DISPATCH(run_bayergr2rgb_bg_impl, (out, in, width), CV_CPU_DISPATCH_MODES_ALL); | |
| } | |
| void run_bayergr2rgb_gr_impl(uchar out[], const uchar **in, int width) | |
| { | |
| CV_CPU_DISPATCH(run_bayergr2rgb_gr_impl, (out, in, width), CV_CPU_DISPATCH_MODES_ALL); | |
| } | |
| //-------------------------------------- | |
| // | |
| // Fluid kernels: RGB-to-YUV, RGB-to-YUV422, YUV-to-RGB | |
| // | |
| //-------------------------------------- | |
| void run_rgb2yuv_impl(uchar out[], const uchar in[], int width, const float coef[5]) | |
| { | |
| CV_CPU_DISPATCH(run_rgb2yuv_impl, (out, in, width, coef), CV_CPU_DISPATCH_MODES_ALL); | |
| } | |
| void run_yuv2rgb_impl(uchar out[], const uchar in[], int width, const float coef[4]) | |
| { | |
| CV_CPU_DISPATCH(run_yuv2rgb_impl, (out, in, width, coef), CV_CPU_DISPATCH_MODES_ALL); | |
| } | |
| void run_rgb2yuv422_impl(uchar out[], const uchar in[], int width) | |
| { | |
| CV_CPU_DISPATCH(run_rgb2yuv422_impl, (out, in, width), CV_CPU_DISPATCH_MODES_ALL); | |
| } | |
| //------------------------- | |
| // | |
| // Fluid kernels: sepFilter | |
| // | |
| //------------------------- | |
| RUN_SEPFILTER3X3_IMPL(uchar , uchar ) | |
| RUN_SEPFILTER3X3_IMPL( short, uchar ) | |
| RUN_SEPFILTER3X3_IMPL( float, uchar ) | |
| RUN_SEPFILTER3X3_IMPL(ushort, ushort) | |
| RUN_SEPFILTER3X3_IMPL( short, ushort) | |
| RUN_SEPFILTER3X3_IMPL( float, ushort) | |
| RUN_SEPFILTER3X3_IMPL( short, short) | |
| RUN_SEPFILTER3X3_IMPL( float, short) | |
| RUN_SEPFILTER3X3_IMPL( float, float) | |
| RUN_SEPFILTER5x5_IMPL(uchar, uchar) | |
| RUN_SEPFILTER5x5_IMPL(short, uchar) | |
| RUN_SEPFILTER5x5_IMPL(float, uchar) | |
| RUN_SEPFILTER5x5_IMPL(ushort, ushort) | |
| RUN_SEPFILTER5x5_IMPL(short, ushort) | |
| RUN_SEPFILTER5x5_IMPL(float, ushort) | |
| RUN_SEPFILTER5x5_IMPL(short, short) | |
| RUN_SEPFILTER5x5_IMPL(float, short) | |
| RUN_SEPFILTER5x5_IMPL(float, float) | |
| //------------------------- | |
| // | |
| // Fluid kernels: Filter 2D | |
| // | |
| //------------------------- | |
| RUN_FILTER2D_3X3_IMPL(uchar , uchar ) | |
| RUN_FILTER2D_3X3_IMPL(ushort, ushort) | |
| RUN_FILTER2D_3X3_IMPL( short, short) | |
| RUN_FILTER2D_3X3_IMPL( float, uchar ) | |
| RUN_FILTER2D_3X3_IMPL( float, ushort) | |
| RUN_FILTER2D_3X3_IMPL( float, short) | |
| RUN_FILTER2D_3X3_IMPL( float, float) | |
| //----------------------------- | |
| // | |
| // Fluid kernels: Erode, Dilate | |
| // | |
| //----------------------------- | |
| RUN_MORPHOLOGY3X3_IMPL(uchar ) | |
| RUN_MORPHOLOGY3X3_IMPL(ushort) | |
| RUN_MORPHOLOGY3X3_IMPL( short) | |
| RUN_MORPHOLOGY3X3_IMPL( float) | |
| //--------------------------- | |
| // | |
| // Fluid kernels: Median blur | |
| // | |
| //--------------------------- | |
| RUN_MEDBLUR3X3_IMPL(uchar ) | |
| RUN_MEDBLUR3X3_IMPL(ushort) | |
| RUN_MEDBLUR3X3_IMPL( short) | |
| RUN_MEDBLUR3X3_IMPL( float) | |
| } // namespace fluid | |
| } // namespace gapi | |
| } // namespace cv | |