<p dir="ltr">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">Elvis</p>
<div class="gmail_quote">Den 7 maj 2016 2:05 em skrev "Import EV" <<a href="mailto:info@import-ev.com">info@import-ev.com</a>>:<br type="attribution"><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>
<br>
Now, I would like to implement volume rendering using 300 DICOM files.<br>
I use the sample Xcode project "VolumeRender" provided here<br>
(<a href="https://github.com/Kitware/VTK/tree/master/Examples/iOS" rel="noreferrer" target="_blank">https://github.com/Kitware/VTK/tree/master/Examples/iOS</a>).<br>
<br>
In "MyGLKViewController.mm" of this sample project, I changed the codes like<br>
below;<br>
"->" shows the codes I changed.<br>
<br>
===<br>
#else<br>
NSArray *paths =<br>
NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask,<br>
YES);<br>
NSString *basePath = paths.firstObject;<br>
std::string fname([basePath UTF8String]);<br>
-> //fname += "/CT-chest-quantized.nrrd";<br>
-> //vtkNew<vtkNrrdReader> mi;<br>
-> //mi->SetFileName(fname.c_str());<br>
-> vtkNew<vtkDICOMImageReader> mi;<br>
-> mi->SetDirectoryName(fname.c_str());<br>
mi->Update();<br>
<br>
double range[2];<br>
mi->GetOutput()->GetPointData()->GetScalars()->GetRange(range);<br>
<br>
volumeMapper->SetInputConnection(mi->GetOutputPort());<br>
#endif<br>
===<br>
<br>
Then I copied 300 DICOM files to "Documents" directory of the app via<br>
iTunes.<br>
The app runs without error but only black color cubic shown on the iPhone5S<br>
display and does not show correct volume rendering image.<br>
<br>
Do I need to do something else to show correct volume rendering image?<br>
Please advise me.<br>
<br>
-----<br>
Import EV Corp.<br>
-----<br>
<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>
</blockquote></div>