[ITK Community] [Insight-users] SimpleITK: GetImageFromArray not working for images larger than 2^32 bytes
Bradley Lowekamp
brad at lowekamp.net
Fri Nov 8 14:05:50 EST 2013
Hello,
There is a bug in the code. I have created an JIRA issue and scheduled it to be in the 0.7.1 patch release:
https://issues.itk.org/jira/browse/SIMPLEITK-424
I should have a patch for it today. If you are not already familiar, I'd recommend building SimpleITK from the git repository and checking out the "next" branch. The bug fix will be in the next branch before the master or release branch.
Brad
On Nov 8, 2013, at 8:34 AM, Marvin Albert <marvin.albert at gmail.com> wrote:
> Hi!
>
> is this the right place for a SimpleITK problem?
>
> I'm using SimpleITK for carrying out transformations on large images within a python environment.
>
> My problem is that when I want to transform python arrays bigger than 2^32 bytes (for example size (1400,1600,2000), uint16) into SimpleITK images, it will complain saying
>
> SimpleITK-0.6.1-py2.6-linux-x86_64.egg_FILES/SimpleITK.pyc in GetImageFromArray(arr, isVector)
> 298 img = Image( z.shape[::-1], id )
> 299
> --> 300 _SimpleITK._SetImageFromArray( z.tostring(), img )
> 301
> 302 return img
>
> RuntimeError: Size mismatch of image and Buffer.
>
> As you can see, I'm using the 64Bit binary of SimpleITK under linux and there shouldn't be a problem right?
>
> Thanks a lot in advance!
> Best,
> Marvin
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
More information about the Community
mailing list