Skip to content

Commit

Permalink
fix cmake + image io
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvano Galliani committed Dec 3, 2015
1 parent f113a13 commit 6853a95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ cuda_add_executable(
algorithmparameters.h
cameraparameters.h
linestate.h
groundTruthUtils.h
displayUtils.h
mathUtils.h
fileIoUtils.h
Expand Down
6 changes: 3 additions & 3 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -660,11 +660,11 @@ static int runFusibile (int argc,
//char outputPath[256];
//sprintf(outputPath, "%s.png", id_string);

if( access( (id_string + ".png").c_str(), R_OK ) != -1 )
if( access( (inputFiles.images_folder + id_string + ".png").c_str(), R_OK ) != -1 )
inputFiles.img_filenames.push_back((id_string + ".png"));
else if( access( (id_string + ".jpg").c_str(), R_OK ) != -1 )
else if( access( (inputFiles.images_folder + id_string + ".jpg").c_str(), R_OK ) != -1 )
inputFiles.img_filenames.push_back((id_string + ".jpg"));
else if( access( (id_string + ".ppm").c_str(), R_OK ) != -1 )
else if( access( (inputFiles.images_folder + id_string + ".ppm").c_str(), R_OK ) != -1 )
inputFiles.img_filenames.push_back((id_string + ".ppm"));
}
size_t numImages = inputFiles.img_filenames.size ();
Expand Down

0 comments on commit 6853a95

Please sign in to comment.