Changeset 859 for trunk/src/series/civ_input.m
- Timestamp:
- Jan 27, 2015, 9:21:37 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/civ_input.m
r858 r859 1149 1149 %------------------------------------------------------------------------ 1150 1150 1151 % --- Executes on button press in CheckDeformation. 1152 function CheckDeformation_Callback(hObject, eventdata, handles) 1153 set(handles.configSource,'String','NEW') 1154 set(handles.OK,'BackgroundColor',[1 0 1]) 1155 1151 1156 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1152 1157 % Callbacks in the uipanel Fix1 … … 1886 1891 Param.Action.RUN=1; 1887 1892 Param.ActionInput=read_GUI(handles.civ_input); 1893 if isfield(Param,'OutputSubDir') 1888 1894 Param=rmfield(Param,'OutputSubDir'); %remove output file option from civ_series 1889 Param.ActionInput.Civ2.SmoothParam=0;% launch Civ2 with no data point (to get the image names for A and B) 1895 end 1896 Param.ActionInput.Civ2.CorrSmooth=0;% launch Civ2 with no data point (to get the image names for A and B) 1890 1897 set(handles.Civ1,'BackgroundColor',[1 1 0]) 1898 set(handles.Fix1,'BackgroundColor',[1 1 0]) 1899 set(handles.Patch1,'BackgroundColor',[1 1 0]) 1891 1900 [Data,errormsg]=civ_series(Param);% get the civ1+fix1 results 1892 1901 … … 1916 1925 hhview_field=guihandles(hview_field);% 1917 1926 set(hview_field,'CurrentAxes',hhview_field.PlotAxes) 1918 %ViewData=get(hview_field,'UserData');1927 ViewData=get(hview_field,'UserData'); % get the currently plotted field (the image A) 1919 1928 % store info in the UserData of view-field 1920 1929 ViewData.CivHandle=handles.civ_input;% indicate the handle of the civ GUI in view_field … … 1922 1931 ViewData.PlotAxes.X=Data.Civ2_X'; 1923 1932 ViewData.PlotAxes.Y=Data.Civ2_Y'; 1924 ViewData.PlotAxes.ShiftX=Data.Civ2_U'; 1933 ViewData.PlotAxes.ShiftX=Data.Civ2_U';% shift at each point (from patch1) estimated by running civ2 1925 1934 ViewData.PlotAxes.ShiftY=Data.Civ2_V'; 1926 1935 ViewData.PlotAxes.Civ1_SubRange=Data.Civ1_SubRange; … … 1932 1941 ViewData.PlotAxes.Civ2_Dt=Data.Civ2_Dt; 1933 1942 set(hview_field,'UserData',ViewData)% store the info in the UserData of image view_field 1943 bckcolor=get(handles.civ_input,'Color'); 1944 set(handles.Civ1,'BackgroundColor',bckcolor)% indicate civ1 calmculation is finished 1945 set(handles.Fix1,'BackgroundColor',bckcolor) 1946 set(handles.Patch1,'BackgroundColor',bckcolor) 1947 drawnow 1934 1948 1935 1949 %% look for a current figure for image correlation display … … 2245 2259 % --- Executes on button press in TestPatch2. 2246 2260 function TestPatch2_Callback(hObject, eventdata, handles) 2261 2262 2263
Note: See TracChangeset
for help on using the changeset viewer.