[Insight-users] Allocation problem
David Cole
david.cole at kitware.com
Fri Aug 31 12:20:45 EDT 2007
A single image of that size would take ~2.9 G of memory (2 bytes *
1551 * 1551 * 601)...
So - you definitely cannot do it in a 32-bit Windows application.
What OS / architecture are you targeting?
How much RAM can you access?
On 8/31/07, THOMAS Diego <thomas.diego at ifp.fr> 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