<div dir="ltr">Dear David,<br><br>many thanks for your effort to help.<br><br>I found the problem: a large amount of memory space was required to generate about 100*3MB for a vector image(100MB for an image (pixeltype of double) and multiply by three for three vector length) .<br>
I use a laptop and maybe it was a problem.<br>so I simply cropped my input image to 60MB and the final size was ~180MB for a vector image.<br><br>if you have something in mind to sharp my observation- please mention it ... I have to change a computer?<br>
any information would be very appreciated!<br><br>Best Regards,<br>Hila<br> <br><br><div class="gmail_quote">On Fri, May 18, 2012 at 6:32 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">> vectorImage->SetVectorLength(vectorLength);<br>
> vectorImage->SetSpacing(vec_spacing);<br>
><br>
> It shouldn't be?:<br>
><br>
><br>
> typedef itk::Image<unsigned short, 3> ImageType;<br>
><br>
> void CreateImage(ImageType* const image)<br>
> {<br>
> ImageType::IndexType start;<br>
> start.Fill(0);<br>
><br>
> ImageType::SizeType size;<br>
> size[0] =202; size[1] =419; size[2] = 157;<br>
><br>
> image->SetSpacing(vec_spacing);<br>
> image->SetRegions(region);<br>
> image->SetVectorLength(vectorLength);<br>
> image->Allocate();<br>
> }<br>
<br>
</div>I was trying to make you an image of your input type:<br>
<div class="im"><br>
typedef itk::Image < pixelType, myDimension > ImageType;<br>
<br>
</div>so that you could try to convert it to the itk::VectorImage that you<br>
want. The spacing shouldn't matter for this (trying to make the<br>
example as simple as possible), and SetVectorLength is something that<br>
you need to do in your conversion code, not in this code to create a<br>
dummy image.<br>
<div class="HOEnZb"><div class="h5">typedef itk::Image < pixelType, myDimension > ImageType;<br>
</div></div></blockquote></div><br></div>