AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

Extracting blob

Forum to discuss Image Processing Lab (IPLab) application, its features, etc.

Extracting blob

Postby christina wie » Fri Feb 17, 2012 9:20 am

hello i want to extract blobs of a specific width and height which is 5 as i specify in bc.minwidth...but when i display image after calling bc.extractimage...i get the original image i-e no blobs are extracted and i get the image as it was i have red the documentation ...pls pls m a begiiner help me out....."image" is my main bitmap i-e it stores the image i load say from my hard drive .pls pls m a beginner help me out
Code: Select all
BlobCounterBase bc = new BlobCounter();
            // set filtering options
            bc.FilterBlobs = true;
            bc.MinWidth = 5;
            bc.MinHeight = 5;
            // set ordering options
            bc.ObjectsOrder = ObjectsOrder.Size;
            // process binary image
            bc.ProcessImage(image);
            Blob[] blobs = bc.GetObjectsInformation();
           // extract the biggest blob
            if (blobs.Length > 0)
            {
                bc.ExtractBlobsImage(image, blobs[0], true);
                pictureBox2.Image = image;
christina wie
 
Posts: 52
Joined: Fri Jul 01, 2011 6:48 am

Re: Extracting blob

Postby andrew.kirillov » Fri Feb 17, 2012 9:28 am

Hello,

Of course you will get original image, because you actually display the original, not the one which was extracted for a blob. Check documentation a bit more and find that blob has image property - this is the one you need to display.
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3450
Joined: Fri Jan 23, 2009 9:12 am
Location: UK

Re: Extracting blob

Postby christina wie » Fri Feb 17, 2012 12:21 pm

hello
ok i get you Blob has image property.....alright i am going to search for it but...what actually stores the extracted blob could you be a little more specific on what i should actually(exactly look) search am probably irritating you but as i said i am just beginner and most of the things are new to me in this field and i want to excel in this field...:P
christina wie
 
Posts: 52
Joined: Fri Jul 01, 2011 6:48 am

Re: Extracting blob

Postby andrew.kirillov » Fri Feb 17, 2012 12:45 pm

Hmm ... confused :? I though you read documentation, as you said. Here is a list of Blob's properties.
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3450
Joined: Fri Jan 23, 2009 9:12 am
Location: UK

Re: Extracting blob

Postby christina wie » Fri Feb 17, 2012 7:40 pm

Hello
Andrew i am done with this thank you so much and i am now getting along nicely with AForge and playing around blobs and i hope that i can count on you in future Thanks once again the key was reading documentation properly....:)
christina wie
 
Posts: 52
Joined: Fri Jul 01, 2011 6:48 am

Re: Extracting blob

Postby riyak » Sat Feb 16, 2013 7:07 am

Hello m a beginner in AForge.NET . I have done the noise removal nd d edge detection part in my prjct nw i need to extract the objects in the image one by one nd save dem. I m finding problem in dis part hw cn i extract the objects frm d image???????plz help me ...............i hve attached the image fr reference...........thnk u in advance.............
Attachments
hi.jpg
reference image
hi.jpg (34.71 KiB) Viewed 17934 times
riyak
 
Posts: 1
Joined: Sat Feb 16, 2013 6:51 am




Return to IPLab