M2_SETI/A2/Detection_cercle/circle_detect/circle_detect_test.cpp

22 lines
372 B
C++
Raw Permalink Normal View History

2023-02-16 09:00:58 +01:00
#include "circle_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;
}