[vtkusers] vtkStructuredPointsWriter writes a blank file

David E DeMarle dave.demarle at kitware.com
Thu Jun 19 12:22:38 EDT 2014


Can you try one of the other writers to isolate the problem?



David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Thu, Jun 19, 2014 at 8:14 AM, matheus_viana <vianamp at gmail.com> wrote:

> Guys, I'd like to know if there is any error in this code below. The code
> works fine for small size dataset, but it writes a blank file when the
> dataset has more than 2Gb. I'm working on 64bit OSX.
>
> Thanks a lot.
>
> int main() {
>     vtkTIFFReader *TIFFReader = vtkTIFFReader::New();
>     TIFFReader -> SetDataByteOrderToBigEndian();
>     TIFFReader -> SetDataExtent(0,0,0,0,0,3959);
>     TIFFReader -> SetFilePrefix("/Users/matheusviana/Desktop/images/im");
>     TIFFReader -> SetFilePattern("%s%04d.tif");
>     TIFFReader -> SetDataScalarTypeToUnsignedShort();
>     TIFFReader -> Update();
>
>     vtkStructuredPointsWriter *ImageDataWriter =
> vtkStructuredPointsWriter::New();
>     ImageDataWriter -> SetFileType(VTK_BINARY);
>     ImageDataWriter -> SetInput(TIFFReader -> GetOutput());
>     ImageDataWriter -> SetFileName("Result.vtk");
>     ImageDataWriter -> Write();
>
>     return 1;
> }
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/vtkStructuredPointsWriter-writes-a-blank-file-tp5727536.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140619/df90491e/attachment.html>


More information about the vtkusers mailing list