Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A problem when I run the code #45

Open
swordjjy opened this issue Feb 27, 2016 · 3 comments
Open

A problem when I run the code #45

swordjjy opened this issue Feb 27, 2016 · 3 comments

Comments

@swordjjy
Copy link

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 swordjjy changed the title A problem when I running the code A problem when I run the code Feb 27, 2016
@sunghoon031
Copy link

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

@jakexie
Copy link

jakexie commented Apr 19, 2016

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

@qintonguav
Copy link

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]-(ret
cv.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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants