Remove compression, update benchmarks
This commit is contained in:
4
main.cpp
4
main.cpp
@@ -407,10 +407,10 @@ int main(int argc, char** argv) {
|
||||
std::string out = settings.outputPath.empty() ? "output.tif" : settings.outputPath;
|
||||
std::cout << "Saving to " << out << "..." << std::endl;
|
||||
|
||||
// Set compression params for TIFF
|
||||
// Set compression params for TIFF - use no compression for speed
|
||||
std::vector<int> params;
|
||||
params.push_back(cv::IMWRITE_TIFF_COMPRESSION);
|
||||
params.push_back(5); // LZW (equivalent to Zip roughly in OpenCV terms, usually 5 or 1)
|
||||
params.push_back(1); // No compression (30x faster than LZW)
|
||||
|
||||
cv::imwrite(out, img, params);
|
||||
std::cout << "Done." << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user