<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
How do I change the orientation of a 3D image. This is the code segment I have but I get the following error:<br><br>std::cout<< "Direction is " << reader1->GetOutput()->GetDirection() <<std::endl ;<br>reader1->GetOutput()->SetDirection(0, {1,0,0} );<br>reader1->GetOutput()->SetDirection(1, {0,-1,0} );<br>reader1->GetOutput()->SetDirection(2, {0,-1,0} );<br>std::cout<< "New direction is " << reader1->GetOutput()->GetDirection() <<std::endl ;<br><br><br>[100%] Building CXX object CMakeFiles/rsf.dir/rsf.o<br>/home/shoosh/Desktop/CSF/rsf/rsf.cxx: In function int main(int, char**):<br>/home/shoosh/Desktop/CSF/rsf/rsf.cxx:105: error: expected primary-expression before { token<br>/home/shoosh/Desktop/CSF/rsf/rsf.cxx:106: error: expected primary-expression before { token<br>/home/shoosh/Desktop/CSF/rsf/rsf.cxx:107: error: expected primary-expression before { token<br>make[2]: *** [CMakeFiles/rsf.dir/rsf.o] Error 1<br>make[1]: *** [CMakeFiles/rsf.dir/all] Error 2<br>make: *** [all] Error 2<br><br><br /><hr />See all the ways you can stay connected <a href='http://www.microsoft.com/windows/windowslive/default.aspx' target='_new'>to friends and family</a></body>
</html>