20 lines
749 B
C#
20 lines
749 B
C#
using DigitalImageProcessing;
|
|
using SkiaSharp;
|
|
|
|
Segmentation.Run1(2);
|
|
Segmentation.Run2();
|
|
|
|
//string testImage = @"C:\Users\Surface\Downloads\" + @"1682575881230001.png";
|
|
////Alograms.Steps(@"C:\Users\Surface\Downloads\", @"C:\Users\Surface\Downloads\" + @"1682575881230001.png");
|
|
|
|
//SKBitmap d = Alograms.GetDefaultBitmap(new(1024, 512));
|
|
|
|
//var noised = Alograms.Noises(d);
|
|
|
|
//using FileStream fs = new(@"C:\Users\Surface\Downloads\" + @"noise.png", FileMode.Create, FileAccess.Write);
|
|
//noised.Encode(fs, SKEncodedImageFormat.Png, 100);
|
|
|
|
//var filtered = Alograms.Filt(d);
|
|
|
|
//using FileStream fs2 = new(@"C:\Users\Surface\Downloads\" + @"filtered.png", FileMode.Create, FileAccess.Write);
|
|
//filtered.Encode(fs2, SKEncodedImageFormat.Png, 100); |