<div dir="ltr">We also adjusted the range of the data when we converted it to make the best use of the unsigned char range. We did something like take a look at the min max data range before converting and then map that into 0 to 255.<div><br></div><div>Thanks</div><div>Ken</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 18, 2015 at 11:09 PM, Aashish Chaudhary <span dir="ltr"><<a href="mailto:aashish.chaudhary@kitware.com" target="_blank">aashish.chaudhary@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi can you send me your data and your changes may be? <div><br></div><div>- Aashish</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 18, 2015 at 10:57 PM, 邓卓夫 <span dir="ltr"><<a href="mailto:dzfowen@qq.com" target="_blank">dzfowen@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hello developers,</div><div><br></div><div> Following your instructions, the VolumeRender can read the nrrd file, but when I run the program it came out 2 errors:</div><div><br></div><div> <b style="font-family:Menlo;font-size:11px">ERROR: In /Users/dzf/Desktop/VTK/Rendering/OpenGL2/vtkOpenGLPolyDataMapper2D.cxx, line 850</b></div>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><b>vtkOpenGLPolyDataMapper2D (0x7fe288f404a0): failed after RenderOverlay 1 OpenGL errors detected</b></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><b> 0 : (1286) Unknown error</b></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><b></b><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><b></b><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><b>ERROR: In /Users/dzf/Desktop/VTK/Rendering/OpenGL2/vtkTextureObject.cxx, line 554</b></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><b>vtkTextureObject (0x7fe28988f530): failed at glBindTexture(0) 1 OpenGL errors detected</b></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><b> 0 : (1286) Unknown error</b></p><div><div><br></div><div> Wait maybe 20 seconds, the app can run and the model can display but interaction has almost no reaction, especially the 3d image quality is very low, all of these are not accepted and dislike the demo vedio on the web. So why the result is very bad and there are two errors. I did not modify the original code, some difference is I only convert the nrrd file into unsigned char type not modify the resolution as I did not know how to use 3d slicer very well.</div><div><br></div><div> Thank you for your helps!</div><div><br></div><div>Bob</div><div style="font-size:12px;font-family:Arial Narrow;padding:2px 0 2px 0">------------------ 原始邮件 ------------------</div><div style="font-size:12px;background:#efefef;padding:8px"><div><b>发件人:</b> "Aashish Chaudhary";<<a href="mailto:aashish.chaudhary@kitware.com" target="_blank">aashish.chaudhary@kitware.com</a>>;</div><div><b>发送时间:</b> 2015年11月19日(星期四) 凌晨2:57</div><div><b>收件人:</b> "Cory Quammen"<<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>>; </div><div><b>抄送:</b> "邓卓夫"<<a href="mailto:dzfowen@qq.com" target="_blank">dzfowen@qq.com</a>>; "vtkusers"<<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>>; </div><div><b>主题:</b> Re: [vtkusers] About the example--vtk for iOS VolumeRender</div></div><div><div><div><br></div><div dir="ltr">You can ignore the second error that just resulted from the fact that reader failed to load the file. If you follow Cory's suggestion, hopefully it will work for you. <div><br></div><div>Thanks,</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 18, 2015 at 1:06 PM, Cory Quammen <span dir="ltr"><<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The VTK Nrrd reader may not be able to read compressed NRRD files. Try to convert it to a non-compressed NRRD file by opening it in Slicer and then saving it with the compression option turned off.<div><br></div><div>- Cory</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Wed, Nov 18, 2015 at 12:03 PM, 邓卓夫 <span dir="ltr"><<a href="mailto:dzfowen@qq.com" target="_blank">dzfowen@qq.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div>Hi developers,</div><div><br></div><div> I try to build the latest vtk for iOS example VolumeRender, compiling is ok. However when I run the project with the data file CT-chest.nrrd which is downloaded from 3D slicer web and converted into 8 unsigned char and 256*256*130 format, the Xcode came out 2 errors:</div><div><br></div><div> <b style="font-family:Menlo;font-size:11px">ERROR: In /Users/dzf/Desktop/VTK/IO/Image/vtkNrrdReader.cxx, line 337</b></div>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><b>vtkNrrdReader (0x7f9e8b821370): CT-chest.nrrd is not a nrrd file.</b></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><b></b><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><b> ERROR: In /Users/dzf/Desktop/VTK/Common/ExecutionModel/vtkExecutive.cxx, line 784</b></p>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><b>vtkCompositeDataPipeline (0x7f9e8b821e50): Algorithm vtkNrrdReader(0x7f9e8b821370) returned failure for request: vtkInformation (0x7f9e8b823530)</b></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><b> Debug: Off</b></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><b> Modified Time: 8501</b></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><b> Reference Count: 1</b></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><b> Registered Events: (none)</b></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><b> Request: REQUEST_INFORMATION</b></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><b> FORWARD_DIRECTION: 0</b></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><b> ALGORITHM_AFTER_FORWARD: 1</b></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><b><br></b></p><p style="margin:0px;line-height:normal">1 error: why Xcode assumed that the file is not nrrd file, it is strange maybe I had mistakes to convert the original nrrd file into proper one with 3d Slicer?</p><p style="margin:0px;line-height:normal"><br></p><p style="margin:0px;line-height:normal">2 error:I can not understand.</p><p style="margin:0px;line-height:normal"><br></p><p style="margin:0px;line-height:normal">Thanks for your reply!</p><p style="margin:0px;line-height:normal"><br></p></blockquote><p style="margin:0px;line-height:normal"> Bob</p><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><p style="margin:0px;line-height:normal"><br></p></blockquote><br></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</font></span></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div><div dir="ltr"><font face="trebuchet ms, sans-serif"><i>| Aashish Chaudhary <br>| Technical Leader <br>| Kitware Inc. <br></i></font><div><i><font face="trebuchet ms, sans-serif">| </font><a href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i></div></div></div>
</font></span></div></div></div></div></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><font face="trebuchet ms, sans-serif"><i>| Aashish Chaudhary <br>| Technical Leader <br>| Kitware Inc. <br></i></font><div><i><font face="trebuchet ms, sans-serif">| </font><a href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i></div></div></div>
</font></span></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br>518 371 3971<div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message.
Thank you.</span></div></div></div>
</div>