emboss function

Image emboss(
  1. Image src
)

Apply an emboss convolution filter.

Implementation

Image emboss(Image src) {
  const filter = [1.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.5];

  return convolution(src, filter, div: 1, offset: 127);
}