54 #ifndef _XF_SOBEL_CONFIG_H_
55 #define _XF_SOBEL_CONFIG_H_
57 #include "hls_stream.h"
59 #include "common/xf_common.hpp"
60 #include "common/xf_utility.hpp"
61 #include "imgproc/xf_sobel.hpp"
64 #include "../../../../../HOST/vision/sobel/languages/cplusplus/include/config.h"
90 #define CH_TYPE XF_GRAY
91 #define INPUT_PTR_WIDTH 8
92 #define OUTPUT_PTR_WIDTH 64
101 #define NPIX XF_NPPC1
104 #define WIDTH FRAME_WIDTH
105 #define HEIGHT FRAME_HEIGHT
107 #define IMGSIZE FRAME_TOTAL
109 #define BITS_PER_10GBITETHRNET_AXI_PACKET 64
110 #define BYTES_PER_10GBITETHRNET_AXI_PACKET (BITS_PER_10GBITETHRNET_AXI_PACKET/8)
112 #define IMG_PACKETS IMGSIZE/(BYTES_PER_10GBITETHRNET_AXI_PACKET)
114 #define MIN_RX_LOOPS IMG_PACKETS*(BITS_PER_10GBITETHRNET_AXI_PACKET/INPUT_PTR_WIDTH)
115 #define MIN_TX_LOOPS IMG_PACKETS*(BITS_PER_10GBITETHRNET_AXI_PACKET/OUTPUT_PTR_WIDTH)
118 #define OUT_TYPE TYPE
127 void sobel_accel( xf::cv::Mat<XF_8UC1, HEIGHT, WIDTH, NPIX>& _src,
128 xf::cv::Mat<XF_8UC1, HEIGHT, WIDTH, NPIX>& _dst);
131 ap_uint<OUTPUT_PTR_WIDTH>* img_out,
135 hls::stream<ap_uint<INPUT_PTR_WIDTH>>& img_in_axi_stream,
136 hls::stream<ap_uint<OUTPUT_PTR_WIDTH>>& img_out_axi_stream,
140 hls::stream<ap_axiu<INPUT_PTR_WIDTH, 0, 0, 0> >& img_in_axi_stream,
141 hls::stream<ap_axiu<OUTPUT_PTR_WIDTH, 0, 0, 0> >& img_out_axi_stream,
142 unsigned int min_rx_loops,
143 unsigned int min_tx_loops);
void medianBlurAccelArray(ap_uint< 256 > *img_inp, ap_uint< 256 > *img_out, int rows, int cols)
void medianBlurAccelStream(hls::stream< ap_uint< 256 >> &img_in_axi_stream, hls::stream< ap_uint< 256 >> &img_out_axi_stream, int rows, int cols)
Top-level accelerated function of the Sobel Application with array I/Fadd SOBEL.
void fakeSobelAccelStream(hls::stream< ap_axiu< 256, 0, 0, 0 > > &img_in_axi_stream, hls::stream< ap_axiu< 256, 0, 0, 0 > > &img_out_axi_stream, unsigned int min_rx_loops, unsigned int min_tx_loops)
void medianBlurAccelMem(membus_t *img_inp, membus_t *img_out, int rows, int cols)
Top-level accelerated function of the MedianBlur Application with array I/F.
void sobel_accel(xf::cv::Mat< XF_8UC1, 1024, 1024, XF_NPPC1 > &_src, xf::cv::Mat< XF_8UC1, 1024, 1024, XF_NPPC1 > &_dst)
The Role for a Sobel Example application (UDP or TCP)