cvapp.cpp
上传用户:zhaobiao
上传日期:2013-10-27
资源大小:92k
文件大小:1k
- #include "stdafx.h"
- #include "cvapp.h"
- // A global variable
- ImageProcessor *proc = 0;
- // the function that processes the image
- void process(void* img)
- {
- IplImage* image =reinterpret_cast<IplImage*>(img);
- //reinterpret_cast指针转化 struct<---->void IplImage* img; // Declare IPL/OpenCV image pointer
- cvErode( image, image, NULL, 1 );
- /*
- CVAPI(void) cvErode( const CvArr* src, CvArr* dst,
- IplConvKernel* element CV_DEFAULT(NULL),
- int iterations CV_DEFAULT(1) );*/
-
- }
- void ImageProcessor::execute()
- {
- process(img);
- }