我不知道以下 edge_detect 函数的参数中“&”符号的作用是什么:
#include "edge_detect.h"
void edge_detect(stream_t& stream_in, stream_t& stream_out)
{
int const rows = MAX_HEIGHT;
int const cols = MAX_WIDTH;
rgb_img_t img0(rows, cols);
rgb_img_t img1(rows, cols);
rgb_img_t img2(rows, cols);
rgb_img_t img3(rows, cols);
hls::AXIvideo2Mat(stream_in, img0);
hls::CvtColor<HLS_RGB2GRAY>(img0, img1);
hls::Sobel<1,0,3>(img1, img2);
hls::CvtColor<HLS_GRAY2RGB>(img2, img3);
hls::Mat2AXIvideo(img3, stream_out);
}
感谢您的回答。