{
  "id": 18877,
  "title": "3D visualization with Mayavi",
  "url": "/competitions/second-annual-data-science-bowl/discussion/18877",
  "author_name": "",
  "post_date": "2016-02-11T04:44:20.823Z",
  "votes": 3,
  "comment_count": 1,
  "views": 870,
  "content": "<p>Just tried Mayavi today and it is impressive but yet able to clearly visualize the heart in 3D. Anybody wants to try, here is simple instructions for Fedora 23:\nsudo dnf install vtk-python\npip install mayavi\nAssuming you have full set 4 dimension in image as Slice/Time/X/Y:</p>\n\n<p>import mayavi</p>\n\n<p>from mayavi import mlab</p>\n\n<p>// View heart at last time period</p>\n\n<p>mlab.contour3d(image[:,29,:,:] ,  transparent=True)</p>\n\n<p>// View time series of first slice:</p>\n\n<p>mlab.contour3d(image[0,:,:,:], transparent=True)\nTo play with the coloring you need to biring up Mayavi pipleine from upper right and selet isoSurface and play with choices and observe the changes in rendering. </p>",
  "messages": [
    {
      "id": "107554",
      "postDate": "02/11/2016 04:44:20",
      "content": "<p>Just tried Mayavi today and it is impressive but yet able to clearly visualize the heart in 3D. Anybody wants to try, here is simple instructions for Fedora 23:\nsudo dnf install vtk-python\npip install mayavi\nAssuming you have full set 4 dimension in image as Slice/Time/X/Y:</p>\n\n<p>import mayavi</p>\n\n<p>from mayavi import mlab</p>\n\n<p>// View heart at last time period</p>\n\n<p>mlab.contour3d(image[:,29,:,:] ,  transparent=True)</p>\n\n<p>// View time series of first slice:</p>\n\n<p>mlab.contour3d(image[0,:,:,:], transparent=True)\nTo play with the coloring you need to biring up Mayavi pipleine from upper right and selet isoSurface and play with choices and observe the changes in rendering. </p>",
      "rawMarkdown": "Just tried Mayavi today and it is impressive but yet able to clearly visualize the heart in 3D. Anybody wants to try, here is simple instructions for Fedora 23:\r\nsudo dnf install vtk-python\r\npip install mayavi\r\nAssuming you have full set 4 dimension in image as Slice/Time/X/Y:\r\n\r\nimport mayavi\r\n\r\nfrom mayavi import mlab\r\n\r\n// View heart at last time period\r\n\r\nmlab.contour3d(image[:,29,:,:] ,  transparent=True)\r\n\r\n// View time series of first slice:\r\n\r\nmlab.contour3d(image[0,:,:,:], transparent=True)\r\nTo play with the coloring you need to biring up Mayavi pipleine from upper right and selet isoSurface and play with choices and observe the changes in rendering.",
      "votes": null
    },
    {
      "id": "107862",
      "postDate": "02/13/2016 07:01:16",
      "content": "<p>Actually heart shape was there just took me awhile to learn how to use Mayavi: This is 120th Train study's 5th slice in time. It could be cool to segment this in 3dimension. Saw some ITK related segmentation in web wondering any body has a success with it (ITK or ITK snap)?</p>",
      "rawMarkdown": "Actually heart shape was there just took me awhile to learn how to use Mayavi: This is 120th Train study's 5th slice in time. It could be cool to segment this in 3dimension. Saw some ITK related segmentation in web wondering any body has a success with it (ITK or ITK snap)?",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 107862,
      "author_name": "esorar",
      "author_url": "",
      "post_date": "02/13/2016 07:01:16",
      "content": "<p>Actually heart shape was there just took me awhile to learn how to use Mayavi: This is 120th Train study's 5th slice in time. It could be cool to segment this in 3dimension. Saw some ITK related segmentation in web wondering any body has a success with it (ITK or ITK snap)?</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "107554": "Just tried Mayavi today and it is impressive but yet able to clearly visualize the heart in 3D. Anybody wants to try, here is simple instructions for Fedora 23:\r\nsudo dnf install vtk-python\r\npip install mayavi\r\nAssuming you have full set 4 dimension in image as Slice/Time/X/Y:\r\n\r\nimport mayavi\r\n\r\nfrom mayavi import mlab\r\n\r\n// View heart at last time period\r\n\r\nmlab.contour3d(image[:,29,:,:] ,  transparent=True)\r\n\r\n// View time series of first slice:\r\n\r\nmlab.contour3d(image[0,:,:,:], transparent=True)\r\nTo play with the coloring you need to biring up Mayavi pipleine from upper right and selet isoSurface and play with choices and observe the changes in rendering.",
    "107862": "Actually heart shape was there just took me awhile to learn how to use Mayavi: This is 120th Train study's 5th slice in time. It could be cool to segment this in 3dimension. Saw some ITK related segmentation in web wondering any body has a success with it (ITK or ITK snap)?"
  },
  "source": "meta"
}