AForge.NET

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

Statistics for partial image using AForge.NET?

Forum to discuss AForge.NET Framework, its features, API, how-tos, etc.

Statistics for partial image using AForge.NET?

Postby Forino » Thu Dec 26, 2019 6:34 pm

I need to get statistics info (for example, standard deviation) for center area of an image. Can someone tell me how to achieve this? Thank you.
Forino
 
Posts: 2
Joined: Thu Dec 26, 2019 6:30 pm

Re: Statistics for partial image using AForge.NET?

Postby andrew.kirillov » Thu Dec 26, 2019 7:34 pm

There is a class in AForge.NET framework to get statistics about an image (check docs). Apply it to the "center" of your image, whatever you mean by it (extract it the way you like).
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: Statistics for partial image using AForge.NET?

Postby Forino » Thu Dec 26, 2019 11:01 pm

The center of the image is in eclipse shape, only the pixels inside the eclipse should count for the standard deviation.

Would you mind to explain a bit more on "Apply it to the "center" of your image"? Does this function accept some kind of filter as a shape?

Or does it mean that I need to make a new image using the center part with a transparent background. I assume that the library will recognize the transparent part and ignore the transparent pixels during the calculation?

Thanks!
Forino
 
Posts: 2
Joined: Thu Dec 26, 2019 6:30 pm




Return to AForge.NET Framework

cron