M2_SETI/A2/Detection_cercle/edge_detect/edge_detect_test.cpp

22 lines
370 B
C++
Raw Normal View History

2023-02-16 09:00:58 +01:00
#include "edge_detect.h"
#include "hls_opencv.h"
int main()
{
int const rows = MAX_HEIGHT;
int const cols = MAX_WIDTH;
cv::Mat src = cv::imread(INPUT_IMAGE);
cv::Mat dst = src;
stream_t stream_in, stream_out;
cvMat2AXIvideo(src, stream_in);
edge_detect(stream_in, stream_out);
AXIvideo2cvMat(stream_out, dst);
cv::imwrite(OUTPUT_IMAGE, dst);
return 0;
}