Skip to content

bahadirkisbet/CENG477_testers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

CENG477 Testers

HW1

The program iterates over the pixels and change the color of the pixels that are different in source image and target image.

python3 hw1_tester.py source_image target_image comparison_output blended_output epsilon color 

where source_image is the sample scene, ( Example: ../sample_scenes/outputs/bfc_on/monkey.ppm)
target_image is the result of your code, ( Example outputs/monkey.ppm)
comparison_output is the result image that has been colored by the color given by the user
blended_output is the result image that has been colored by the difference of errorenous pixels
epsilon is the acceptable int range for a pixel to be considered the same ( Exmaple: (255,255,255) == (255,254,254) )
color is the color preferred by the user in order to change the color of different pixels in the source and target files

Color Options = [white, yellow, cyan, green, magenta, red, blue, black] or specified by the user with three integer.

Example Run

python3 tester.py test/simple_reflectance.ppm test/bfc_off_simple_reflectance.ppm comparison_image.ppm blended_image.ppm 5 cyan

Example Output

comparison_result blended_result

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages