added IPP Sobel and Sharr filters. Also some minor changes.

This commit is contained in:
Vladimir Dudnik
2011-01-19 23:27:30 +00:00
parent d3462dfcba
commit c987b9f180
3 changed files with 257 additions and 2 deletions

View File

@@ -168,7 +168,7 @@ inline Mat::Mat(Size _sz, int _type, void* _data, size_t _step)
dataend = datalimit - _step + minstep;
}
inline Mat::Mat(const CvMat* m, bool copyData)
: flags(MAGIC_VAL + (m->type & (CV_MAT_TYPE_MASK|CV_MAT_CONT_FLAG))),
dims(2), rows(m->rows), cols(m->cols), data(m->data.ptr), refcount(0),

View File

@@ -268,6 +268,16 @@ typedef NoVec VXor8u;
#if defined (HAVE_IPP) && (IPP_VERSION_MAJOR >= 7)
struct IPPArithmInitializer
{
IPPArithmInitializer(void)
{
IppStatus status = ippStaticInit();
}
};
IPPArithmInitializer ippArithmInitializer;
struct ippAdd8u
{
int operator()(const Ipp8u* src1, const Ipp8u* src2, Ipp8u* dst, int len) const