SLIDE 1
Exercise 1: Investigate JPEG Compression
Goals: Investigate the compression efficiency of JPEG for gray-level images Measure and draw Rate-PSNR curves for JPEG (will use as reference later) Preparation
1 Install ImageMagick
(for image conversion and JPEG encoding/decoding)
Many Linux distributions: sudo apt install imagemagick Other Operating Systems: see https://www.imagemagick.org
2 Get and Compile PSNR Tool
(for measuring PSNR between two images)
Get C++ sources (see “psnr-tool”) from course web site or Whiteboard Build the PSNR tool (e.g., using “g++ -o psnr -Ofast main.cpp image.cpp”)
3 Get Example Image in PGM format
(examples for gray-level images)
Get the file “Kodak-Images-PGM(gray).zip” from course web site or Whiteboard Extract the archive: You will get a pgm folder with 24 examples of gray-level images
Heiko Schwarz (Freie Universität Berlin) — Image and Video Coding