AForge.NET

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

How to number blob ID's sequentially?

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

How to number blob ID's sequentially?

Postby rhpillai7986 » Thu Feb 07, 2019 12:38 pm

Hi,

I have a few blobs in a particular pattern, when I process the image, the framework assigns blob ID not in any particular sequence.
How can I manually number the blob ID's from left to right.
rhpillai7986
 
Posts: 1
Joined: Thu Feb 07, 2019 12:33 pm

Re: How to number blob ID's sequentially?

Postby andrew.kirillov » Thu Feb 07, 2019 1:43 pm

Hello,

You can try setting ObjectsOrder property, to specify blobs' order you want.
With best regards,
Andrew


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

Re: How to number blob ID's sequentially?

Postby actopozipc » Tue Feb 26, 2019 11:59 am

If it doesn't bother your code you can make an array of blobs, sort them by ID and just swap the whole blob objects.
actopozipc
 
Posts: 2
Joined: Tue Feb 26, 2019 10:48 am

Re: How to number blob ID's sequentially?

Postby andrew.kirillov » Tue Feb 26, 2019 12:16 pm

actopozipc wrote:If it doesn't bother your code you can make an array of blobs, sort them by ID and just swap the whole blob objects.

Do you understand what you just said?
With best regards,
Andrew


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




Return to AForge.NET Framework