[C#]
using (Bitmap bm = (Bitmap)Bitmap.FromFile(Server.MapPath("rez/ryk-naves-4Q6kXLAKK_Y-unsplash.jpg"))) {
Effects.Laplacian(bm, 0.8);
bm.Save(Server.MapPath("IG8_Effects_Laplacian1.jpg"));
}
using (Bitmap bm = (Bitmap)Bitmap.FromFile(Server.MapPath("rez/ryk-naves-4Q6kXLAKK_Y-unsplash.jpg"))) {
Effects.Laplacian(bm, 1.6);
bm.Save(Server.MapPath("IG8_Effects_Laplacian2.jpg"));
}
using (Bitmap bm = (Bitmap)Bitmap.FromFile(Server.MapPath("rez/ryk-naves-4Q6kXLAKK_Y-unsplash.jpg"))) {
Effects.Laplacian(bm, 3.2);
bm.Save(Server.MapPath("IG8_Effects_Laplacian3.jpg"));
}
Here we apply a Laplacian edge detection filter using different
radii. Ouput files are shown below.
ryk-naves-4Q6kXLAKK_Y-unsplash.jpg
IG8_Effects_Laplacian1.jpg
IG8_Effects_Laplacian2.jpg
IG8_Effects_Laplacian3.jpg
|