Exemplo n.º 1
0
CvMatND cvMatND(const cv::Mat& m)
{
    CvMatND self;
    cvInitMatNDHeader(&self, m.dims, m.size, m.type(), m.data );
    int i, d = m.dims;
    for( i = 0; i < d; i++ )
        self.dim[i].step = (int)m.step[i];
    self.type |= m.flags & cv::Mat::CONTINUOUS_FLAG;
    return self;
}
Exemplo n.º 2
0
CvMatND* cveInitMatNDHeader(CvMatND* mat, int dims, int* sizes, int type, void* data)
{
   return cvInitMatNDHeader(mat, dims, sizes, type, data);
}