- Timestamp:
- Apr 6, 2011, 11:54:15 PM (14 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r232 r233 4671 4671 function TestCiv1_Callback(hObject, eventdata, handles) 4672 4672 %------------------------------------------------------------------------ 4673 set(handles.TestCiv1,'BackgroundColor',[1 1 0]) 4674 drawnow 4673 4675 test_civ1=get(handles.TestCiv1,'Value'); 4674 4676 if test_civ1 … … 4733 4735 set(corrfig,'DeleteFcn',{@closeview_field})% 4734 4736 end 4737 set(handles.TestCiv1,'BackgroundColor',[1 0 0]) 4735 4738 else 4736 4739 corrfig=findobj(allchild(0),'tag','corrfig');% look for a current figure for image correlation display -
trunk/src/pivlab.m
r231 r233 99 99 image1_crop=image1_roi(jref-iby2:jref+iby2,iref-ibx2:iref+ibx2); 100 100 image2_crop=image2_roi(jref+shifty-isy2:jref+shifty+isy2,iref+shiftx-isx2:iref+shiftx+isx2); 101 image1_crop=image1_crop-mean(mean(image1_crop)); 102 image2_crop=image2_crop-mean(mean(image2_crop)); 101 103 if mask(jref,iref)==0 102 104 %reference: Oliver Pust, PIV: Direct Cross-Correlation -
trunk/src/read_field.m
r227 r233 41 41 end 42 42 test_civx=0; 43 ParamIn44 43 if ~strcmp(ParamIn.FieldName,'get_field...')% if get_field is not requested, look for Civx data 45 44 FieldList=calc_field;%list of possible fields for Civx data … … 47 46 field_index=strcmp(ParamOut.FieldName,FieldList);%look for ParamOut.FieldName in the list 48 47 if isempty(find(field_index,1))% ParamOut.FieldName is not in the list, check whether Civx data exist 49 'TESTnc1' 50 Data=nc2struct(ObjectName,'ListGlobalAttribute','absolut_time_T0','civ') 48 Data=nc2struct(ObjectName,'ListGlobalAttribute','absolut_time_T0','civ'); 51 49 if ~isempty(Data.absolut_time_T0)&& ~isequal(Data.civ,0) 52 50 ParamOut.FieldName='velocity';%Civx data found, set .FieldName='velocity' by default -
trunk/src/set_object.m
r231 r233 681 681 testnew=0; 682 682 ObjectData=read_set_object(handles);%read the input parameters defining the object in the GUI set_object 683 if strcmp(ListObject{IndexObj_1},ObjectName)% we are editing the object whose projection is viewed in the uvmat frame683 if ~isempty(ListObject) && strcmp(ListObject{IndexObj_1},ObjectName)% we are editing the object whose projection is viewed in the uvmat frame 684 684 IndexObj=IndexObj_1; 685 685 projview='uvmat';
Note: See TracChangeset
for help on using the changeset viewer.