<div dir="ltr">Can you try one of the other writers to isolate the problem?<div><br><div><br></div></div></div><div class="gmail_extra"><br clear="all"><div>David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div>
<br><br><div class="gmail_quote">On Thu, Jun 19, 2014 at 8:14 AM, matheus_viana <span dir="ltr"><<a href="mailto:vianamp@gmail.com" target="_blank">vianamp@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Guys, I'd like to know if there is any error in this code below. The code<br>
works fine for small size dataset, but it writes a blank file when the<br>
dataset has more than 2Gb. I'm working on 64bit OSX.<br>
<br>
Thanks a lot.<br>
<br>
int main() {<br>
vtkTIFFReader *TIFFReader = vtkTIFFReader::New();<br>
TIFFReader -> SetDataByteOrderToBigEndian();<br>
TIFFReader -> SetDataExtent(0,0,0,0,0,3959);<br>
TIFFReader -> SetFilePrefix("/Users/matheusviana/Desktop/images/im");<br>
TIFFReader -> SetFilePattern("%s%04d.tif");<br>
TIFFReader -> SetDataScalarTypeToUnsignedShort();<br>
TIFFReader -> Update();<br>
<br>
vtkStructuredPointsWriter *ImageDataWriter =<br>
vtkStructuredPointsWriter::New();<br>
ImageDataWriter -> SetFileType(VTK_BINARY);<br>
ImageDataWriter -> SetInput(TIFFReader -> GetOutput());<br>
ImageDataWriter -> SetFileName("Result.vtk");<br>
ImageDataWriter -> Write();<br>
<br>
return 1;<br>
}<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/vtkStructuredPointsWriter-writes-a-blank-file-tp5727536.html" target="_blank">http://vtk.1045678.n5.nabble.com/vtkStructuredPointsWriter-writes-a-blank-file-tp5727536.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>