mirror of
https://github.com/Laex/Delphi-OpenCV.git
synced 2024-11-17 16:55:52 +01:00
34 lines
636 B
C++
34 lines
636 B
C++
|
// opencv_classes.cpp: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> DLL.
|
|||
|
//
|
|||
|
|
|||
|
#include "stdafx.h"
|
|||
|
#define IMAT_EXPORTS 1
|
|||
|
#include "opencv_classes.h"
|
|||
|
#include "TMat.h"
|
|||
|
#include "imat.h"
|
|||
|
#include "opencv2\core\mat.hpp"
|
|||
|
|
|||
|
HRESULT IMAT_API CreateMat(LPMat *_Mat)
|
|||
|
{
|
|||
|
*_Mat = new TMat();
|
|||
|
if (*_Mat)
|
|||
|
{
|
|||
|
(*_Mat)->AddRef();
|
|||
|
return S_OK;
|
|||
|
}
|
|||
|
else
|
|||
|
return E_NOINTERFACE;
|
|||
|
}
|
|||
|
|
|||
|
HRESULT IMAT_API CreateMat_rct(int rows, int cols, int type, LPMat *_Mat)
|
|||
|
{
|
|||
|
*_Mat = new TMat(rows,cols,type);
|
|||
|
if (*_Mat)
|
|||
|
{
|
|||
|
(*_Mat)->AddRef();
|
|||
|
return S_OK;
|
|||
|
}
|
|||
|
else
|
|||
|
return E_NOINTERFACE;
|
|||
|
}
|