Skip to content

This code demonstrates following effects: Luminance effect, Negative effect, Edge detection, Emboss effect, Toon shading, Twirl effect, Ripple effect, Spherical effect.

Notifications You must be signed in to change notification settings

CNimkar/ImageManipulation

Repository files navigation

Image Manipulation

This code demonstrates following effects:

  1. Luminance effect.

luminance

  1. Negative effect.

negative

  1. Edge detection.

edge_detection

  1. Emboss effect.

emboss

  1. Toon shading.

toon

  1. Twirl effect.

twirl

  1. Ripple effect.

ripple

  1. Spherical effect.

spherical

Refer to fshader1.cpp and look for float values mentioned in imageManipulation.cpp Each effect performs various operations on texels and applies calculated fColor.

Key 'O': Display original picture (usain_bolt.bmp) 
I switch all the bool toggles to false
sets effectToggle value to 0.0f in vertex shader

Key 'L': Display picture with Luminance effect (gray scale) 
bool luminance_toggle = true and the rest false
sets effectToggle value to 2.0f in vertex shader


Key 'N': Display image negative 
bool neagtive_toggle = true and the rest false
sets effectToggle value to 1.0f in vertex shader

Key 'D': Display image with edge detection effect 
bool edge_detection = true and the rest false
sets effectToggle value to 3.0f in vertex shader


Key 'E': Display image with embossing effect 
bool emboss_toggle = true and the rest false
sets effectToggle value to 4.0f in vertex shader


Key 'T': Display image with Toon rendering 
bool toon_toggle = true and the rest false
sets effectToggle value to 5.0f in vertex shader


Key 'W': Display image with Twirl Transformation 
bool twirl_toggle = true and the rest false
sets effectToggle value to 6.0f in vertex shader


Key 'P': Display image with Ripple Transformation 
bool ripple_toggle = true and the rest false
sets effectToggle value to 7.0f in vertex shader


Key 'S': Display image with Spherical Transformation 
bool spherical_toggle = true and the rest false
sets effectToggle value to 8.0f in vertex shader

About

This code demonstrates following effects: Luminance effect, Negative effect, Edge detection, Emboss effect, Toon shading, Twirl effect, Ripple effect, Spherical effect.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages