[Insight-users] Allocation problem
Diego Persano
persano at isi.it
Fri Aug 31 12:25:12 EDT 2007
Hi Diego,
According to your description, your image is about 2.7 GB.
This could be the problem, see this:
http://public.kitware.com/pipermail/insight-users/2005-April/012863.html
Diego
On Fri, 31 Aug 2007, THOMAS Diego wrote:
> Hi,
>
> I would like to create a (1551*1551*601) 3D image of unsigned short,
> but i have run time error during the execution when i try to allocate memory.
> It worked with smaller images, so is it possible to create such an image with itk?
>
> thanks in advance,
>
> Diego
>
> here is my code :
>
> Image3D::Pointer data = Image3D::New();
> Image3D::RegionType Region;
> Image3D::SizeType size;
> size[0] = 1551;
> size[1] = 1551;
> size[2] = 601;
> Region.SetSize(size);
> Image3D::IndexType start;
> start[0] = 0;
> start[1] = 0;
> start[2] = 0;
> Region.SetIndex(start);
> data->SetRegions(Region);
> std::cout << "allocation" << endl; //message displayed
> data->Allocate();
> std::cout << "allocate" << endl; //message not displayed
> __________________________
>
> Ce message (et toutes ses pièces jointes éventuelles) est confidentiel et établi à l'intention exclusive de ses destinataires. Toute utilisation de ce message non conforme à sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'IFP décline toute responsabilité au titre de ce message.
>
> This message and any attachments (the message) are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. IFP should not be liable for this message.
>
> Visitez notre site Web / Visit our web site : http://www.ifp.fr
> __________________________
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
More information about the Insight-users
mailing list