Dear all,<div><br></div><div>I would like to print out the size, origin, direction of an image and the parameters from bsplineTransform without bracket or comma. I want the parameters separated by space. I use the following code and it only works for the transformation parameter.</div>
<div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>vnl_vector<double> TempArray = bsplineTransform->GetParameters();</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>vnl_vector<double> ImageSizeTempArray = reader->GetOutput()->GetLargestPossibleRegion().GetSize();</div>
</div><div><br></div><div>The code in the first line gives me perfect format with parameters separated by space. However the second line give me the following error message:</div><div><br></div><div><div>1>..\CreateImageSetBspline.cxx(260) : error C2440: 'initializing' : cannot convert from 'const itk::Size<VDimension>' to 'vnl_vector<T>'</div>
<div>1> with</div><div>1> [</div><div>1> VDimension=3</div><div>1> ]</div><div>1> and</div><div>1> [</div><div>1> T=double</div><div>1> ]</div>
<div>1> No constructor could take the source type, or constructor overload resolution was ambiguous</div></div><div><br></div><div><br></div><div>Is there someone know the second line does not work? How can I print the size of an image such that parameters are separated by space? (Instead of using loop to print out all elements)</div>
<div><br></div><div>Kind regards,</div><div><br></div><div>Xo</div><div><br></div><div><br></div><div><br></div>