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 = imagelib.imread(fn)
subplot(1, 2, 1,aspect='equal', tickline=False)
imshow(lena)
subplot(1, 2, 2, aspect='equal', tickline=False)
lena_1 = imagelib.emboss(lena)
imshow(lena_1)
../../../../_images/image_emboss.png