[Insight-users] ITK memory allocation exception question
Luis Ibanez
luis.ibanez at kitware.com
Fri Jul 8 12:59:55 EDT 2005
Hi Robert,
This is most likely a problem with the content of
the MetaImage header of the image that you are
trying to read.
Please check the content of the text header file,
and make sure that the binary file is in the same
directory as the text header file.
Regards
Luis
--------------------------
Robert Maroon wrote:
> Hi everyone,
>
> I have an C++ program using ITK that tries to write a
> 1222x1754x256 floating point volume to memory but
> gives the following exception instead:
>
> MetaImage: M_ReadElements: data not read completely
> ideal = -2100137984 : actual = 0
>
> followed later in the algorithm by:
>
> terminate called after throwing an instance of
> 'std::bad_alloc'
> what(): St9bad_alloc
> Aborted
>
> There is a total of 32GB of memory on the machine, and
> the total amount of memory used by the volume should
> be approximately 2 GB.
>
> Can anyone tell me why this exception is usually
> thrown?
>
> Thanks,
>
> Robert
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> _______________________________________________
> 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