Previous topic

hsb_adjust

Next topic

wContour

This Page

invert

mipylib.imagelib.filter.invert(src)

A filter which inverts the RGB channels of an image.

Parameters:src – (image) Source image.
Returns:Destination image.

Example:

Image invert:

fn = 'D:/Temp/image/Lenna.png'
lena = image.imread(fn)
subplot(1, 2, 1,aspect='equal', tickline=False)
imshow(lena)
subplot(1, 2, 2, aspect='equal', tickline=False)
lena_1 = imfilter.invert(lena)
imshow(lena_1)
../../../../_images/image_invert.png