EyesWeb XMI Forum
http://forum.eyesweb.infomus.org/

how to loop through a list of blobs?
http://forum.eyesweb.infomus.org/viewtopic.php?f=24&t=4
Page 1 of 1

Author:  AndreiRT [ 18 Apr 2008, 14:55 ]
Post subject:  how to loop through a list of blobs?

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 1104 times

Author:  paolo [ 23 Apr 2008, 16:06 ]
Post subject:  Re: how to loop through a list of blobs?

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

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/