[vtkusers] About the example--vtk for iOS VolumeRender
Ken Martin
ken.martin at kitware.com
Thu Nov 19 07:57:45 EST 2015
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.
Thanks
Ken
On Wed, Nov 18, 2015 at 11:09 PM, Aashish Chaudhary <
aashish.chaudhary at kitware.com> wrote:
> Hi can you send me your data and your changes may be?
>
> - Aashish
>
> On Wed, Nov 18, 2015 at 10:57 PM, 邓卓夫 <dzfowen at qq.com> wrote:
>
>> Hello developers,
>>
>> Following your instructions, the VolumeRender can read the nrrd
>> file, but when I run the program it came out 2 errors:
>>
>> *ERROR: In
>> /Users/dzf/Desktop/VTK/Rendering/OpenGL2/vtkOpenGLPolyDataMapper2D.cxx,
>> line 850*
>>
>> *vtkOpenGLPolyDataMapper2D (0x7fe288f404a0): failed after RenderOverlay 1
>> OpenGL errors detected*
>>
>> * 0 : (1286) Unknown error*
>>
>>
>>
>> *ERROR: In /Users/dzf/Desktop/VTK/Rendering/OpenGL2/vtkTextureObject.cxx,
>> line 554*
>>
>> *vtkTextureObject (0x7fe28988f530): failed at glBindTexture(0) 1 OpenGL
>> errors detected*
>>
>> * 0 : (1286) Unknown error*
>>
>> 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.
>>
>> Thank you for your helps!
>>
>> Bob
>> ------------------ 原始邮件 ------------------
>> *发件人:* "Aashish Chaudhary";<aashish.chaudhary at kitware.com>;
>> *发送时间:* 2015年11月19日(星期四) 凌晨2:57
>> *收件人:* "Cory Quammen"<cory.quammen at kitware.com>;
>> *抄送:* "邓卓夫"<dzfowen at qq.com>; "vtkusers"<vtkusers at vtk.org>;
>> *主题:* Re: [vtkusers] About the example--vtk for iOS VolumeRender
>>
>> 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.
>>
>> Thanks,
>>
>>
>> On Wed, Nov 18, 2015 at 1:06 PM, Cory Quammen <cory.quammen at kitware.com>
>> wrote:
>>
>>> 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.
>>>
>>> - Cory
>>>
>>> On Wed, Nov 18, 2015 at 12:03 PM, 邓卓夫 <dzfowen at qq.com> wrote:
>>>
>>>> Hi developers,
>>>>
>>>> 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:
>>>>
>>>> *ERROR: In /Users/dzf/Desktop/VTK/IO/Image/vtkNrrdReader.cxx,
>>>> line 337*
>>>>
>>>> *vtkNrrdReader (0x7f9e8b821370): CT-chest.nrrd is not a nrrd file.*
>>>>
>>>>
>>>> * ERROR: In
>>>> /Users/dzf/Desktop/VTK/Common/ExecutionModel/vtkExecutive.cxx, line 784*
>>>>
>>>> *vtkCompositeDataPipeline (0x7f9e8b821e50): Algorithm
>>>> vtkNrrdReader(0x7f9e8b821370) returned failure for request: vtkInformation
>>>> (0x7f9e8b823530)*
>>>>
>>>> * Debug: Off*
>>>>
>>>> * Modified Time: 8501*
>>>>
>>>> * Reference Count: 1*
>>>>
>>>> * Registered Events: (none)*
>>>>
>>>> * Request: REQUEST_INFORMATION*
>>>>
>>>> * FORWARD_DIRECTION: 0*
>>>>
>>>> * ALGORITHM_AFTER_FORWARD: 1*
>>>>
>>>>
>>>> 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?
>>>>
>>>>
>>>> 2 error:I can not understand.
>>>>
>>>>
>>>> Thanks for your reply!
>>>>
>>>>
>>>> Bob
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>>>
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://public.kitware.com/mailman/listinfo/vtkusers
>>>>
>>>>
>>>
>>>
>>> --
>>> Cory Quammen
>>> R&D Engineer
>>> Kitware, Inc.
>>>
>>> _______________________________________________
>>> 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
>>>
>>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/vtkusers
>>>
>>>
>>
>>
>> --
>>
>>
>>
>> *| Aashish Chaudhary | Technical Leader | Kitware Inc.
>> *
>> *| http://www.kitware.com/company/team/chaudhary.html
>> <http://www.kitware.com/company/team/chaudhary.html>*
>>
>
>
>
> --
>
>
>
> *| Aashish Chaudhary | Technical Leader | Kitware Inc. *
> *| http://www.kitware.com/company/team/chaudhary.html
> <http://www.kitware.com/company/team/chaudhary.html>*
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
--
Ken Martin PhD
Chairman & CFO
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065
518 371 3971
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20151119/436636ce/attachment-0001.html>
More information about the vtkusers
mailing list