[vtkusers] Problem in loading big images using vtkimagereader

Michael Jackson mike.jackson at bluequartz.net
Tue Aug 10 13:42:00 EDT 2010


Are you able to run your code/data on a 64 bit Linux/OSX box to see if  
it works there? I have a theory but it may be a bad theory based off a  
very casual look at vtkImageReader2.cxx file

Mike Jackson

On Aug 10, 2010, at 1:27 PM, Arunachalam Kana wrote:

> Hi Michael,
>
> 	My system is a 64bit with windows xp. I used cmake to generate  
> visual studio project for
> Vtk. I generated the projects using option "visual studio 9 2008  
> Win64". So i think the vtk libraries are also built for 64 bit  
> machine.
>
> Kana.
>
> -----Original Message-----
> From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On  
> Behalf Of Michael Jackson
> Sent: 10 August 2010 18:42
> To: VTK Users
> Subject: Re: [vtkusers] Problem in loading big images using  
> vtkimagereader
>
> Are you compiling VTK as a 64 bit set of libraries? Possibly sounds
> like there is a 32/64 bit threshold being passed.
>
> ___________________________________________________________
> Mike Jackson                      www.bluequartz.net
> Principal Software Engineer       mike.jackson at bluequartz.net
> BlueQuartz Software               Dayton, Ohio
>
> On Aug 10, 2010, at 11:51 AM, Arunachalam Kana wrote:
>
>> Hi VtkUsers,
>>
>> I have problem in the vtkimagereader2. Following below is the code
>> used to read image.
>>
>> vtkImageReader2 * reader = vtkImageReader2::New();
>>                reader->SetFileName( file.toAscii().data() );
>>                reader->SetDataScalarType( scalarType );
>>                reader->SetHeaderSize( headersize );
>>                reader->SetDataExtent( extent );
>>                reader->SetDataSpacing( spacing );
>>                reader->SetDataOrigin( origin );
>>                reader->SetFileDimensionality( dim );
>>                reader->UpdateWholeExtent();
>>                reader->Update();
>>
>> The code works well when I read an image <= 3Gb(approx). But it does
>> not read the full
>> Image if the image is >= 3Gb. The image data set i handle is > 3Gb.
>>
>> I would like to have  some suggestion to use vtkimagereader and
>> solve this problem.
>>
>> Thank you,
>> Regards,
>> Kana Arunachalam Kannappan
>> Research Associate
>> FH OÖ Forschungs & Entwicklungs GmbH
>> Stelzhamer Strasse 23,
>> 4600 Wels,
>> Austria.
>> Phone: +43 (0)7242 72811 -4420
>> kana.arunachalam at fh-wels.at
>> www.fh-ooe.at; www.3dct.at
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list