The following examples show the effect of a Laplacian filter
applied with a number of different settings.
void function() {
using (Doc doc = new Doc()) {
AddImagePage(doc, img3); // original image
doc.Rendering.Save("EffectLaplacian.jpg");
using (ImageLayer layer = AddImagePage(doc, img3)) {
using (EffectOperation effect = new EffectOperation("Laplacian")) {
effect.Parameters["Radius"].Value = 0.8;
effect.Apply(layer.PixMap);
}
}
doc.Rendering.Save("EffectLaplacian08.jpg");
using (ImageLayer layer = AddImagePage(doc, img3)) {
using (EffectOperation effect = new EffectOperation("Laplacian")) {
effect.Parameters["Radius"].Value = 1.6;
effect.Apply(layer.PixMap);
}
}
doc.Rendering.Save("EffectLaplacian16.jpg");
using (ImageLayer layer = AddImagePage(doc, img3)) {
using (EffectOperation effect = new EffectOperation("Laplacian")) {
effect.Parameters["Radius"].Value = 3.2;
effect.Apply(layer.PixMap);
}
}
doc.Rendering.Save("EffectLaplacian32.jpg");
}
}