PARP Research Group | Universidad de Murcia |
src/qvip/qvimage.cpp File ReferenceFile from the QVision library. More... #include <QDebug> #include <QVImage> #include <iostream> #include <qvipp.h> Go to the source code of this file.
Detailed DescriptionFile from the QVision library. Definition in file qvimage.cpp. Define Documentation
Value:
template <> QVImage<TYPE, C>::QVImage(const IplImage *iplImage):QVGenericImage() \ { \ if (iplImage->nChannels != C) \ qWarning("Conversion from incompatible OpenCV image: incompatible channel number"); \ if (iplImage->depth != DEPTH) \ qWarning("Conversion from incompatible OpenCV image: incompatible depth"); \ \ /*std::cout << "BBB" << std::endl;*/ \ imageBuffer = new QVImageBuffer<TYPE>(C*iplImage->width, iplImage->height /*align(C*iplImage->width,4)*/); \ setROI(0, 0, iplImage->width, iplImage->height); \ step_div_type_size = getStep()/sizeof(TYPE); \ setAnchor(0, 0); \ \ const int lineSize = getCols() * C; /* This depends on data size */ \ \ for (uInt y=0 ;y<getRows(); y++) \ memcpy(getWriteData() + getStep() * y, iplImage->imageData + iplImage->widthStep*y, lineSize); \ }
Definition at line 501 of file qvimage.cpp. |