From documentation, the MatND actually is Mat. I want to use it as a N-Way array(tensor). Even the api provide constructor to build an empty MatND, the documentation didn't give a way to build MatND form Mat or set MatND use Mat. Is there a way to easily set MatND or build MatND from Mat without per element operation.
From the doc: "MatND is now obsolete; consider using Mat instead." That being said, I was able to run this with no problem (is this what you are asking?):
MatND test;
while ((int)key != 27) {
capture >> frame;
test = MatND(frame);
imshow("test", test);
key = waitKey(1);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With