1 | initial version |
you could try with a
Mat(80, 90, CV_32FC(9)); // a Mat with 9 channels !
typedef Vec<9,float> Vec9f; // an element of this
Vec9f &p = Mat.at<Vec9f>(4,4);
p[7] = 1.2f;
and rather try to abandon your float*** gradientStrengths
in favor of this.
2 | No.2 Revision |
you could try with a
Mat(80, 90, CV_32FC(9)); // a Mat with 9 channels !
! (you can have up to 512 here)
typedef Vec<9,float> Vec9f; // an element of this
Vec9f &p = Mat.at<Vec9f>(4,4);
p[7] = 1.2f;
and rather try to abandon your float*** gradientStrengths
in favor of this.