From: Krithika Mohan on
I have the following problem,


centroid1(:,:,1) =

20.9474 289.0000
141.8043 231.8696
243.5556 365.6566
254.1967 32.4918
302.5738 223.8033
319.8929 164.5179
333.0841 486.7850
349.8690 224.7262
359.3548 115.0860
409.5424 160.0508
411.2712 307.5763
461.2328 242.4741
485.4182 458.0182
0 0


centroid1(:,:,2) =

24.4068 292.0678
140.6531 225.3469
239.3889 371.2292
252.9032 31.9839
300.9649 228.7719
327.3548 153.4194
335.9350 487.0488
353.8523 224.6136
357.3736 118.2308
408.7049 162.5574
413.4444 311.6296
457.1869 245.4860
476.1429 453.6032
0 0


centroid1(:,:,3) =

28.5926 289.0741
144.3469 222.5102
238.2746 372.3310
254.0000 31.2424
307.2941 242.8627
336.8306 486.7419
333.2500 141.2738
360.6076 222.6456
408.2381 163.3492
415.8491 310.5472
458.7308 446.6346
466.5875 241.9375
464.4516 263.7097
0 0


centroid1(:,:,4) =

22.4400 277.6400
118.9783 224.1739
239.4014 371.0775
253.3548 31.0806
301.6607 254.4464
325.8621 146.5057
337.1008 485.5966
365.0769 217.2462
408.5738 158.8033
413.3600 309.2200
456.7606 444.3521
467.7647 242.9216
465.3636 263.6970
0 0

Here the data corresponds to the centroid locations of multiple objects on a sequence of images. There are 51 images and roughly 15 objects in each frame. Now , I want to extract the centroid of each of the objects from different frames and put them in separate arrays. , wherein each array is identified by its object number. I am not able to write the right code for this, could some one ps give me some idea, or a rough sketch of the code snippet.
From: Rob Campbell on

> Here the data corresponds to the centroid locations of multiple objects on a sequence of images. There are 51 images and roughly 15 objects in each frame. Now , I want to extract the centroid of each of the objects from different frames and put them in separate arrays. , wherein each array is identified by its object number. I am not able to write the right code for this, could some one ps give me some idea, or a rough sketch of the code snippet.

You might do this with a cell array.