- Timestamp:
- Jul 13, 2017, 3:49:43 PM (7 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/geometry_calib.m
r1006 r1008 206 206 Intrinsic.Npy=str2num(get(hhuvmat.num_Npy,'String')); 207 207 Intrinsic.coord_files=get(handles.ListCoordFiles,'String'); 208 Intrinsic.f 1=str2num(get(handles.fx,'String'));209 Intrinsic.f 2=str2num(get(handles.fy,'String'));210 Intrinsic.k =str2num(get(handles.kc,'String'));208 Intrinsic.fx=str2num(get(handles.fx,'String')); 209 Intrinsic.fy=str2num(get(handles.fy,'String')); 210 Intrinsic.kc=str2num(get(handles.kc,'String')); 211 211 Intrinsic.Cx=str2num(get(handles.Cx,'String')); 212 212 Intrinsic.Cy=str2num(get(handles.Cy,'String')); 213 if isempty(Intrinsic.k )214 Intrinsic.k =0;213 if isempty(Intrinsic.kc) 214 Intrinsic.kc=0; 215 215 end 216 216 if isempty(Intrinsic.Cx)||isempty(Intrinsic.Cy) … … 307 307 Intrinsic.Npy=str2num(get(hhuvmat.num_Npy,'String')); 308 308 Intrinsic.coord_files=get(handles.ListCoordFiles,'String'); 309 Intrinsic.f 1=str2num(get(handles.fx,'String'));310 Intrinsic.f 2=str2num(get(handles.fy,'String'));311 Intrinsic.k =str2num(get(handles.kc,'String'));309 Intrinsic.fx=str2num(get(handles.fx,'String')); 310 Intrinsic.fy=str2num(get(handles.fy,'String')); 311 Intrinsic.kc=str2num(get(handles.kc,'String')); 312 312 Intrinsic.Cx=str2num(get(handles.Cx,'String')); 313 313 Intrinsic.Cy=str2num(get(handles.Cy,'String')); 314 if isempty(Intrinsic.k )315 Intrinsic.k =0;314 if isempty(Intrinsic.kc) 315 Intrinsic.kc=0; 316 316 end 317 317 if isempty(Intrinsic.Cx)||isempty(Intrinsic.Cy) … … 486 486 function GeometryCalib=calib_normal(Coord,Intrinsic) 487 487 %------------------------------------------------------------------------ 488 Calib.f 1=str2num(get(handles.fx,'String'));489 Calib.f 2=str2num(get(handles.fy,'String'));490 Calib.k =str2num(get(handles.kc,'String'));488 Calib.fx=str2num(get(handles.fx,'String')); 489 Calib.fy=str2num(get(handles.fy,'String')); 490 Calib.kc=str2num(get(handles.kc,'String')); 491 491 Calib.Cx=str2num(get(handles.Cx,'String')); 492 492 Calib.Cy=str2num(get(handles.Cy,'String')); 493 493 %default 494 if isempty(Calib.f 1)495 Calib.f 1=25/0.012;496 end 497 if isempty(Calib.f 2)498 Calib.f 2=25/0.012;499 end 500 if isempty(Calib.k )501 Calib.k =0;494 if isempty(Calib.fx) 495 Calib.fx=25/0.012; 496 end 497 if isempty(Calib.fy) 498 Calib.fy=25/0.012; 499 end 500 if isempty(Calib.kc) 501 Calib.kc=0; 502 502 end 503 503 if isempty(Calib.Cx)||isempty(Calib.Cy) … … 510 510 Calib.dpx=0.012;%arbitrary 511 511 Calib.dpy=0.012; 512 Calib.sx=Calib.f 1*Calib.dpx/(Calib.f2*Calib.dpy);513 Calib.f=Calib.f 2*Calib.dpy;514 Calib.kappa1=Calib.k /(Calib.f*Calib.f);512 Calib.sx=Calib.fx*Calib.dpx/(Calib.fy*Calib.dpy); 513 Calib.f=Calib.fy*Calib.dpy; 514 Calib.kappa1=Calib.kc/(Calib.f*Calib.f); 515 515 516 516 %initial guess … … 693 693 694 694 %------------------------------------------------------------------------ 695 function GeometryCalib=calib_3D_extrinsic(Coord, Intrinsic)695 function GeometryCalib=calib_3D_extrinsic(Coord, Intrinsic) 696 696 %------------------------------------------------------------------ 697 697 path_uvmat=which('geometry_calib');% check the path detected for source file uvmat … … 709 709 n_ima=1; 710 710 GeometryCalib.CalibrationType='3D_extrinsic'; 711 fx=str2num(get(Intrinsic.fx,'String')); 712 fy=str2num(get(Intrinsic.fy,'String')); 713 Cx=str2num(get(Intrinsic.Cx,'String')); 714 Cy=str2num(get(Intrinsic.Cy,'String')); 711 fx=Intrinsic.fx; 712 fy=Intrinsic.fy; 713 Cx=Intrinsic.Cx; 714 Cy=Intrinsic.Cy; 715 kc=Intrinsic.kc; 715 716 errormsg=''; 716 717 if isempty(fx) … … 728 729 return 729 730 end 730 GeometryCalib.fx_fy(1)= str2num(get(Intrinsic.fx,'String'));731 GeometryCalib.fx_fy(2)= str2num(get(Intrinsic.fy,'String'));732 GeometryCalib.Cx_Cy(1)= str2num(get(Intrinsic.Cx,'String'));733 GeometryCalib.Cx_Cy(2)= str2num(get(Intrinsic.Cy,'String'));734 GeometryCalib.kc= str2num(get(Intrinsic.kc,'String'));731 GeometryCalib.fx_fy(1)=fx; 732 GeometryCalib.fx_fy(2)=fy; 733 GeometryCalib.Cx_Cy(1)=Cx; 734 GeometryCalib.Cx_Cy(2)=Cy; 735 GeometryCalib.kc=kc; 735 736 fct_path=fullfile(path_UVMAT,'toolbox_calib'); 736 737 addpath(fct_path) -
trunk/src/series.m
r1005 r1008 2489 2489 %% Check whether alphabetical sorting of input Subdir is allowed by the Action fct (for multiples series entries) 2490 2490 if isfield(ParamOut,'AllowInputSort')&&isequal(ParamOut.AllowInputSort,'on')&& size(Param.InputTable,1)>1 2491 [tild,iview]=sort( InputTable(:,2)); % subdirectories sorted in alphabetical order2492 set(handles.InputTable,'Data', InputTable(iview,:));2491 [tild,iview]=sort(Param.InputTable(:,2)); % subdirectories sorted in alphabetical order 2492 set(handles.InputTable,'Data',Param.InputTable(iview,:)); 2493 2493 MinIndex_i=get(handles.MinIndex_i,'Data'); 2494 2494 MinIndex_j=get(handles.MinIndex_j,'Data');
Note: See TracChangeset
for help on using the changeset viewer.