How can I layer dicom files?

2 views (last 30 days)
Alena Schwartz
Alena Schwartz on 10 Feb 2019
Commented: Walter Roberson on 11 Feb 2019
I have a 361 dicom files that I would like to combine to create a 3D rendering of the image. I have tried using viewer3D from the file exchange, but get an error message when I use it.
Is there a simple way to layer the slices so that the 3D image can be viewed all at once?
or is there another program from the file exchange that may work?
  3 Comments
Alena Schwartz
Alena Schwartz on 11 Feb 2019
This is the error message that I get. I don't know enough about using MATLAB to figure out how to fix it. I am trying to create an image that looks similar to the output of using the volume viewer app, but want to use code to create the 3d rendering so that I am able to manipulate it.
Error using griddedInterpolant
Sample values must be a single or double array.
Error in interpn (line 138)
F = griddedInterpolant(X,V,method,extrap);
Error in viewer3d>imresize3d (line 1270)
A=interpn(V,X,Y);
Error in viewer3d>makePreviewVolume (line 244)
data.volumes(dvs).volume_preview=imresize3d(data.volumes(dvs).volume_original,[],[t t t],'linear');
Error in viewer3d>addOneVolume (line 218)
data=makePreviewVolume(data,nv);
Error in viewer3d>addVolume (line 184)
data=addOneVolume(data,V(:,:,:,i),Scales,Info,Editable);
Error in viewer3d>viewer3d_OpeningFcn (line 171)
if(isnumeric(V)), addVolume(V,[1 1 1],info); end
Error in gui_mainfcn (line 220)
feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});
Error in viewer3d (line 48)
gui_mainfcn(gui_State, varargin{:});
Error in calculate_volume (line 3)
viewer3d(V);
Walter Roberson
Walter Roberson on 11 Feb 2019
What is class(V) that you are passing to viewer3d ?

Sign in to comment.

Answers (0)

Categories

Find more on DICOM Format in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!