Loading image issues

163 views
Skip to first unread message

Esther

unread,
May 27, 2011, 4:08:51 PM5/27/11
to dirart
Hi,

I tried to do deformable registration by using DIRART, but there are
some issues before actually start deformation and registration. I am
using MATLAB R2007b 32-bits and CERR v.3.3Beta1.

1. When I load images from "DICOM image set (using CERR)" and choose
"import all," there is an error message:
-----------------------------------------------------------------------------
dirart
ans =
1

C:\Fermi_Prostate_New\BRE-test\CTOR1
Reading scan ...
Reading CERROptions ...
CERR>> Using zValues to compute voxel thicknesses.
C:\Fermi_Prostate_New\BRE-test\plan
??? Reference to non-existent field 'all'.

Error in ==> DICOMJ_Import at 79
dcmdir = dcmdirS.(selected);

Error in ==> Load_2_Images at 25
[planC,pathname] = DICOMJ_Import(options);

Error in ==> reg3dgui>Load_Dicom_Images_Menu_Item_Callback at 345
Load_2_Images(handles,3);

Error in ==> gui_mainfcn at 96
feval(varargin{:});

Error in ==> reg3dgui at 82
gui_mainfcn(gui_State, vars{:});

Error in ==>
@(hObject,eventdata)reg3dgui('Load_Dicom_Images_Menu_Item_Callback',hObject,eventdata,guidata(hObject))

??? Error while evaluating uimenu Callback
-------------------------------------------------------------------------

But if I choose "Import Selected Patient," then it works just fine. I
guess that this importing function only imports the imaging and
doesn't import the structures. Therefore the error message is because
the study set includes the structure information.

2. After loading 2 sets of imaging, there is a window "Align Two
Images." There is only one object for both my moving image and fixed
image which is the whole image. If I choose "continue," there is
another error:

------------------------------------------------------------------------------
CERR>> Using zValues to compute voxel thicknesses.
??? Error using ==> minus
Matrix dimensions must agree.

Error in ==> Align_Images_After_Loading at 53
ori1 = (handles.images(1).origin -
c(1,:)).*handles.images(1).voxel_spacing_dir;

Error in ==> After_Loading_Two_Images at 21
handles = Align_Images_After_Loading(handles);

Error in ==> Load_2_Images at 62
After_Loading_Two_Images(handles);

Error in ==> reg3dgui>Load_Dicom_Images_Menu_Item_Callback at 345
Load_2_Images(handles,3);

Error in ==> gui_mainfcn at 96
feval(varargin{:});

Error in ==> reg3dgui at 82
gui_mainfcn(gui_State, vars{:});

Error in ==>
@(hObject,eventdata)reg3dgui('Load_Dicom_Images_Menu_Item_Callback',hObject,eventdata,guidata(hObject))

??? Error while evaluating uimenu Callback
--------------------------------------------------------------------------------

If I choose "Cancel," I will be able to see my image but the "Set/
Change Voxel dimension" was uncheckable after I check "allow change
image alinement."

Are these bugs from the version of MATLAB I use or there are other
issue? Can you please help me?
Thanks a lot!

Esther

Yang, Deshan

unread,
May 27, 2011, 4:39:21 PM5/27/11
to dir...@googlegroups.com

You should use matlab 2008a or later.

 
The materials in this message are private and may contain Protected Healthcare Information. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.

Esther

unread,
Jun 24, 2011, 3:29:29 PM6/24/11
to dirart
It did work on Matlab R2009a.

Turki M

unread,
Sep 25, 2014, 5:17:27 PM9/25/14
to dir...@googlegroups.com
Dear Deshan,


I am trying to load two files images (CT and CBCT) through CERR (which works fine in CERR) but I get this error :

Error using  - 
Matrix dimensions must agree.
Error in Align_Images_After_Loading (line 53)
ori1 = (handles.images(1).origin - c(1,:)).*handles.images(1).voxel_spacing_dir;
Error in After_Loading_Two_Images (line 21)
handles = Align_Images_After_Loading(handles);
Error in Load_2_Images (line 62)
After_Loading_Two_Images(handles);
Error in reg3dgui>Load_Dicom_Images_Menu_Item_Callback (line 345)
Load_2_Images(handles,3);
Error in gui_mainfcn (line 96)
        feval(varargin{:});
Error in reg3dgui (line 82)
gui_mainfcn(gui_State, vars{:});
Error in
@(hObject,eventdata)reg3dgui('Load_Dicom_Images_Menu_Item_Callback',hObject,eventdata,guidata(hObject)) 
Error while evaluating uimenu Callback


I am using MATLAB2012a on Mac.
Any suggestion would really appreciated.

Thanks

Turki

Bojan Štrbac

unread,
Dec 8, 2014, 8:05:21 AM12/8/14
to dir...@googlegroups.com
HI everybody,

When I try to load images through CERR plans i am getting following error message: 

Error using cd
Cannot CD to  (Name is nonexistent or not a directory).
Error in LoadLibMeshContour (line 7)
cd(meshDir)
Error in ART_Load_Structure_CERR (line 62)
meshDir = LoadLibMeshContour;
Error in Load_2_Images (line 48)
[structs,assocScanIDs,scanInfos] = ART_Load_Structure_CERR(planC);
Error in reg3dgui>Load_Images_From_CERR_Plans_Menu_Item_Callback (line 340)
Load_2_Images(handles,2);
Error in gui_mainfcn (line 96)
        feval(varargin{:});
Error in reg3dgui (line 82)
gui_mainfcn(gui_State, vars{:});
Error in guidemfile/@(hObject,eventdata)reg3dgui('Load_Images_From_CERR_Plans_Menu_Item_Callback',hObject,eventdata,guidata(hObject))
 
Error while evaluating uimenu Callback

I am using MATLAB R2012
Reply all
Reply to author
Forward
0 new messages