I would like to know how I can get some input and put them in more than one line in the cell array I am ... I basically want an array which ever updates one input per line in the loop. The loop is omitted 30 times, so I have to keep 30 rows and 2 columns (x and y columns)
I have this code:
N = 1 To: 30 . Binary = whitebell (blackwit); S = fieldpropops (binary, 'centroid'); Centroids = Cat (1, S. Controy); Grip (IMGAC, 'On') plot (IMGCA, Centroids (1,1), Centroids (1,2), 'R *'). .
I do not think this does what I want ... only the first line is updated in my loop .. So how can I create this cell array?
If you want more information, please let me know and I will update it immediately.
Thank you!
I think you want to store centrosides in this case, you have centroids ( N, :) = should use the cat ...
. Apart from this, @ High Prefixes says in the form of Mark, you should apply the array.
centroids = zeros (30,2); % # It considers the image as 1 centroid for N = 1: 30. . Binary = whitebell (blackwit); S = fieldpropops (binary, 'centroid'); Centroids (N, :) = Cat (1, S. Cont.); Grip (IMG, 'On') Plot (IMGCA, Centroids (N, 1), Centroids (N, 2), 'R *'). . . End
Comments
Post a Comment