OpenDTAM icon indicating copy to clipboard operation
OpenDTAM copied to clipboard

A problem when I run the code

Open swordjjy opened this issue 9 years ago • 3 comments

Hi, anuranbaka

I finally can successfully make the whole stuff. However, when I run "./a.out", there is a problem happened as following, here is the result:

[100%] Built target a.out jiayi@jiayi-XPS-L521X:~/Downloads/OpenDTAM/Cpp/Build$ ./a.out Thread Requested: Graphics : Thread Start: 0x7f9512c017000x24ccf50:0x24ccf50

Loading text_file_name = /home/jiayi/Downloads/OpenDTAM/Trajectory_30_seconds/scene_000.txt Reading: scene_000.png text_file_name = /home/jiayi/Downloads/OpenDTAM/Trajectory_30_seconds/scene_001.txt Reading: scene_001.png text_file_name = /home/jiayi/Downloads/OpenDTAM/Trajectory_30_seconds/scene_002.txt Reading: scene_002.png text_file_name = /home/jiayi/Downloads/OpenDTAM/Trajectory_30_seconds/scene_003.txt Reading: scene_003.png (...) text_file_name = /home/jiayi/Downloads/OpenDTAM/Trajectory_30_seconds/scene_047.txt Reading: scene_047.png text_file_name = /home/jiayi/Downloads/OpenDTAM/Trajectory_30_seconds/scene_048.txt Reading: scene_048.png text_file_name = /home/jiayi/Downloads/OpenDTAM/Trajectory_30_seconds/scene_049.txt Reading: scene_049.png using: 1 using: 2 (...) using: 46 using: 47 using: 48 using: 49 using: 50 OpenCV Error: Assertion failed (src1.type() == src2.type()) in scaleAdd, file /home/jiayi/Downloads/opencv-2.4.9/modules/core/src/matmul.cpp, line 2072 terminate called after throwing an instance of 'cv::Exception' what(): /home/jiayi/Downloads/opencv-2.4.9/modules/core/src/matmul.cpp:2072: error: (-215) src1.type() == src2.type() in function scaleAdd

Aborted (core dumped)

I have no idea how to fix it? Do you have any suggestion?

swordjjy avatar Feb 27 '16 23:02 swordjjy

I have opencv-2.4.12 and got the same issue.. please let us know if you figure out the solution

sunghoon031 avatar Mar 22 '16 16:03 sunghoon031

@sunghoon031 did you fixed that? l got the same issue with opencv-2.4.10 and opencv-2.4.13

jakexie avatar Apr 19 '16 08:04 jakexie

comment the code related with D0, since no depth groud truth is provided.

// cout<<"diffN0:"<<sum(abs(D0[cv.fid]-(retcv.depthStep+cv.far)))<<endl; // cout<<"diffN0Med:"<<median(abs(D0[cv.fid]-(retcv.depthStep+cv.far)))<<endl; // pfShow("true Depth", D0[cv.fid], 0, cv::Vec2d(0, cv.near)); // pfShow("diff", D0[cv.fid]-optimizer.depthMap(), 0, cv::Vec2d(-.005,.005)); // cout<<"diff:"<<sum(abs(D0[cv.fid]-optimizer.depthMap()))<<endl; // cout<<"diffMed:"<<median(abs(D0[cv.fid]-optimizer.depthMap()))<<endl;

qintonguav avatar Dec 05 '16 16:12 qintonguav