Previous topic

contrast

Next topic

wContour

This Page

emboss

mipylib.imagelib.filter.emboss(src, azimuth=135, elevation=30, emboss=False, bh=1)

This filter will emboss an image.

Parameters:
  • src – (image) Source image.
  • azimuth – (float) Azimuth of the light source.
  • elevation – (float) Elevation of the light source.
  • emboss – (boolean) Emboss or not.
  • bh – (float) Bump height.
Returns:

Destination image.

Example:

Image emboss:

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.emboss(lena)
imshow(lena_1)
../../../../_images/image_emboss2.png