View unanswered posts | View active topics It is currently 06 Apr 2020, 06:13



Reply to topic  [ 2 posts ] 
how to loop through a list of blobs? 
Author Message

Joined: 15 Apr 2008, 22:27
Posts: 13
Reply with quote
dear eyesweb users,

I am trying to loop through a list of blobs, so I can send, using OSC:

- the number of blobs
- some informations about each blob (baricenter coordinates and area)

But I am having some problems to loop through the list. In the attached patch, I am not using OSC yet, just some ScalarDisplay blocks, but the trial of looping through the list is there. Do you have any ideas about how to achieve that?

thank you,
andrei


Attachments:
File comment: my trial of looping through the list.
deteccao_blobs02.zip [16.6 KiB]
Downloaded 544 times
18 Apr 2008, 14:55
Profile

Joined: 21 Mar 2008, 22:35
Posts: 131
Reply with quote
Currently, there is no simple way to iterate the list, however, in your case, it seems that the maximum number of blobs is known apriori, thus, you could use multiple ListExtract blocks with different indexes.
Alternatively, you can use the SelectMultipleTrackedBlobs to extract the specified number of blobs (ordered by decreasing area).

Paolo


23 Apr 2008, 16:06
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.