<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello Elvis,<div class="">Thank you for your response.</div><div class=""><br class=""></div><div class="">You may be right. I will check color/opacity transfer function.</div><div class="">Thanks!</div><div class=""><br class=""><div apple-content-edited="true" class="">
<div class=""><div class="">—</div><div class="">Ted Shigetomi</div><div class="">Import EV Corp.</div><div class=""><a href="mailto:info@import-ev.com" class="">info@import-ev.com</a></div><div class="">---</div></div>
</div>
<br class=""><div><div class="">2016/05/10 2:16、Elvis Stansvik <<a href="mailto:elvis.stansvik@orexplore.com" class="">elvis.stansvik@orexplore.com</a>> </div><br class="Apple-interchange-newline"><div class=""><p dir="ltr" class="">I haven't looked at the example since I'm on my phone, but I would assume that you need a color/opacity transfer function that fits your data.</p><p dir="ltr" class="">Elvis</p>
<div class="gmail_quote">Den 7 maj 2016 2:05 em skrev "Import EV" <<a href="mailto:info@import-ev.com" class="">info@import-ev.com</a>>:<br type="attribution" class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I could finally make vtk.framework for iOS.<br class="">
<br class="">
Now, I would like to implement volume rendering using 300 DICOM files.<br class="">
I use the sample Xcode project "VolumeRender" provided here<br class="">
(<a href="https://github.com/Kitware/VTK/tree/master/Examples/iOS" rel="noreferrer" target="_blank" class="">https://github.com/Kitware/VTK/tree/master/Examples/iOS</a>).<br class="">
<br class="">
In "MyGLKViewController.mm" of this sample project, I changed the codes like<br class="">
below;<br class="">
"->" shows the codes I changed.<br class="">
<br class="">
===<br class="">
#else<br class="">
NSArray *paths =<br class="">
NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask,<br class="">
YES);<br class="">
NSString *basePath = paths.firstObject;<br class="">
std::string fname([basePath UTF8String]);<br class="">
-> //fname += "/CT-chest-quantized.nrrd";<br class="">
-> //vtkNew<vtkNrrdReader> mi;<br class="">
-> //mi->SetFileName(fname.c_str());<br class="">
-> vtkNew<vtkDICOMImageReader> mi;<br class="">
-> mi->SetDirectoryName(fname.c_str());<br class="">
mi->Update();<br class="">
<br class="">
double range[2];<br class="">
mi->GetOutput()->GetPointData()->GetScalars()->GetRange(range);<br class="">
<br class="">
volumeMapper->SetInputConnection(mi->GetOutputPort());<br class="">
#endif<br class="">
===<br class="">
<br class="">
Then I copied 300 DICOM files to "Documents" directory of the app via<br class="">
iTunes.<br class="">
The app runs without error but only black color cubic shown on the iPhone5S<br class="">
display and does not show correct volume rendering image.<br class="">
<br class="">
Do I need to do something else to show correct volume rendering image?<br class="">
Please advise me.<br class="">
<br class="">
-----<br class="">
Import EV Corp.<br class="">
-----<br class="">
<br class="">
_______________________________________________<br class="">
Powered by <a href="http://www.kitware.com/" rel="noreferrer" target="_blank" class="">www.kitware.com</a><br class="">
<br class="">
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank" class="">http://www.kitware.com/opensource/opensource.html</a><br class="">
<br class="">
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank" class="">http://www.vtk.org/Wiki/VTK_FAQ</a><br class="">
<br class="">
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank" class="">http://markmail.org/search/?q=vtkusers</a><br class="">
<br class="">
Follow this link to subscribe/unsubscribe:<br class="">
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank" class="">http://public.kitware.com/mailman/listinfo/vtkusers</a><br class="">
</blockquote></div>
</div></div><br class=""></div></body></html>