<div>Hi, </div><div><br></div><div> The attachment is the data: 1)download from slicer web 2)decompress the nrrd file 3)convert into unsigned char type</div><div><br></div><div> Also, I ran the iOS VolumeRender example changing if with 1 to execute codes ahead <span style="color: rgb(112, 61, 170); font-family: Menlo; font-size: 11px;">vtkNew</span><span style="font-family: Menlo; font-size: 11px;"><</span><span style="color: rgb(112, 61, 170); font-family: Menlo; font-size: 11px;">vtkRTAnalyticSource</span><span style="font-family: Menlo; font-size: 11px;">> wavelet</span> but it has some problems. The 3d image can display but very poor and almost no interactions, and two errors came out:</div><div><div><span style="font-family: Menlo; font-size: 11px;"></span></div><div><br></div><div><p style="line-height: normal; margin: 0px; font-size: 11px; font-family: Menlo;"><b>ERROR: In /Users/dzf/Desktop/VTK/Rendering/OpenGL2/vtkOpenGLPolyDataMapper2D.cxx, line 850</b></p><p style="line-height: normal; margin: 0px; font-size: 11px; font-family: Menlo;"><b>vtkOpenGLPolyDataMapper2D (0x7feda5132c00): failed after RenderOverlay 1 OpenGL errors detected</b></p><p style="line-height: normal; margin: 0px; font-size: 11px; font-family: Menlo;"><b> 0 : (1286) Unknown error</b></p><p style="line-height: normal; margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><b></b><br></p><p style="line-height: normal; margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><b></b><br></p><p style="line-height: normal; margin: 0px; font-size: 11px; font-family: Menlo;"><b>ERROR: In /Users/dzf/Desktop/VTK/Rendering/OpenGL2/vtkTextureObject.cxx, line 554</b></p><p style="line-height: normal; margin: 0px; font-size: 11px; font-family: Menlo;"><b>vtkTextureObject (0x7feda5133100): failed at glBindTexture(0) 1 OpenGL errors detected</b></p><p style="line-height: normal; margin: 0px; font-size: 11px; font-family: Menlo;"><b> 0 : (1286) Unknown error</b></p><p style="line-height: normal; margin: 0px; font-size: 11px; font-family: Menlo;"><b><br></b></p><p style="line-height: normal; margin: 0px;"> I am so strange that the basic example can not work well maybe not the nrrd file's fault? </p><p style="line-height: normal; margin: 0px; font-size: 11px; font-family: Menlo;"><span style="font-family: Verdana; font-size: 14px;"><br></span></p><p style="line-height: normal; margin: 0px; font-size: 11px; font-family: Menlo;"><span style="font-family: Verdana; font-size: 14px;"><br></span></p><p style="line-height: normal; margin: 0px; font-size: 11px; font-family: Menlo;"><span style="font-family: Verdana; font-size: 14px;"> Thanks a lot! </span></p></div></div><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";<aashish.chaudhary@kitware.com>;</div><div><b>发送时间:</b> 2015年11月19日(星期四) 中午12:09</div><div><b>收件人:</b> "邓卓夫"<dzfowen@qq.com>; <wbr></div><div><b>抄送:</b> "Cory Quammen"<cory.quammen@kitware.com>; "vtkusers"<vtkusers@vtk.org>; <wbr></div><div><b>主题:</b> Re: [vtkusers] About the example--vtk for iOS VolumeRender</div></div><div><br></div><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 class="h5"><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"><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>
</div></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><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>
</div></div><div id=QQMailBigAttach style="padding: 2px; margin-bottom: 15px;background-color:#E0ECF9;width:auto;font-family:Verdana,Arial,Tahoma;font-size:14px;" ><hr style="display:none;" /><div style="text-align:left;padding: 6px 0pt 10px 6px;"><b style="font-size: 14px;"><img border="0" align="absmiddle" style="margin-right:4px;" src="http://res.mail.qq.com/zh_CN/htmledition/images/icon_att.gif"/>从QQ邮箱发来的超大附件</b></div><div style="padding: 0pt 8px 6px 12px;background:#fff;"><div style="clear:both;"><div style="padding:10px 0;font-size:12px;"><div title="CT-chest.nrrd
文件大小:34.75M
到期时间:2015年12月19日 16:32" class="bigatt_bt"><div style="float:left;margin:2px 8px 0 0;"><a target="_blank" href="http://mail.qq.com/cgi-bin/ftnExs_download?t=exs_ftn_download&k=7a653966e298e6c9369a04674466071b5e555803575e565715545b02504b0104005c140456030d190b045a56535705550d5c0957626b35776c485a0e0715411a56174b02625b&code=8e9fbf54"><img border="0" src="http://res.mail.qq.com/zh_CN/htmledition/images/fj/fu_nrrd.gif"/></a></div><div class="name_big" ><span class='qqmailbgattach' expiretime="1450510342" downloadlink="http://mail.qq.com/cgi-bin/ftnExs_download?t=exs_ftn_download&k=7a653966e298e6c9369a04674466071b5e555803575e565715545b02504b0104005c140456030d190b045a56535705550d5c0957626b35776c485a0e0715411a56174b02625b&code=8e9fbf54" appid="2" ><a style="color:#000;" target="_blank" href="http://mail.qq.com/cgi-bin/ftnExs_download?t=exs_ftn_download&k=7a653966e298e6c9369a04674466071b5e555803575e565715545b02504b0104005c140456030d190b045a56535705550d5c0957626b35776c485a0e0715411a56174b02625b&code=8e9fbf54">CT-chest.nrrd</a><span style="color:#A0A0A0;"> (34.75M, 2015年12月19日 16:32 到期)</span></span><div class="down_big"><a target="_blank" href="http://mail.qq.com/cgi-bin/ftnExs_download?t=exs_ftn_download&k=7a653966e298e6c9369a04674466071b5e555803575e565715545b02504b0104005c140456030d190b045a56535705550d5c0957626b35776c485a0e0715411a56174b02625b&code=8e9fbf54">进入下载页面</a><span style="display:none;">:http://mail.qq.com/cgi-bin/ftnExs_download?t=exs_ftn_download&k=7a653966e298e6c9369a04674466071b5e555803575e565715545b02504b0104005c140456030d190b045a56535705550d5c0957626b35776c485a0e0715411a56174b02625b&code=8e9fbf54</span></div></div></div></div></div></div></div>