|
|
|
|
Page 1 of 1
|
[ 2 posts ] |
|
how to loop through a list of blobs?
Author |
Message |
AndreiRT
Joined: 15 Apr 2008, 22:27 Posts: 13
|
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 1174 times
|
18 Apr 2008, 14:55 |
|
|
paolo
Joined: 21 Mar 2008, 22:35 Posts: 131
|
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 |
|
|
|
Page 1 of 1
|
[ 2 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 13 guests |
|
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
|
|
|
|