Remove compression, update benchmarks

This commit is contained in:
2025-12-13 16:09:08 -05:00
parent 9d49f3e90b
commit 2030e174a2
3 changed files with 35 additions and 9 deletions

View File

@@ -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;