deformable registration

231 views
Skip to first unread message

ele...@gmail.com

unread,
Dec 12, 2014, 4:52:29 AM12/12/14
to dir...@googlegroups.com
Hi, 


I had tried to do deformable registration by Original Horn and Schunck Method (R) and i get this error:

Error happens: Too many output arguments.
1: line [7] - function [setpath]
2: line [45] - function [multigrid_7]
3: line [104] - function [start_registration_from_menu]
4: line [5920] - function [Start_Registration_Menu_Item_Callback]
5: line [96] - function [gui_mainfcn]
6: line [82] - function [reg3dgui]
7: line [0] - function [guidemfile/@(hObject,eventdata)reg3dgui('Start_Registration_Menu_Item_Callback',hObject,eventdata,guidata(hObject))]
>> which optical_flow_global_methods
/Users/elenamercerenau/Documents/matlab-h/dirart_programs_06_02_2011/dirart_programs/optical_flow_global_methods.m
>> which reg_method_dispatch
/Users/elenamercerenau/Documents/matlab-h/dirart_programs_06_02_2011/dirart_programs/reg_method_dispatch.m


I'm using MATLAB R2013a.


Thank you.

Yang, Deshan

unread,
Dec 12, 2014, 8:10:12 AM12/12/14
to dir...@googlegroups.com
Are you also using CERR? If yes, you need to put dirart path above cerr folder path.


Sent on a Sprint Samsung Galaxy Note® 3
--
You received this message because you are subscribed to the Google Groups "dirart" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dirart+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


The materials in this email are private and may contain Protected Health Information. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying, distribution 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 email.

justinj...@gmail.com

unread,
Dec 17, 2014, 10:36:20 PM12/17/14
to dir...@googlegroups.com

Hello,

I am attempting to register two DICOM images from folders on my desktop. I have a Mac and I cannot seem to unzip the CERR files onto my computer to load them through CERR.  The images load fine, but I am getting an error when I start registration.  This is the error I get:

Error while evaluating uicontrol Callback

Saving image data into folder: /Users/justinjaskowiak/Downloads/dirart_programs_06_02_2011/dirart_programs/temp_results

Error happens: Too many output arguments.
1: line [7] - function [setpath]
2: line [45] - function [multigrid_7]
3: line [104] - function [start_registration_from_menu]
4: line [5920] - function [Start_Registration_Menu_Item_Callback]
5: line [95] - function [gui_mainfcn]

6: line [82] - function [reg3dgui]
7: line [0] - function [guidemfile/@(hObject,eventdata)reg3dgui('Start_Registration_Menu_Item_Callback',hObject,eventdata,guidata(hObject))]
Cannot find an exact (case-sensitive) match for 'whichImageCoordinateToUse'

The closest match is: WhichImageCoordinateToUse in
/Users/justinjaskowiak/Downloads/dirart_programs_06_02_2011/dirart_programs/WhichImageCoordinateToUse.m


Error in DrawBoundaryBoxes (line 9)
    vecidx = whichImageCoordinateToUse(displaymode);


Error in update_display (line 306)
DrawBoundaryBoxes(handles,idx);


Error in RefreshDisplay (line 18)
    update_display(handles,idx);


Error in start_registration_from_menu (line 136)
    RefreshDisplay(handles);


Error in reg3dgui>Start_Registration_Menu_Item_Callback (line 5920)
start_registration_from_menu(handles.reg.registration_method,handles);


Error in gui_mainfcn (line 95)
        feval(varargin{:});

Error in reg3dgui (line 82)
    gui_mainfcn(gui_State, vars{:});


Error in
guidemfile/@(hObject,eventdata)reg3dgui('Start_Registration_Menu_Item_Callback',hObject,eventdata,guidata(hObject))


 
Error while evaluating uimenu Callback

Any ideas?  Thanks. 

Antonio Bruno

unread,
Feb 14, 2015, 12:04:27 PM2/14/15
to dir...@googlegroups.com
I have the same problem. I load with success two series of DICOM images but whem i try to perform the registration with "Start" this error appears:


Error happens: Too many output arguments.
1: line [7] - function [setpath]
2: line [45] - function [multigrid_7]
3: line [104] - function [start_registration_from_menu]
4: line [5920] - function [Start_Registration_Menu_Item_Callback]
5: line [95] - function [gui_mainfcn]

6: line [82] - function [reg3dgui]
7: line [0] - function [guidemfile/@(hObject,eventdata)reg3dgui('Start_Registration_Menu_Item_Callback',hObject,eventdata,guidata(hObject))]

What I have to do to solve this problem? Please help me.

Antonio

Yoga Nathan

unread,
Sep 26, 2017, 11:07:54 AM9/26/17
to dirart
Hi,
I just did the following it worked.
Go to the function 'setpath'

change the following commands 

[pathstr, name, ext, versn] = fileparts(p);
[pathstr2,name,ext,versn]=fileparts(pathstr);

                       to

[pathstr, name, ext] = fileparts(p);
[pathstr2,name,ext]=fileparts(pathstr);

Thanks
Yoganathan
Reply all
Reply to author
Forward
0 new messages