Ignore:
Timestamp:
Dec 3, 2011, 10:25:45 PM (12 years ago)
Author:
sommeria
Message:

many corrections, use of the new GUI civ with mask, grid and the new matlab civ1 and fix
pivlab now included in civ_matlab which contains all matlab subfunctions for civ.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_motion.m

    r309 r315  
    218218             % case of PIV correlation display
    219219                    if test_piv
    220                         %par=civ('read_param_civ1',hhciv);
    221220                        par=read_GUI(hhciv.Civ1);
    222221                        [dd,ind_pt]=min(abs(Field.X-xy(1,1))+abs(Field.Y-xy(1,2)));
    223222                        xround=Field.X(ind_pt);
    224223                        yround=Field.Y(ind_pt);
    225                         par.PointCoord=[xround size(Field.A,1)-yround+1];
     224                        par.Grid=[xround size(Field.A,1)-yround+1];
    226225                        % mark the correlation box with a rectangle
    227                         par.filename_ima_a=Field.A;
    228                         par.filename_ima_b=Field.B;
     226                        par.ImageA=Field.A;
     227                        par.ImageB=Field.B;
     228                        [par.ImageHeight,par.ImageWidth]=size(par.ImageA);
    229229                        Param.Civ1=par;
    230230                        ibx2=floor((par.Bx-1)/2);
     
    249249                            set(hhhh,'Position',[xround-isx2+shiftx yround-isy2+shifty 2*isx2 2*isy2])
    250250                        end
    251                         %[xtable, ytable, utable, vtable, ctable, typevector, result_conv] = ...
    252                          %               pivlab (Field.A,Field.B,ibx2,iby2,isx2,isy2,shiftx,shifty,[xround size(Field.A,1)-yround+1], 1, []);
    253                         [Data,errormsg,result_conv]= civ_matlab(Param)
     251                        [Data,errormsg,result_conv]= civ_matlab(Param);
    254252                        rangx(1)=-(isx2-ibx2)+shiftx;
    255253                        rangx(2)=isx2-ibx2+shiftx;
     
    268266                                set(0,'CurrentFigure',corrfig(1))
    269267                                AxeData.CurrentCorrImage=imagesc(rangx,-rangy,result_conv,[0 1]);
    270                                 AxeData.CurrentVector=line([0 Data.Civ1_U],[0 -Data.Civ1_V],'Tag','vector');
    271                                
     268                                AxeData.CurrentVector=line([0 Data.Civ1_U],[0 Data.Civ1_V],'Tag','vector');               
    272269                                colorbar
    273270                                set(haxes,'UserData',AxeData)
     
    278275                            set(AxeData.CurrentCorrImage,'XData',rangx)
    279276                            set(AxeData.CurrentCorrImage,'YData',-rangy)
    280                             set(AxeData.CurrentVector,'XData',[0 Data.Civ1_U],'YData',[0 -Data.Civ1_V])
     277                            set(AxeData.CurrentVector,'XData',[0 Data.Civ1_U],'YData',[0 Data.Civ1_V])
    281278                        end
    282279                    end
Note: See TracChangeset for help on using the changeset viewer.