Thanks for the response. However, I am still struggling with this. I probably need a much more basic explanation. Sorry.<br><br>I assume that the patches you've provided (greatly appreciated) collate the data in someway in order for me to be able to unpack it? However, I'm not sure that I even understand exactly how 'unpack' and 'route' work, which is obviously a problem!<br>
<br>If anyone can provide a more simplified explanation I would really appreciate it. I'm not that familiar with programming, so layman's terms are all I can manage!<br><br>Thanks<br>Simon<br><br><div class="gmail_quote">
On Sat, Apr 4, 2009 at 2:14 PM, IOhannes m zmoelnig <span dir="ltr"><<a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Simon Ball wrote:<br>
> Hi List<br>
<br>
<br>
hi.<br>
it seems like i received this email multiple times...<br>
<br>
><br>
> However, there are few areas I am still confused about. First of all, I am<br>
> unsure of how to extract muliple co-ordinates from [pix_multiblob]. I<br>
> understand that the data from multiblob is collated within a matrix. I am<br>
> able to see this in the pd window when I print. However, I am unsure how to<br>
> use a matrix. Is there a certain object that I should be sending to from<br>
> [pix_multiblob]? And in turn, how would I convert the matrix into xy<br>
> co-ordinates.<br>
<br>
<br>
there is a separate library dedicated to the kind of matrices output by<br>
[pix_multiblob]; it's called "iemmatrix".<br>
<br>
however, you should have an understanding of matrices in order to use it.<br>
<br>
matrices of this form are simple messages which you can treat like any<br>
other message.<br>
attached are two examples on how to extract the rows of a matrix (and<br>
pix_multiblob will give you one row per blob; so this is interesting<br>
data), one using iemmatrix ([pix_rows]) and one using zexy ([pix_rowz]).<br>
it is left as an exercise for the user to make a pd-vanilla implementation.<br>
<br>
just send the mtx-output of [pix_multiblob] to the object, and you will<br>
get nice lists for each blob, starting with the index of the blob<br>
(zero-based) and then comes the data.<br>
use [route] to filter the relevant blobs and [unpack] to access the data.<br>
<br>
<br>
><br>
> In the archives I found a response to similar a question saying there was a<br>
> gem example with matrix and multiblob, but I can not seem to find it. Any<br>
> idea what and where this is?<br>
><br>
<br>
there's an abstraction called [pix_blobtracker] which uses<br>
[pix_multiblob] and matrix operations to track blobs.<br>
<br>
<br>
><br>
> Hope thats not too many questions. And is it easier for the list if I divide<br>
> questions up (for archive purposes perhaps)?<br>
><br>
<br>
personally i would prefer separate threads for separate questions for<br>
starters. it always ends in confusion, but we could try to delay this...<br>
<br>
<br>
gmsdr<br>
<font color="#888888">IOhannes<br>
</font><br>#N canvas 0 0 552 353 10;<br>
#X obj 153 163 mtx;<br>
#X msg 153 143 col;<br>
#X obj 153 123 t b a b;<br>
#X obj 153 208 list prepend;<br>
#X obj 153 184 t a b;<br>
#X obj 196 185 i;<br>
#X obj 225 187 + 1;<br>
#X msg 214 165 0;<br>
#X obj 153 97 inlet;<br>
#X obj 153 236 outlet;<br>
#X text 72 48 output thw rows of a matrix \, prepended with a (zero-based)<br>
index;<br>
#X text 50 265 depends on [iemmatrix];<br>
#X connect 0 0 4 0;<br>
#X connect 1 0 0 0;<br>
#X connect 2 0 1 0;<br>
#X connect 2 1 0 1;<br>
#X connect 2 2 7 0;<br>
#X connect 3 0 9 0;<br>
#X connect 4 0 3 0;<br>
#X connect 4 1 5 0;<br>
#X connect 5 0 6 0;<br>
#X connect 5 0 3 1;<br>
#X connect 6 0 5 1;<br>
#X connect 7 0 5 1;<br>
#X connect 8 0 2 0;<br>
<br>#N canvas 166 277 450 419 10;<br>
#X msg 176 195 \$2;<br>
#X obj 184 249 repack;<br>
#X obj 144 221 list split 3;<br>
#X obj 184 321 list prepend;<br>
#X obj 144 170 t a a b;<br>
#X obj 184 274 t a b;<br>
#X obj 216 297 i;<br>
#X obj 246 298 + 1;<br>
#X msg 234 276 0;<br>
#X obj 144 145 inlet;<br>
#X obj 184 351 outlet;<br>
#X text 72 108 output thw rows of a matrix \, prepended with a (zero-based)<br>
index;<br>
#X text 50 375 depends on [zexy];<br>
#X connect 0 0 1 1;<br>
#X connect 1 0 5 0;<br>
#X connect 2 1 1 0;<br>
#X connect 3 0 10 0;<br>
#X connect 4 0 2 0;<br>
#X connect 4 1 0 0;<br>
#X connect 4 2 8 0;<br>
#X connect 5 0 3 0;<br>
#X connect 5 1 6 0;<br>
#X connect 6 0 7 0;<br>
#X connect 6 0 3 1;<br>
#X connect 7 0 6 1;<br>
#X connect 8 0 6 1;<br>
#X connect 9 0 4 0;<br>
<br></blockquote></div><br>