GOT ERROR WHEN USING MEDICAL IMAGE VIEWER TOOLBOX

1 view (last 30 days)
Dear All,
I used Medical Image Viewer Toolbox. But got error.
Error using -
Integers can only be combined with integers of the same class, or scalar doubles.
Error in VolumeViewer3D>freezeImageColors (line 7215)
idx = ceil( (double(cdata) - cax(1)) / (cax(2)-cax(1)) * nColors);
Error in VolumeViewer3D>setFusedVolume (line 3676)
freezeImageColors(a,h2)
Error in VolumeViewer3D>loadVolume (line 3236)
setFusedVolume(findobj('Tag','a1im_1'),findobj('Tag','a1im_2'),handles.axes.a1,...
Error in VolumeViewer3D (line 431)
loadVolume(inStruct);
This is my command
% Last chance tonight…
clc
clear all
SPECT = readImages('C:\Users\Akmal\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\Medical Image Reader and Viewer\SPECT');
CT = readImages('C:\Users\Akmal\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\Medical Image Reader and Viewer\CT');
%this is the extra step you are missing
SPECT.volumes = double(SPECT.volume);
CT.volumes = double(CT.volume);
%
tic; VolumeViewer3D(CT,SPECT); toc
ALL THE FUNCTION AND IMAGE ARE ATTACHED. https://drive.google.com/drive/folders/1tdZPedX3elYT60GPP8HQPs0acrwuAErN?usp=sharing

Answers (0)

Community Treasure Hunt

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

Start Hunting!