[vtkusers] vtkStructuredPointsWriter writes a blank file

matheus_viana vianamp at gmail.com
Thu Jun 19 08:14:10 EDT 2014


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.


More information about the vtkusers mailing list