Changeset 213
- Timestamp:
- Mar 4, 2011, 12:07:38 AM (14 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/geometry_calib.m
r207 r213 242 242 if strcmp(answer,'Yes') 243 243 if strcmp(calib_cell{val}(1:2),'3D')%set the plane position for 3D (projection) calibration 244 input_key={'Z (first position)','Z (last position)','Z (water surface)', 'refractive index','NbSlice','volume scan (y/n)','tilt angle '};245 input_val=[{num2str(ZEnd)} {num2str(ZStart)} {num2str(ZStart)} {'1.33 '} num2str(NbSlice_j) {volume_scan} {'0'}];246 answer=inputdlg(input_key,'slice position(s)',ones(1, 7), input_val,'on');244 input_key={'Z (first position)','Z (last position)','Z (water surface)', 'refractive index','NbSlice','volume scan (y/n)','tilt angle y axis','tilt angle x axis'}; 245 input_val=[{num2str(ZEnd)} {num2str(ZStart)} {num2str(ZStart)} {'1.333'} num2str(NbSlice_j) {volume_scan} {'0'} {'0'}]; 246 answer=inputdlg(input_key,'slice position(s)',ones(1,8), input_val,'on'); 247 247 %answer_1=msgbox_uvmat('INPUT_TXT',' Z= ',num2str(Z_plane)); 248 248 GeometryCalib.NbSlice=str2double(answer{5}); … … 254 254 end 255 255 GeometryCalib.SliceCoord=Z_plane'*[0 0 1]; 256 GeometryCalib.SliceAngle=answer{7}*ones(GeometryCalib.NbSlice,1)*[0 1 0];%rotation around y axis (to generalise) 256 GeometryCalib.SliceAngle(:,3)=0; 257 GeometryCalib.SliceAngle(:,2)=str2double(answer{7})*ones(GeometryCalib.NbSlice,1);%rotation around y axis (to generalise) 258 GeometryCalib.SliceAngle(:,1)=str2double(answer{8})*ones(GeometryCalib.NbSlice,1);%rotation around x axis (to generalise) 257 259 GeometryCalib.InterfaceCoord=[0 0 str2double(answer{3})]; 258 260 GeometryCalib.RefractionIndex=str2double(answer{4}); -
trunk/src/get_field.m
r204 r213 63 63 %% prepare the list of RUN fcts and set their paths 64 64 % functions included by default in 'get_field.m 65 menu_str={'PLOT';'FFT';'filter_band' ;'histogram'};65 menu_str={'PLOT';'FFT';'filter_band'}; 66 66 nb_builtin=numel(menu_str); 67 67 path_uvmat=fileparts(which('uvmat'));%path of the function 'uvmat' … … 627 627 return 628 628 else 629 perm_ind= [1:nbdim];629 perm_ind=1:nbdim; 630 630 end 631 631 if nbdim==3 … … 836 836 function plot_get_field(SubField,handles) 837 837 %------------------------------------------------------------------------ 838 list_fig=get(handles.list_fig,'String') 838 list_fig=get(handles.list_fig,'String'); 839 839 val=get(handles.list_fig,'Value'); 840 840 if strcmp(list_fig{val},'uvmat') -
trunk/src/mouse_motion.m
r207 r213 175 175 if size(Field.PlaneCoord)>=[ZIndex 3] 176 176 z=Field.PlaneCoord(ZIndex,3); 177 if isfield(Field,'PlaneAngle') 177 if isfield(Field,'PlaneAngle')&&~isequal(Field.PlaneAngle,[0 0 0]) 178 178 om=norm(Field.PlaneAngle(ZIndex,:));%norm of rotation angle in radians 179 179 OmAxis=Field.PlaneAngle(ZIndex,:)/om; %unit vector marking the rotation axis -
trunk/src/proj_field.m
r212 r213 208 208 209 209 else 210 if length(ivar_X)>1 | length(ivar_Y)>1| length(ivar_Z)>1210 if length(ivar_X)>1 || length(ivar_Y)>1 || length(ivar_Z)>1 211 211 errormsg='multiple coordinate input in proj_field.m'; 212 212 return … … 238 238 test3D=1; 239 239 end 240 if length(ivar_F)>1 | length(ivar_FF)>1240 if length(ivar_F)>1 || length(ivar_FF)>1 241 241 msgbox_uvmat('ERROR','multiple flag input in proj_field.m') 242 242 return … … 748 748 elseif isequal(ProjMode,'filter') %filtering 749 749 npoint=floor(linelength/DX)+1;% nbre of points in the profile (interval DX) 750 Xproj= [linelength/(2*npoint):linelength/npoint:linelength-linelength/(2*npoint)];750 Xproj=linelength/(2*npoint):linelength/npoint:linelength-linelength/(2*npoint); 751 751 siz=size(X_sel); 752 752 xregij=cos(theta(ip))*Xproj'*ones(1,siz(2))+ObjectData.Coord(ip,1); … … 887 887 eval(['ProjData.' VarName{ivar} '=((sum(A_out,1)/npY))'';']); 888 888 elseif nbcolor==3 889 vec_B(ind_in, [1:3])=vec_A(ICOMB,:);889 vec_B(ind_in,1:3)=vec_A(ICOMB,:); 890 890 vec_B(ind_out,1)=zeros(size(ind_out)); 891 891 vec_B(ind_out,2)=zeros(size(ind_out)); … … 1328 1328 end 1329 1329 npX=1+round(abs(Coord{NbDim}(end)-Coord{NbDim}(1))/DX);%nbre of points after interpol 1330 for idim= [1:NbDim]1330 for idim=1:NbDim 1331 1331 if test_interp(idim) 1332 1332 DimValue(idim)=1+round(abs(Coord{idim}(end)-Coord{idim}(1))/abs(DCoord_min(idim)));%nbre of points after possible interpolation on a regular gri -
trunk/src/set_object.m
r212 r213 767 767 %% plot the field projected on the object and store in the corresponding figue 768 768 'TESTproj' 769 UvData.Field 770 ObjectData 769 771 ProjData= proj_field(UvData.Field,ObjectData)%project the current interface field on ObjectData 770 772 PlotParam=read_plot_param(PlotHandles);
Note: See TracChangeset
for help on using the changeset viewer.