GOT ERROR WHEN USING MEDICAL IMAGE VIEWER TOOLBOX

조회 수: 1 (최근 30일)
mohd akmal masud
mohd akmal masud 2022년 6월 19일
댓글: Siraj 2023년 9월 29일
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
mohd akmal masud
mohd akmal masud 2022년 6월 19일
volumes
Siraj
Siraj 2023년 9월 29일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Import, Export, and Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by