ocl: Canny: replace unsafe buffer to oclMat

This commit is contained in:
Alexander Alekhin
2013-10-27 18:55:42 +04:00
parent c1223f8dac
commit 9e527fc9f4
2 changed files with 21 additions and 27 deletions

View File

@@ -984,12 +984,12 @@ namespace cv
struct CV_EXPORTS CannyBuf
{
CannyBuf() : counter(NULL) {}
CannyBuf() : counter(1, 1, CV_32S) { }
~CannyBuf()
{
release();
}
explicit CannyBuf(const Size &image_size, int apperture_size = 3) : counter(NULL)
explicit CannyBuf(const Size &image_size, int apperture_size = 3) : counter(1, 1, CV_32S)
{
create(image_size, apperture_size);
}
@@ -1001,7 +1001,7 @@ namespace cv
oclMat dx_buf, dy_buf;
oclMat edgeBuf;
oclMat trackBuf1, trackBuf2;
void *counter;
oclMat counter;
Ptr<FilterEngine_GPU> filterDX, filterDY;
};