Questions tagged [isosurface]

25 questions
0
votes
1 answer

Error plotting spherical harmonics in MATLAB: Grid arrays must have NDGRID structure

I am trying to use the spherical harmonics to represent a perturbation of a spherical object in an acoustic and fluid flow in 3D. So far, I have been able to use a 2D perturbation on a 3D spherical object, however, I would like to extend that. The…
Jamie
  • 365
  • 2
  • 5
  • 13
0
votes
0 answers

How can isosurface, isocaps and stlwrite affect the volume size?

I am trying to extract a STL file from a volume (3D-matrix). Since I am working with a DICOM volume, I want to adapt the matrix elements to the voxel size. Everything seems to work fine, but when I check the stl output size (for example in a CAD…
SimoneCR
  • 1
  • 1
0
votes
0 answers

Why is the isosurface value inverted with the colorbar and true value in go.Isosurface?

I have a 3D volume matrix with pressure values describing the acoustic field generated by an ultrasound transducer. Goal: plot the data with isosurfaces value on hover. Method: use the go.Isosurfaces from plotly.graph_objects library. Problem:…
0
votes
0 answers

How to make a "cavity" in Mayavi iso_surface using scalar_field?

I am using the following commands src = mlab.pipeline.scalar_field(s) mlab.pipeline.iso_surface(src, contours=[....], vmax=0,vmin=-660, opacity=1.0, colormap='Dark2') and I need to make a "cavity" in my isosurfaces looking like this fig1, but I get…
Leo137
  • 1
0
votes
1 answer

Converting indices in marching cubes to original x,y,z space - visualizing isosurface 3d skimage

I want to draw a volume in x1,x2,x3-space. The volume is an isocurve found by the marching cubes algorithm in skimage. The function generating the volume is pdf_grid = f(x1,x2,x3) and I want to draw the volume where pdf = 60% max(pdf). My issue is…
0
votes
1 answer

Obtaining an isosurface from 3D data and the corresponding indices

I have a 3D numpy array of temperature values on a grid. From this I can compute the gradients using dTdx, dTdy, dYdz = np.gradient(T). Now I'm only interested in the values of the gradients on the isosurface where the temperature is 900. What I…
F. Heath
  • 55
  • 5
0
votes
0 answers

How to make a better nested loop for every single pixel?

What i'm trying to create is high resolution metaballs. Here is my algorithm: public constructor(){ this.image = new BufferedImage(this.getWidth(), this.getHeight(), BufferedImage.TYPE_INT_ARGB); this.rgbRaster = ((DataBufferInt)…
David
  • 125
  • 8
0
votes
1 answer

Getting a specific contour in VTK

I like to get a specific contour from image data. My main goal is to remesh a polydata in grid form. So I followed below pipeline: convert polydata to image using PolyDataToImageData convert above image output to vtkImageDataGeometryFilter use…
Syed
  • 550
  • 1
  • 7
  • 22
0
votes
1 answer

Is there a Python function to compute isosurface end-cap geometry like the 'isocaps' function in Matlab?

I want to get some 3D models defined by implicit functions like F(x,y,z)=0. It can be done using the 'isosurface' and 'isocaps' functions in MATLAB. In my case, the constructed models need post-process in Python so it would be better if the…
-1
votes
1 answer

How to generate 3D mesh from CT Slices (.raw) using marching cubes algorithm in C#?

I am trying to generate 3D mesh (isosurface extraction) from CT slices(.raw file) using the marching cubes algorithm. The RAW data is 8 bits 512x512 px and 207 slices. So the input is CT Raw data and the output is a 3D mesh of the CT Object Can you…
1
2