xFfast7x7
XF_SNAME(WORDWIDTH) buf[WIN_SZ][(COLS >> XF_BITSHIFT(NPC))]; //[7][]
#pragma HLS ARRAY_PARTITION variable=buf complete dim=1
#pragma HLS RESOURCE variable=buf core=RAM_S2P_BRAM
read_lines:
// read (line3+n)-(line5+n) row to buf[3:5][col]
// takes care of top borders , init buf[0:2][col]
//对 buf[0:5][col]赋值
ap_uint<8> src_buf[7][14];
ap_uint<8> src_buf_temp_med_apply[7][14]
read_lines:
// read (line3+n)-(line5+n) row to buf[3:5][col]
// takes care of top borders , init buf[0:2][col]
//对 buf[0:5][col]赋值
for (row = (win_size >> 1); row < img_height + (win_size >> 1); row++) {
ap_uint<64> buf_cop[WIN_SZ];//7
ap_uint<8> src_buf_temp_copy[WIN_SZ][XF_NPIXPERCYCLE(NPC)];//[7][8]
for (ap_uint<13> col = 0; col < ((img_width) >> XF_BITSHIFT(NPC)) + col_loop_var; col++) {
buf[6][col] = _src_mat.read(read_index++); // Read data
buf[row_ind[win_size - 1]][col] = _src_mat.read(read_index++);
buf_cop[0:6] = buf[0+n:6+n][0];
src_buf_temp_copy[7][8] <= buf_cop
src_buf[0:6][11:13] = src_buf_temp_copy[0:6][0:2];
src_buf[0:6][0:10] = src_buf_temp_copy[0:6][0];
src_buf_temp_med_apply[copyi][copyj] = src_buf[copyi][copyj + applyfast];
xFfastProc<NPC, WORDWIDTH, DEPTH, WIN_SZ, WIN_SZ_SQ>
(OutputValues_percycle,//score
src_buf_temp_med_apply,
WIN_SZ, _threshold,
pack_corners); //iscorner 255 else 0