Command Line mapstitch issue
Hi,
I am attempting to merge already created and saved maps of two rooms of my lab and getting below error although the two rooms are connected through door passage as is evident from the pgm files of rooms attached herewith. c8ae7f36-1871-11e3-9ee8-efc69eb7ec00.png e4b01bea-1871-11e3-8097-4cce4b2fd663.png
turtlebot@ubuntu:~/fuerte_workspace/sandbox/mapstitch$ bin/mapstitch -o testmerge.pgm -d 1.0 robo_lab2.pgm robo_lab2p2.pgm
OpenCV Error: Bad flag (parameter or structure field) (Unrecognized or unsupported array type) in cvGetMat, file /tmp/buildd/ros-fuerte-opencv2-2.4.2-1precise-20130312-1306/modules/core/src/array.cpp, line 2482
terminate called after throwing an instance of 'cv::Exception'
what(): /tmp/buildd/ros-fuerte-opencv2-2.4.2-1precise-20130312-1306/modules/core/src/array.cpp:2482: error: (-206) Unrecognized or unsupported array type in function cvGetMat
Aborted (core dumped)
I followed few ways as discussed in stackoverflow related to this OpenCV error which could be datatype mismatch or differences in Opencv C or C++ API's but didn't work.
Could anyone please let me know what could be the issue and reason for this error ?
If you consider that the proposed solution is the correct one, you should mark the answer as correct to close the question. Thanks.
Done! Thanks!