[Insight-users] changing image orientation
shoosh moosh
babygirl_25 at hotmail.com
Tue Sep 22 10:22:47 EDT 2009
How do I change the orientation of a 3D image. This is the code segment I have but I get the following error:
std::cout<< "Direction is " << reader1->GetOutput()->GetDirection() <<std::endl ;
reader1->GetOutput()->SetDirection(0, {1,0,0} );
reader1->GetOutput()->SetDirection(1, {0,-1,0} );
reader1->GetOutput()->SetDirection(2, {0,-1,0} );
std::cout<< "New direction is " << reader1->GetOutput()->GetDirection() <<std::endl ;
[100%] Building CXX object CMakeFiles/rsf.dir/rsf.o
/home/shoosh/Desktop/CSF/rsf/rsf.cxx: In function ‘int main(int, char**)’:
/home/shoosh/Desktop/CSF/rsf/rsf.cxx:105: error: expected primary-expression before ‘{’ token
/home/shoosh/Desktop/CSF/rsf/rsf.cxx:106: error: expected primary-expression before ‘{’ token
/home/shoosh/Desktop/CSF/rsf/rsf.cxx:107: error: expected primary-expression before ‘{’ token
make[2]: *** [CMakeFiles/rsf.dir/rsf.o] Error 1
make[1]: *** [CMakeFiles/rsf.dir/all] Error 2
make: *** [all] Error 2
_________________________________________________________________
Show them the way! Add maps and directions to your party invites.
http://www.microsoft.com/windows/windowslive/products/events.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090922/9d29a6a4/attachment.htm>
More information about the Insight-users
mailing list