<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.&nbsp; This is the code segment I have but I get the following error:<br><br>std::cout&lt;&lt; "Direction is " &lt;&lt; reader1-&gt;GetOutput()-&gt;GetDirection() &lt;&lt;std::endl ;<br>reader1-&gt;GetOutput()-&gt;SetDirection(0, {1,0,0} );<br>reader1-&gt;GetOutput()-&gt;SetDirection(1, {0,-1,0} );<br>reader1-&gt;GetOutput()-&gt;SetDirection(2, {0,-1,0} );<br>std::cout&lt;&lt; "New direction is " &lt;&lt; reader1-&gt;GetOutput()-&gt;GetDirection() &lt;&lt;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>