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&lt;double&gt; TempArray = bsplineTransform-&gt;GetParameters();</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>vnl_vector&lt;double&gt; ImageSizeTempArray = reader-&gt;GetOutput()-&gt;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&gt;..\CreateImageSetBspline.cxx(260) : error C2440: &#39;initializing&#39; : cannot convert from &#39;const itk::Size&lt;VDimension&gt;&#39; to &#39;vnl_vector&lt;T&gt;&#39;</div>
<div>1&gt;        with</div><div>1&gt;        [</div><div>1&gt;            VDimension=3</div><div>1&gt;        ]</div><div>1&gt;        and</div><div>1&gt;        [</div><div>1&gt;            T=double</div><div>1&gt;        ]</div>
<div>1&gt;        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>