GOT ERROR WHEN USING MEDICAL IMAGE VIEWER TOOLBOX
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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
3 comentarios
Siraj
el 29 de Sept. de 2023
You encountered an error while trying to use the "VolumeViewer3d" function from the Medical Image Reader and Viewer toolbox.
To investigate this, I attempted to read the file by downloading it from the provided drive link, and when attempting to read the image located in the "SPECT" folder, I received the error message "File read error, try again with another file."
I suspect that there might be an issue with the image file itself.
Respuestas (0)
Ver también
Categorías
Más información sobre Import, Export, and Conversion en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!