/CS474-Project-1

Image Quantization, Histogram Specification image transformation

Primary LanguageC++

CS474-Project-1

Description

This repository implements Image Quantization and Histogram Specification image transformation to study their impacts on image quality. Only .PGM format files are supported.

Only instructions for Linux provided.

Building

Q2 and Q4 may be built using Cmake, or the provided makefile.

Build Using Cmake:

Create a build directory (recommended) in the project folder.

mkdir build
cd build/
cmake ..
make all

Running Q2

In the newly-created build directory:

./CS474 -in image_directory -out output_directory
  • Replace image_directory with the path to the desired .PGM image you wish to convert. Multiple input images may be specified.

  • Replace output_directory with the desired output directory. New files will be automatically named, and placed there. Only the first output directory will be considered as of now. Specifying no output will place the files in the directory with the program.

Running Q4

In the newly-created build directory:

./CS474 -in image_directory -spec specifier_directory -out output_directory
  • Replace image_directory with the path to the desired .PGM image you wish to convert. Multiple input images may be specified, but MUST HAVE A SPECIFIED IMAGE FOR EACH INPUT IMAGE.

  • Replace specifier_directory with the path to the desired .PGM image you wish to use to generate the specified histogram. Must have a specified image per input image.

  • Replace output_directory with the desired output directory. New files will be automatically named, and placed there. Only the first output directory will be considered as of now. Specifying no output will place the files in the directory with the program.