<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi,
<div><br>
</div>
<div>Thanks to guidance from Pat Marion and the rest of the VES team, I've been able to build and use the PNL-SPL brain atlas (<a href="http://www.spl.harvard.edu/publications/item/view/1265">http://www.spl.harvard.edu/publications/item/view/1265</a>) on iOS
5.0 as seen in the youtube video and pictured at <a href="http://www.vtk.org/Wiki/File:KiwiViewer_BrainAtlas.png">http://www.vtk.org/Wiki/File:KiwiViewer_BrainAtlas.png</a> </div>
<div><br>
</div>
<div>Below is a basic walk through.</div>
<div><br>
</div>
<div>==0. Install dependencies==</div>
<div><br>
</div>
<div>I recommend using homebrew to install these packages on OSX. To install, follow the instructions at
<a href="http://mxcl.github.com/homebrew/">http://mxcl.github.com/homebrew/</a>. Homebrew is a package manager for OSX (similar to apt/aptitude/yum/etc). </div>
<div><br>
</div>
<div>'''Dependencies'''</div>
<div><br>
</div>
<div>* cmake</div>
<div>:: brew install cmake</div>
<div> </div>
<div>* git</div>
<div>:: brew install git</div>
<div><br>
</div>
<div>* xcode</div>
<div>:: <a href="http://itunes.apple.com/us/app/xcode/id448457090?mt=12">http://itunes.apple.com/us/app/xcode/id448457090?mt=12</a></div>
<div><br>
</div>
<div>==1. Clone the code from the git repository==</div>
<div><br>
</div>
<div>:: git clone git://<a href="http://vtk.org/VES.git">vtk.org/VES.git</a></div>
<div><br>
</div>
<div>==2. Configure iOS superbuild==</div>
<div><br>
</div>
<div>:: cd VES/Apps/iOS/CMakeBuild</div>
<div><br>
</div>
<div>:: cmake -P configure.cmake</div>
<div><br>
</div>
<div>==3. Build iOS superbuild</div>
<div><br>
</div>
<div>:: cd build</div>
<div><br>
</div>
<div>:: make -j4</div>
<div><br>
</div>
<div>This will take some time. It will download vtkmodular and the Eigen mathematics library</div>
<div><br>
</div>
<div>
<div>==4. Adding extra datasets==</div>
<div><br>
</div>
<div>* In the folder VES/src/vtkVES, open the file 'vesKiwiViewerApp.cpp' in your favorite editor.</div>
<div>* Uncomment lines 160-161 and lines 592-602 </div>
<div>* Save the file. </div>
<div><br>
</div>
<div>==5. Rebuilding with updating code </div>
<div><br>
</div>
<div>* Return to the build directory (should be VES/Apps/iOS/CMakeBuild/build)</div>
<div>* Rebuild the modular VES for iOS device and simulator</div>
<div><br>
</div>
<div>:: make ves-ios-device</div>
<div>:: make ves-ios-simulator</div>
<div><br>
</div>
<div>==6. Copy external data to data folder==</div>
<div><br>
</div>
<div>The external data is hosted on Midas at <a href="http://midas.kitware.com/item/view/726">http://midas.kitware.com/item/view/726</a></div>
<div><br>
</div>
<div>:: [<a href="http://midas.kitware.com/bitstream/view/17407">http://midas.kitware.com/bitstream/view/17407</a> kiwiviewer_spl_pnl_brain_atlas.tgz]</div>
<div>:: [<a href="http://midas.kitware.com/bitstream/view/17408 kiwiviewer_can_data.tgz">http://midas.kitware.com/bitstream/view/17408 kiwiviewer_can_data.tgz</a>]</div>
<div><br>
</div>
<div>The SPL Brain Atlas is licensed under the following:</div>
<div><br>
</div>
<div>''Please note that the data is being distributed under the Slicer license. By downloading these data, you agree to acknowledge our contribution in any of your publications that result form the use of this atlas. Please acknowledge the following grants:
P41 RR13218, R01 MH050740.''</div>
<div><br>
</div>
<div>* Download and extract the SPL brain atlas and Can simulation to the folder VES/Apps/iOS/Kiwi/Kiwi/Data (each vtp file should be the Data folder, not a subfolder)</div>
<div><br>
</div>
<div>==7. Add data to project==</div>
<div><br>
</div>
<div>* Open the Kiwi Xcode project located at VES/Apps/iOS/Kiwi/Kiwi.xcodeproj</div>
<div><br>
</div>
<div>* Drag & drop the new files in the VES/Apps/iOS/Kiwi/Kiwi/Data into the 'Data" folder in the Xcode project. </div>
<div><br>
</div>
<div><img id="9e48dd2f-81a3-4d27-8117-a6af3c50cb50" height="513" width="431" apple-width="yes" apple-height="yes" src="cid:6299E867-043C-4FA2-A9CB-779438478A41@ucsd.edu"></div>
<div><br>
</div>
<div>* Tap "Run"</div>
<div><br>
</div>
<div>The KiwiViewer application should launch in the iOS simulator. Tap on the folder in the lower right corner to select the SPL Brain or Can dataset. </div>
<div><br>
</div>
<div>With the SPL Brain view loaded, a single tap toggles between different views. Tap on the clip plane manipulator to rotate the plane. Tap on the clip plane and drag to adjust its position.</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div>Let me know if I missed something. Good luck'</div>
<div> </div>
<div><br>
</div>
<div>Rich Stoner</div>
<div>Postdoctoral Fellow</div>
<div>UCSD Autism Center of Excellence</div>
</body>
</html>