I am having what is follow:
char* imgData;
Scalar scal = cvGet2D(imgData, x, y);
Where Scalar is defined as below:
typedef struct Scalar
{
double val[3];
}
Scalar;
What I want to have a scalar as a result, but without the use of cvGet2D.
How can I implement that?