29 #ifndef _XF_GAMMACORRECTION_CONFIG_H_
30 #define _XF_GAMMACORRECTION_CONFIG_H_
32 #include "hls_stream.h"
34 #include "common/xf_common.hpp"
35 #include "common/xf_utility.hpp"
36 #include "features/xf_gammacorrection.hpp"
38 #include "../../../../../HOST/vision/gammacorrection/include/config.h"
41 #include "imgproc/xf_gammacorrection.hpp"
50 #define CH_TYPE XF_GRAY
51 #define INPUT_PTR_WIDTH 64
52 #define OUTPUT_PTR_WIDTH 64
64 #define WIDTH FRAME_WIDTH
65 #define HEIGHT FRAME_HEIGHT
67 #define IMGSIZE FRAME_TOTAL
69 #define IMG_PACKETS IMGSIZE/(INPUT_PTR_WIDTH/8)
71 #define IN_TYPE XF_8UC1
72 #define OUT_TYPE XF_8UC1
75 xf::cv::Mat<XF_8UC1, HEIGHT, WIDTH, NPIX>& _dst,
76 unsigned short Thresh,
80 ap_uint<OUTPUT_PTR_WIDTH>* img_out,
81 int rows,
int cols,
int threshold,
int k);
84 hls::stream<ap_axiu<INPUT_PTR_WIDTH, 0, 0, 0> >& img_in_axi_stream,
85 hls::stream<ap_axiu<INPUT_PTR_WIDTH, 0, 0, 0> >& img_out_axi_stream,
86 int rows,
int cols,
int threshold,
int k);
89 xf::cv::Mat<OUT_TYPE, HEIGHT, WIDTH, NPC1>& imgOutput,
void cornerGammacorrectionAccelArray(ap_uint< 64 > *img_inp, ap_uint< 64 > *img_out, int rows, int cols, int threshold, int k)
void cornerGammacorrectionAccelStream(hls::stream< ap_axiu< 64, 0, 0, 0 > > &img_in_axi_stream, hls::stream< ap_axiu< 64, 0, 0, 0 > > &img_out_axi_stream, int rows, int cols, int threshold, int k)
void gammacorrection_accel(xf::cv::Mat< XF_8UC1, 16, 16, XF_NPPC1 > &imgInput1, xf::cv::Mat< XF_8UC1, 16, 16, XF_NPPC1 > &imgOutput, float gammaval)