Can't read MatND (Bug #285)
Description
The Python bindings lack support for reading MatNDs, while writing works. I added the following two lines to interfaces/python/cv.cpp:
@@ -2392,6 +2392,8 @@ return FROM_IplImagePTR((IplImage*)r); else if (strcmp(t->type_name, "opencv-matrix") == 0) return FROM_CvMat((CvMat*)r); + else if (strcmp(t->type_name, "opencv-nd-matrix") == 0) + return FROM_CvMatNDPTR((CvMatND*)r); else if (strcmp(t->type_name, "opencv-haar-classifier") == 0) return FROM_CvHaarClassifierCascade((CvHaarClassifierCascade*)r); else {
History
Updated by James Bowman almost 15 years ago
Awesome. Thanks for the patch.
Applied in r3024, along with regression test in test_Save.
- (deleted custom field) set to fixed