ExtractBiggestBlob filter = new ExtractBiggestBlob();
Bitmap biggestBlobsImage = filter.Apply(image);
co powinno się znajdować w "image"?
błąd wyskakuje: "The name 'image' does not exist in the current context"
ExtractBiggestBlob filter = new ExtractBiggestBlob();
Bitmap biggestBlobsImage = filter.Apply(image);
co powinno się znajdować w "image"?
błąd wyskakuje: "The name 'image' does not exist in the current context"
image
powinien być obiektem klasy System.Drawing.Bitmap
, z którego chcesz wyciągnąć największą "plamę".
możesz napisać co dokładnie mam tam napisać? wpisywałem tam już różne rzeczy i dalej wyskakuje błąd.
Bitmap bit = new Bitmap("e:\\Gfx\\Kopalnia\\IMG_0139.JPG");
Bitmap biggestBlobsImage = IFilter.Apply(bit);
An object reference is required for the non-static field, method, or property 'AForge.Imaging.Filters.IFilter.Apply(System.Drawing.Bitmap)'
Bitmap biggestBlobsImage = IFilter.Apply("d:\\1.JPG");
cannot convert from 'string' to 'AForge.Imaging.UnmanagedImage'
Bitmap biggestBlobsImage = IFilter.Apply(System.Drawing.Bitmap("d:\\1.JPG"));
'System.Drawing.Bitmap' is a 'type', which is not valid in the given context
Bitmap image = new Bitmap("e:\\Gfx\\Kopalnia\\IMG_0139.JPG");
ExtractBiggestBlob filter = new ExtractBiggestBlob();
Bitmap biggestBlobsImage = filter.Apply(image);