Skip to main content

Volumetric Data

Visualize, transform and store 3D clouds of pixels using Image3D

It provides unified symbolic representation for a variety of digital 3D image formats. In particular, an Image3D object contains a three-dimensional array of values (or lists of values) that represent a 3D raster image

Download original notebook

Generate from CellularAutomaton

Image3D[#, ImageSize -> 150] & /@
  CellularAutomaton[{14, {2, 1}, {1, 1, 1}}, {{{{1}}}, 0}, 8]
{(*VB[*)(FrontEndRef["3bec9fc7-7bd7-48d2-916b-39d7d1532e2f"])(*,*)(*"1:eJxTTMoPSmNkYGAoZgESHvk5KRCeEJBwK8rPK3HNS3GtSE0uLUlMykkNVgEKGyelJlumJZvrmielmOuaWKQY6VoamiXpGlummKcYmhobpRqlAQCPfxXk"*)(*]VB*),(*VB[*)(FrontEndRef["d23af0e6-b727-4283-becf-e82a88ad2ee4"])(*,*)(*"1:eJxTTMoPSmNkYGAoZgESHvk5KRCeEJBwK8rPK3HNS3GtSE0uLUlMykkNVgEKpxgZJ6YZpJrpJpkbmeuaGFkY6yalJqfpploYJVpYJKYYpaaaAACLORY2"*)(*]VB*),(*VB[*)(FrontEndRef["bbb22019-2c02-425f-b705-7c961fac570a"])(*,*)(*"1:eJxTTMoPSmNkYGAoZgESHvk5KRCeEJBwK8rPK3HNS3GtSE0uLUlMykkNVgEKJyUlGRkZGFrqGiUbGOmaGJmm6SaZG5jqmidbmhmmJSabmhskAgB97RVe"*)(*]VB*),(*VB[*)(FrontEndRef["e76875c2-abe2-40df-8e60-26c1d407571e"])(*,*)(*"1:eJxTTMoPSmNkYGAoZgESHvk5KRCeEJBwK8rPK3HNS3GtSE0uLUlMykkNVgEKp5qbWZibJhvpJialGumaGKSk6VqkmhnoGpklG6aYGJibmhumAgCE8BV2"*)(*]VB*),(*VB[*)(FrontEndRef["24e210b3-0f85-4326-bc07-cac69b2f71f3"])(*,*)(*"1:eJxTTMoPSmNkYGAoZgESHvk5KRCeEJBwK8rPK3HNS3GtSE0uLUlMykkNVgEKG5mkGhkaJBnrGqRZmOqaGBuZ6SYlG5jrJicmm1kmGaWZG6YZAwB5cRVl"*)(*]VB*),(*VB[*)(FrontEndRef["6f3e4e69-50b0-4389-a884-2566855dab97"])(*,*)(*"1:eJxTTMoPSmNkYGAoZgESHvk5KRCeEJBwK8rPK3HNS3GtSE0uLUlMykkNVgEKm6UZp5qkmlnqmhokGeiaGFtY6iZaWJjoGpmamVmYmqYkJlmaAwB5uhT/"*)(*]VB*),(*VB[*)(FrontEndRef["9255db83-ac72-4700-8d66-99328e6f3cb6"])(*,*)(*"1:eJxTTMoPSmNkYGAoZgESHvk5KRCeEJBwK8rPK3HNS3GtSE0uLUlMykkNVgEKWxqZmqYkWRjrJiabG+mamBsY6FqkmJnpWloaG1mkmqUZJyeZAQB4ZhUn"*)(*]VB*),(*VB[*)(FrontEndRef["f48de7a9-d5ae-4c5d-97ca-078e7b4116d3"])(*,*)(*"1:eJxTTMoPSmNkYGAoZgESHvk5KRCeEJBwK8rPK3HNS3GtSE0uLUlMykkNVgEKp5lYpKSaJ1rqppgmpuqaJJum6FqaJyfqGphbpJonmRgamqUYAwCUOBYS"*)(*]VB*),(*VB[*)(FrontEndRef["bcceede6-3316-4991-9b29-1069dcb6bd9f"])(*,*)(*"1:eJxTTMoPSmNkYGAoZgESHvk5KRCeEJBwK8rPK3HNS3GtSE0uLUlMykkNVgEKJyUnp6ampJrpGhsbmumaWFoa6lomGVnqGhqYWaYkJ5klpVimAQCPpRYS"*)(*]VB*)}

Create from elevation map

everest = (*VB[*)(FrontEndRef["0b08cf72-aa1c-4025-84ac-9459739641a3"])(*,*)(*"1:eJxTTMoPSmNkYGAoZgESHvk5KRCeEJBwK8rPK3HNS3GtSE0uLUlMykkNVgEKGyQZWCSnmRvpJiYaJuuaGBiZ6lqYJCbrWpqYWpobW5qZGCYaAwCAihUN"*)(*]VB*);

data = ImageData[ImageReflect[everest, Top->Bottom]];
data3D = Map[# Table[UnitStep[50# - k], {k, 50}]&, data, {-1}];

Image3D[Reverse@Transpose[data3D, {3, 2, 1}]]
(*VB[*)(FrontEndRef["5c34a79d-161a-4a74-8c52-e002962788c0"])(*,*)(*"1:eJxTTMoPSmNkYGAoZgESHvk5KRCeEJBwK8rPK3HNS3GtSE0uLUlMykkNVgEKmyYbmySaW6boGpoZJuoCmSa6FsmmRrqpBgZGlmZG5hYWyQYAezcU5A=="*)(*]VB*)

MRT images

Image3D[ExampleData[{"TestImage3D", "CThead"}], ColorFunction->"Greys"]
(*VB[*)(FrontEndRef["480046ed-95c5-4658-b6ad-ff3d255d2700"])(*,*)(*"1:eJxTTMoPSmNkYGAoZgESHvk5KRCeEJBwK8rPK3HNS3GtSE0uLUlMykkNVgEKm1gYGJiYpaboWpomm+qamJla6CaZJabopqUZpxiZmqYYmRsYAAB7iRVI"*)(*]VB*)