AForge.NET

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

How can ı do morphology filters?

The forum is to discuss topics related to different areas of image processing and computer vision.

How can ı do morphology filters?

Postby ismail_ahmet » Sat Dec 03, 2016 12:55 pm

Hello ;
I'm sorry for my bad english :cry:
I try image processing program but i cant writing binaryerosion3x3 filters? how can i do?
ismail_ahmet
 
Posts: 12
Joined: Sat Dec 03, 2016 12:45 pm

Re: How can ı do morphology filters?

Postby andrew.kirillov » Sat Dec 03, 2016 3:26 pm

Hello,

Not sure what is the issue you have, but maybe this will help: BinaryErosion3x3.
With best regards,
Andrew


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

Re: How can ı do morphology filters?

Postby ismail_ahmet » Sat Dec 03, 2016 4:57 pm

andrew.kirillov wrote:Hello,

Not sure what is the issue you have, but maybe this will help: BinaryErosion3x3.

Code: Select all
Bitmap image = new Bitmap(pictureBox1.Image);
            BinaryErosion3x3 filter = new BinaryErosion3x3();
            filter.Apply(image);
            pictureBox2.Image = image;

it doesn't work. Error message "Additional information: Source pixel format is not supported by the filter." how i mixed this error?
ismail_ahmet
 
Posts: 12
Joined: Sat Dec 03, 2016 12:45 pm

Re: How can ı do morphology filters?

Postby andrew.kirillov » Sun Dec 04, 2016 8:32 am

It tells you what the problem is. I will let you to investigate this - good learning curve.

Check documentation, it clearly tells what is the expected pixel format. Check what is the pixel format of the image you have. If those don't match, then it is you who don't work, not the code.
With best regards,
Andrew


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

Re: How can ı do morphology filters?

Postby ismail_ahmet » Sun Dec 04, 2016 12:50 pm

andrew.kirillov wrote:It tells you what the problem is. I will let you to investigate this - good learning curve.

Check documentation, it clearly tells what is the expected pixel format. Check what is the pixel format of the image you have. If those don't match, then it is you who don't work, not the code.

Code: Select all
Bitmap bla = AForge.Imaging.Image.Clone(new Bitmap(pictureBox1.Image),PixelFormat.Format8bppIndexed);

I write this for convert but it isn't right. Are you tell me right code for me?
ismail_ahmet
 
Posts: 12
Joined: Sat Dec 03, 2016 12:45 pm

Re: How can ı do morphology filters?

Postby andrew.kirillov » Mon Dec 05, 2016 8:40 am

So did you check documentation? Is it clear for you what you are trying to do?

1) You need to use Grayscale to turn color image into grayscale.
2) You can use Threshold to turn your image into black and white - binary image which is what BinaryErosion3x3 wants.
With best regards,
Andrew


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

Re: How can ı do morphology filters?

Postby ismail_ahmet » Tue Dec 06, 2016 12:26 pm

andrew.kirillov wrote:So did you check documentation? Is it clear for you what you are trying to do?

1) You need to use Grayscale to turn color image into grayscale.
2) You can use Threshold to turn your image into black and white - binary image which is what BinaryErosion3x3 wants.


It took me a long time to understand because my english is bad. now ı understand this good library thank you man ...
ismail_ahmet
 
Posts: 12
Joined: Sat Dec 03, 2016 12:45 pm

Re: How can ı do morphology filters?

Postby ismail_ahmet » Wed Dec 07, 2016 12:54 pm

which imaging filters use for region growing?
ismail_ahmet
 
Posts: 12
Joined: Sat Dec 03, 2016 12:45 pm

Re: How can ı do morphology filters?

Postby andrew.kirillov » Wed Dec 07, 2016 3:57 pm

You can check if Dilatation fits your purpose.
With best regards,
Andrew


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

Re: How can ı do morphology filters?

Postby ismail_ahmet » Thu Dec 15, 2016 10:58 pm

how i can make rgb to hsv?
ismail_ahmet
 
Posts: 12
Joined: Sat Dec 03, 2016 12:45 pm



Next

Return to Image Processing and Computer Vision

cron