New answers tagged

0

Because the solutions provided didn't work in my case, I tried something different. I extracted coordinates using different software which uses Slices, Rows and Columns as coordinates system (Msrc). I wanted to import this data in mathematica and import my Image3D object as well. When i imported the two, i realised that the coordinates didn't match.The ...


0

I had the same problem when I included my "EPS" mathematica output in latex like \includegraphics{plot.eps} Try to save your Latex document as .pdf. Open this document and zoom into "page width". Then the axes should be shown properly.


4

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


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 #] & ...


2

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, ...



Top 50 recent answers are included