Delphi-OpenCV/source/opencv_classes/imgproc_prx.cpp
Laentir Valetov 91e285b316 Add C++ Canny with demos
Signed-off-by: Laentir Valetov <laex@bk.ru>
2016-08-05 14:41:08 +04:00

16 lines
314 B
C++

#include "stdafx.h"
namespace cv
{
ICLASS_API void __stdcall prxCanny(IplImage* image, IplImage* edges,
double threshold1, double threshold2,
int apertureSize, bool L2gradient)
{
Mat _edges;
Canny(Mat(image), _edges, threshold1, threshold2, apertureSize, L2gradient);
cvCopy(&(IplImage)_edges, edges);
}
}