Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- id = "7ea03ea6b5df8acae178578dd80eca8af42e1cd16df8d4eea370599d649e5a89";
- dataCube = BlockchainGet[id];
- myColorFunction = (If[# == 0, Transparent, Hue[#, 1, 1, 0.1]] &);
- Show[Image3D[dataCube, ColorFunction -> myColorFunction,
- Method -> {"VolumeLighting" -> "EnhancedEdge", "InterpolateValues" -> True}],
- Lighting -> {{"Ambient", White}}, Background -> Black, Axes -> True,
- AxesLabel -> {Style["z", Bold, 16], Style["y", Bold, 16], Style["x", Bold, 16]}]
- img3D = Image3D[dataCube, ColorFunction -> myColorFunction,
- Method -> {"VolumeLighting" -> "EnhancedEdge", "InterpolateValues" -> True}];
- ImageForestingComponents[img3D] // Colorize
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement