cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
xf_gammacorrection_config.h
Go to the documentation of this file.
1 
17 
43 
55 #ifndef _XF_GAMMA_CONFIG_H_
56 #define _XF_GAMMA_CONFIG_H_
57 
58 #include "hls_stream.h"
59 #include "ap_int.h"
60 #include "common/xf_common.hpp"
61 #include "common/xf_utility.hpp"
62 #include "features/xf_median_blur.hpp"
63 #include "xf_config_params.h"
64 #include "../../../host/median_blur/include/config.h"
65 #include "imgproc/xf_gammacorrection.hpp"
66 
67 #define WIDTH FRAME_WIDTH
68 #define HEIGHT FRAME_HEIGHT
69 
70 #define IMGSIZE WIDTH * HEIGHT
71 #define IMG_PACKETS IMGSIZE/(INPUT_PTR_WIDTH/8)
72 
73 #if NO
74 #define NPC1 XF_NPPC1
75 #endif
76 #if RO
77 #define NPC1 XF_NPPC8
78 #endif
79 
80 //#define IN_TYPE XF_8UC3
81 //#define OUT_TYPE XF_8UC3
82 
83 
84 #if RO
85 #define IN_TYPE ap_uint<64>
86 #endif
87 #if NO
88 #define IN_TYPE ap_uint<8>
89 #endif
90 
91 
92 void gammacorrection_accel(xf::cv::Mat<IN_TYPE, HEIGHT, WIDTH, NPC1>& imgInput1,
93  xf::cv::Mat<OUT_TYPE, HEIGHT, WIDTH, NPC1>& imgOutput,
94  float gammaval);
95 
96 
98  hls::stream<ap_axiu<INPUT_PTR_WIDTH, 0, 0, 0> >& img_in_axi_stream,
99  hls::stream<ap_axiu<INPUT_PTR_WIDTH, 0, 0, 0> >& img_out_axi_stream,
100  float gammaval);
101 
102 #endif //_XF_GAMMA_CONFIG_H_
103 
104 
void gammacorrection_accel(xf::cv::Mat< XF_8UC1, 256, 256, XF_NPPC1 > &_src, xf::cv::Mat< XF_8UC1, 256, 256, XF_NPPC1 > &_dst, unsigned short Thresh, unsigned short k)
void cornerGammacorrectionAccelStream(hls::stream< ap_axiu< INPUT_PTR_WIDTH, 0, 0, 0 > > &img_in_axi_stream, hls::stream< ap_axiu< INPUT_PTR_WIDTH, 0, 0, 0 > > &img_out_axi_stream, float gammaval)
The WarpTransform IP configuration header.