Hot answers tagged

5

Raster3D just holds a matrix and an optional data range list, so you can get coordinate postions like this: raster = Raster3D[RandomReal[1, {3, 4, 5}], {{0, 0, 0}, {1,1,1}}]; dim = Dimensions@First@raster; coordinates = raster[[2]]; p = Position[First@raster, x_ /; x < .1]; pos = Reverse[coordinates[[1]] - Subtract @@ coordinates/dim #] & ...


4

You can convert Raster3D into Image3D simply by applying Image3D and then use ImageValuePositions: whitePos = {1, 1, 1}; raster = Raster3D[ ReplacePart[RandomReal[1, {5, 5, 5, 3}], whitePos -> {1, 1, 1}]]; i3d = Image3D@raster xyz = ImageValuePositions[i3d, White] {{0.5, 0.5, 0.5}} PixelValuePositions[i3d, White] {{1, 1, 1}} As you ...


3

Probably not ideal, but using OverlayBox (undocumented) can get you something: img = ConvertImageToFullyScaledNinePatch[ Import["https://addons.cdn.mozilla.net/static/img/docs/themes/header.jpg"] ]; CellPrint[ Cell[BoxData[ OverlayBox[{ToBoxes[img], "test"}, Alignment -> Center]], "Code", CellFrameMargins -> 0, ...



Only top voted, non community-wiki answers of a minimum length are eligible