jak prawidłowo powinien wyglądać kod z ExtractBiggestBlob

0
 
  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"

1

image powinien być obiektem klasy System.Drawing.Bitmap, z którego chcesz wyciągnąć największą "plamę".

0

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

1
Bitmap image = new Bitmap("e:\\Gfx\\Kopalnia\\IMG_0139.JPG");
ExtractBiggestBlob filter = new ExtractBiggestBlob();
Bitmap biggestBlobsImage = filter.Apply(image);

1 użytkowników online, w tym zalogowanych: 0, gości: 1