ADVALAIN596 / osm-bundler

Automatically exported from code.google.com/p/osm-bundler
0 stars 0 forks source link

Jpeg Compression Introduces Errors #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1) Run the "RunBundler.py" script with --maxPhotoDimension set to a small 
number.
2) In the generated Bundle out file, all JPEGS are saved with lossy 
compression, and compression artifacts make the results MUCH less accurate when 
compared with images that are resized beforehand using imagemagick for example.

What is the expected output? What do you see instead?
Much fewer, lower quality point clouds result.

To fix, change line 260 in osmbundler/__init__.py:

- photoHandle.save(outputFileNameJpg)
+ photoHandle.save(outputFileNameJpg, quality=100)

Then, although the images get scaled down for the algorithm, the downscaling 
doesn't introduce compression artifacts which significantly improves the 
quality of generated point cloud.

Original issue reported on code.google.com by mghe...@gmail.com on 10 Jan 2012 at 2:46

GoogleCodeExporter commented 8 years ago
Thanks for the comment.
I will update it.

Original comment by pmou...@gmail.com on 11 Jan 2012 at 8:53