A fix to a previous fix - OpenCV does not handle Debug/Release mixing with writing out ,jpeg and .png files, so use .bmp instead

This commit is contained in:
Tadas Baltrusaitis 2016-07-31 10:09:35 -04:00
parent a62de100e4
commit bb7ba5ba60
1 changed files with 2 additions and 6 deletions

View File

@ -615,19 +615,15 @@ int main (int argc, char **argv)
char name[100];
// output the frame number
std::sprintf(name, "frame_det_%06d.jpg", frame_count);
std::sprintf(name, "frame_det_%06d.bmp", frame_count);
// Construct the output filename
boost::filesystem::path slash("/");
std::string preferredSlash = slash.make_preferred().string();
vector<int> compression_params;
compression_params.push_back(CV_IMWRITE_JPEG_QUALITY);
compression_params.push_back(100);
string out_file = output_similarity_align[f_n] + preferredSlash + string(name);
imwrite(out_file, sim_warped_img, compression_params);
imwrite(out_file, sim_warped_img);
}