volume-rendering

Matlab's slice() function not working as desired

梦想与她 提交于 2020-01-13 05:39:06
问题 I want to plot discrete 2D images at 13 z locations at [4:4:52] using the following lines of code. a=100; [mesh.x,mesh.y,mesh.z] = meshgrid(1:1:100,1:1:100,4:4:52); a_unifdist=0; b_unifdist=10; noise=a_unifdist+(b_unifdist-a_unifdist).*rand(100,100,13); c = (a./mesh.x)+noise; slice(c,1:100,1:100,4:4:52); However, I get 13 continuous plots from 1 till 13 instead of 13 discrete locations as shown below: Could somebody tell me what's my mistake? I want the images to stack at [4:4:52] locations

Fast interpolation of regularly sampled 3D data with different intervals in x,y, and z

浪子不回头ぞ 提交于 2019-12-29 04:35:21
问题 I have some volumetric imaging data consisting of values sampled on a regular grid in x,y,z, but with a non-cubic voxel shape (the space between adjacent points in z is greater than in x,y). I would eventually like to be able to interpolate the values on some arbitrary 2D plane that passes through the volume, like this: I'm aware of scipy.ndimage.map_coordinates , but in my case using it is less straightforward because it implicitly assumes that the spacing of the elements in the input array

Matlab 3d volume visualization and 3d overlay

。_饼干妹妹 提交于 2019-12-21 13:57:29
问题 The question is pretty much the title. I have a 3d volume loaded as raw data [256, 256, 256] = size(A) . It contains only values of zero's and ones, where the 1's represent the structure and 0's the "air". I want to visualize the structure in MATLAB and then run an algorithm on it and put an overlay on it, let's say in the color red. So to be more precise: How do i visualize the 3d volume. 0's transparent, 1's semitransparent? Plot a line in the 3d visualization as an overlay? I already read

GPU ray casting (single pass) with 3d textures in spherical coordinates

为君一笑 提交于 2019-12-19 10:04:47
问题 i' am implementing an algorithm of volume rendering "GPU ray casting single pass". For this, i used a float array of intensity values as 3d textures ( this 3d textures describes a regular 3d grid in spherical coordinates ). Here there are example of array values: 75.839354473071637, 64.083049468866022, 65.253933716444365, 79.992431196592577, 84.411485976957096, 0.0000000000000000, 82.020319431382831, 76.808403454586994, 79.974774618246158, 0.0000000000000000, 91.127273013466336, 84

Texture is not generated valid (probably)

本小妞迷上赌 提交于 2019-12-13 14:43:24
问题 My app for volume ray casting in WebGL is almost done. But i have found a problem. I have to simulate 3D texture by 2D texture. It is not problem. I am creating a huge texture from small slices. Dimensions of huge texture are about 4096x4096px. Problem is, that in some examples (it depends on number of slices) there is creating sth. like on the image bellow (i filled huge texture to white to be the fragment more visible). I know that num of stripes depends on num of rows in huge texture. I am

VTK how to Import 3D image data via imageImport on c++ for Volume Rendering

元气小坏坏 提交于 2019-12-12 04:29:20
问题 Through VTK Python API, we can import/make 3d image data and Volume Rendering as follow: And the Python code is: # coding=utf-8 import vtk from numpy import * import random num = 74 # We begin by creating the data we want to render. # For this tutorial, we create a 3D-image containing three overlapping cubes. # This data can of course easily be replaced by data from a medical CT-scan or anything else three dimensional. # The only limit is that the data must be reduced to unsigned 8 bit or 16

hazy artefact on OS X WebGL on sides of volume rendering

谁都会走 提交于 2019-12-08 20:00:32
Does anyone know how to sort this weird effect? The sides of the volume we're trying to render seem artificially hazy. I'm running it on 2014 MacBook Pro, Intel Iris 1536 MB GPU, Yosemite v 10.10.2 (14C1514). I've heard that this is only a problem on machines running OS X, and it doesn't appear on Windows machines. I've also noticed it in some other places e.g. Leberba khronos.org/bugzilla/show_bug.cgi?id=1337 Bug reported so closing 来源: https://stackoverflow.com/questions/29493673/hazy-artefact-on-os-x-webgl-on-sides-of-volume-rendering

hazy artefact on OS X WebGL on sides of volume rendering

倖福魔咒の 提交于 2019-12-08 08:52:26
问题 Does anyone know how to sort this weird effect? The sides of the volume we're trying to render seem artificially hazy. I'm running it on 2014 MacBook Pro, Intel Iris 1536 MB GPU, Yosemite v 10.10.2 (14C1514). I've heard that this is only a problem on machines running OS X, and it doesn't appear on Windows machines. I've also noticed it in some other places e.g. Leberba 回答1: khronos.org/bugzilla/show_bug.cgi?id=1337 Bug reported so closing 来源: https://stackoverflow.com/questions/29493673/hazy

Matlab's slice() function not working as desired

流过昼夜 提交于 2019-12-04 11:46:01
I want to plot discrete 2D images at 13 z locations at [4:4:52] using the following lines of code. a=100; [mesh.x,mesh.y,mesh.z] = meshgrid(1:1:100,1:1:100,4:4:52); a_unifdist=0; b_unifdist=10; noise=a_unifdist+(b_unifdist-a_unifdist).*rand(100,100,13); c = (a./mesh.x)+noise; slice(c,1:100,1:100,4:4:52); However, I get 13 continuous plots from 1 till 13 instead of 13 discrete locations as shown below: Could somebody tell me what's my mistake? I want the images to stack at [4:4:52] locations on z-axis. Thanks. Perhaps you meant: slice(mesh.x, mesh.y, mesh.z, c, [], [], 4:4:52) Here is a more

Matlab 3d volume visualization and 3d overlay

不羁岁月 提交于 2019-12-04 09:33:14
The question is pretty much the title. I have a 3d volume loaded as raw data [256, 256, 256] = size(A) . It contains only values of zero's and ones, where the 1's represent the structure and 0's the "air". I want to visualize the structure in MATLAB and then run an algorithm on it and put an overlay on it, let's say in the color red. So to be more precise: How do i visualize the 3d volume. 0's transparent, 1's semitransparent? Plot a line in the 3d visualization as an overlay? I already read the MathWorks tutorials and they didn't help. I tried using the set command, but it fails completely