GOT ERROR WHEN USING MEDICAL IMAGE VIEWER TOOLBOX

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 件のコメント

Image Analyst
Image Analyst 2022 年 6 月 19 日
Does Volume Viewer try to use the "volumes" property, or the "volume" property?
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 件)

カテゴリ

ヘルプ センター および File ExchangeData Import and Analysis についてさらに検索

質問済み:

2022 年 6 月 19 日

コメント済み:

2023 年 9 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by