Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

N-dimentional Matrix support

Could you please tell me is there support for n-dim matrix to reflect this Matlab operations:

a = zeros([3 3 5]) - well I know there is Mat::create(int, int*, int)

b = a(2,2,:) - i.e. I would like stack of elements "in depth" of my 3d matrix

c = a(:,2,:) - i.e. I would like this slice of data

s = sum(a,2) - i.e. I would like to sum along dimension 2

I have assumed it is basic types of data processing, but to my surprise at the moment it looks like OpenCV is lacking of these basics. Thanks

N-dimentional Matrix support

Could you please tell me is there support for n-dim matrix to reflect this these Matlab operations:

a = zeros([3 3 5]) - well I know there is Mat::create(int, int*, int)

b = a(2,2,:) - i.e. I would like stack of elements "in depth" of my 3d matrix

c = a(:,2,:) - i.e. I would like this slice of data

s = sum(a,2) - i.e. I would like to sum along dimension 2

I have assumed it is basic types of data processing, but to my surprise at the moment it looks like OpenCV is lacking of these basics. Thanks