Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. id = "7ea03ea6b5df8acae178578dd80eca8af42e1cd16df8d4eea370599d649e5a89";
  2. dataCube = BlockchainGet[id];
  3. myColorFunction = (If[# == 0, Transparent, Hue[#, 1, 1, 0.1]] &);
  4. Show[Image3D[dataCube, ColorFunction -> myColorFunction,
  5. Method -> {"VolumeLighting" -> "EnhancedEdge", "InterpolateValues" -> True}],
  6. Lighting -> {{"Ambient", White}}, Background -> Black, Axes -> True,
  7. AxesLabel -> {Style["z", Bold, 16], Style["y", Bold, 16], Style["x", Bold, 16]}]
  8.  
  9. img3D = Image3D[dataCube, ColorFunction -> myColorFunction,
  10. Method -> {"VolumeLighting" -> "EnhancedEdge", "InterpolateValues" -> True}];
  11. ImageForestingComponents[img3D] // Colorize
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement