Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error DataDepth with Mat_<compobj>

Hello,

I am trying to create this data structure in OpenCV:

typedef Vec2f ScalarComplex;
typedef Vec<ScalarComplex,32> CellPlane;
typedef cv::Mat_<CellPlane> Plane;

But when I try to declarate a variable:

Plane plane

It throws this error:

error : class "cv::DataDepth<ScalarComplex>" has no member "value"
error : class "cv::DataDepth<ScalarComplex>" has no member "fmt"

I think it can't know the depth for the 'ScalarComplex' type but I don't know why because it is a defined OpenCV type.

I was trying to fix it with std:vector (It is possible) but I would prefer to use OpenCV types to get profit from its features and undertand what it is happening ....

Error DataDepth with Mat_<compobj>

Hello,

I am trying to create this data structure in OpenCV:

typedef Vec2f ScalarComplex;
typedef Vec<ScalarComplex,32> CellPlane;
typedef cv::Mat_<CellPlane> Plane;

But when I try to declarate declare a variable:

Plane plane

It throws this error:

error : class "cv::DataDepth<ScalarComplex>" has no member "value"
error : class "cv::DataDepth<ScalarComplex>" has no member "fmt"

I think it can't know the depth for the 'ScalarComplex' type but I don't know why because it is a defined OpenCV type.

I was trying to fix it with std:vector (It is possible) but I would prefer to use OpenCV types to get profit from its features and undertand what it is happening ....