Skip to content

Commit

Permalink
Bug fixed: images shown now after computing the scene flow
Browse files Browse the repository at this point in the history
This new problem must be related to some change in the OpenCV library
  • Loading branch information
MarianoJT88 committed Sep 22, 2017
1 parent 944f20e commit c7f2440
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 3 additions & 2 deletions main_scene_flow_impair.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,13 @@ int main(int num_arg, char *argv[])
bool imloaded = sceneflow.loadRGBDFrames();

if (imloaded == 1)
{
sceneflow.showImages();
{
sceneflow.solveSceneFlowGPU();
sceneflow.showImages();
sceneflow.showAndSaveResults();
sceneflow.freeGPUMemory();
printf("\nPush any key over the scene flow image to finish\n");
cv::waitKey(0);
}

return 0;
Expand Down
4 changes: 0 additions & 4 deletions scene_flow_impair.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,6 @@ void PD_flow_opencv::showImages()
cv::namedWindow("Z2", cv::WINDOW_AUTOSIZE);
cv::moveWindow("Z2",dispx,dispy);
cv::imshow("Z2", depth2);

cv::waitKey(30);
}

bool PD_flow_opencv::loadRGBDFrames()
Expand Down Expand Up @@ -304,8 +302,6 @@ void PD_flow_opencv::showAndSaveResults()
cv::namedWindow("SceneFlow", cv::WINDOW_NORMAL);
cv::moveWindow("SceneFlow",width - cols/2,height - rows/2);
cv::imshow("SceneFlow", sf_image);
cv::waitKey(100000);


//Save the scene flow as a text file
char name[100];
Expand Down

0 comments on commit c7f2440

Please sign in to comment.