Guest User

Untitled

a guest
Nov 17th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. // ITK
  2. //#include "itkIndex.h"
  3.  
  4. #include <iostream>
  5.  
  6. namespace itk
  7. {
  8. template <unsigned int N>
  9. struct Index
  10. {
  11. long coords[N];
  12. };
  13. }
  14. int main(int, char* [] )
  15. {
  16.  
  17. // itk::Index<2> index = {{5, -3}};
  18. itk::Index<2> index;
  19. index.coords[0] = 5;
  20. index.coords[1] = -3;
  21.  
  22. std::cout << index.coords[0];
  23.  
  24. return 0;
  25. }
Add Comment
Please, Sign In to add comment