Image Processing in sage or python ( monadic operations )

Monadic operations are operations that take one particular pixel from input images and map it to pixel in output pixel which is at same location as that of input image according to used function . This done for all pixels in input image according to chossen function. It include operations like -:

1. Brightness -: f(x) = x+n

2. Contrast -:  f(x) = x*n

3. Posterization -: f(x) = n* floor(x/n)

4. Negative-: f(x)= abs(1-n)  (where abs means absolute value of number )

monadic operation on grayscale image

Screenshot from 2015-06-22 11:50:17

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s