# Beautiful display of 3d Segmentation on MPR view!

**URL:** <https://discourse.itk.org/t/beautiful-display-of-3d-segmentation-on-mpr-view/1343>\
**Category:** Algorithms\
**Created:** [October 11, 2018, 8:34am UTC](https://discourse.itk.org/t/beautiful-display-of-3d-segmentation-on-mpr-view/1343 "2018-10-11T08:34:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rasoul](https://discourse.itk.org/user_avatar/discourse.itk.org/rasoul/32/325_2.png) [@rasoul](https://discourse.itk.org/u/rasoul)\
**Post date:** [October 11, 2018, 8:34am UTC](https://discourse.itk.org/t/beautiful-display-of-3d-segmentation-on-mpr-view/1343/1 "2018-10-11T08:34:34Z")

</div>

Hi every one,  
I have a set of binary images which are output of my segmentation. I want to display the output in MPR view. Sth like what I attached to this post (Which comes from itk.org main page!).  
 ![Surface_MPR](https://discourse.itk.org/uploads/default/original/1X/985313430dcee1464b4f0946298ebfc36980a973.jpeg)  
For this purpose What I have done was rendering a volume from my set of binary images and showing this rendered volume on a MPR plan view using VTK.  
 ![My_MPR_RENDER](https://discourse.itk.org/uploads/default/original/1X/77d56490f9fe3518743fe8cc585a9cacd34f89b6.png)  
But as you can see the output is not as beautiful as what I am seeing in [itk.org](http://itk.org) main page. In the first image It seems that the yellow volume is an isosurface (not a volume) which is smoothly interpolated to the boundaries of some 2d binary images. Am I right? Do you guys have a suggestion for my purpose?  
Thanks a lot

---

<div class="post-metadata">

**Author:** ![jhlegarreta](https://discourse.itk.org/user_avatar/discourse.itk.org/jhlegarreta/32/476_2.png) [@jhlegarreta](https://discourse.itk.org/u/jhlegarreta)\
**Post date:** [October 11, 2018, 1:05pm UTC](https://discourse.itk.org/t/beautiful-display-of-3d-segmentation-on-mpr-view/1343/2 "2018-10-11T13:05:30Z")

</div>

Hi Rasoul,  
your guess is somewhat in the right direction. VTK would allow you to display your segmentation either as a solid volume or just its contour/surface. You may get some inspiration from the VTK Examples:  
[https://lorensen.github.io/VTKExamples/site/Cxx/Medical/MedicalDemo3/](https://lorensen.github.io/VTKExamples/site/Cxx/Medical/MedicalDemo3/)

The [vtk::ContourFilter](https://www.vtk.org/doc/nightly/html/classvtkContourFilter.html) may be of help in generating an isosurface from your segmentation data.

Also, you may prefer to post in the VTK mailing list, since they will surely suggest further options.

HTH.

---

<div class="post-metadata">

**Author:** ![rasoul](https://discourse.itk.org/user_avatar/discourse.itk.org/rasoul/32/325_2.png) [@rasoul](https://discourse.itk.org/u/rasoul)\
**Post date:** [November 10, 2018, 5:05am UTC](https://discourse.itk.org/t/beautiful-display-of-3d-segmentation-on-mpr-view/1343/3 "2018-11-10T05:05:07Z")

</div>

Thanks @jhlegarreta. I had an eye surgery and I was not able to work four these days…
