Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 1.34 KB

README.md

File metadata and controls

39 lines (24 loc) · 1.34 KB

PPM IMAGE FORMATTER

A simple C program that allows you to modify images with a .ppm extension (only p3 for now).

Compile and run the program in the terminal with one of the options:

# main <path to your input ppm image> -<option> <optional parameter>

-blackwhite

# 0.5 - no changes, < 0.5 - decrease gamma, > 0.5 - increase gamma    
-gamma <intensity (value must be between 0 - 1)>

#  eg. r - only red color, rgb - all colors visible    
-filter <available filters (rgb) and all theirs combinations>

# 0.5 - no changes, < 0.5 - decrease gamma, > 0.5 - increase contrast       
-contrast <intensity (value must be between 0 - 1)>
    

Example usage

Original Photo: image

Black and white filter: image

Filter with rb option: image

Gamma with 0.8 value: image

Contrast with 0.3 value: image