Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. slice1obj1coords = find(modelslice==51); //this way I obtain the coordinates of the object in the model so that I can use it on the reconstruction image to get its values
  2. then I would like to have some way of saying
  3. reconslice1obj1 = reconslice1(slice1obj1coords); //this should output all the values for the corresponding coordinates.
  4.  
  5. reconslice1obj1 [array of values];
  6. reconslice1obj2 [array of values];
  7. ...
  8. ..
  9.  
  10. for i = 1:3 //loop over slices
  11. row=1;
  12. for j = 6:8 //loop over objects
  13. cellarray{row} = sprintf("reconslice%dobj%d",i,j) slice(coords);
  14. end
  15. row=row+1; //done this way as it is not always that the slice number starts from 1 sometimes its 100 and so on..
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement