AForge.NET

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

Coordinates get from BlobCounter is inverted

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

Coordinates get from BlobCounter is inverted

Postby brown11188 » Mon Mar 13, 2017 2:46 am

I'm using BlobCounter class from Aforge.NET and it works very well but today I realize that the coordinate of center gravity is inverted. The y-axis is wrong, the value is counted from top to bottom (y-axis coordinates should be increased from bottom to top). So am I wrong or it is a bug?
brown11188
 
Posts: 7
Joined: Wed Feb 22, 2017 2:38 am

Re: Coordinates get from BlobCounter is inverted

Postby andrew.kirillov » Mon Mar 13, 2017 8:09 am

It is not a bug. Computer screens, same as images, measure their Y coordinate from top to bottom.
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: Coordinates get from BlobCounter is inverted

Postby brown11188 » Tue Mar 14, 2017 3:37 am

Thank you. I got it. :)
brown11188
 
Posts: 7
Joined: Wed Feb 22, 2017 2:38 am




Return to AForge.NET Framework