Changeset 1123 for trunk/src/series/civ_series.m
- Timestamp:
- Aug 21, 2023, 5:53:05 PM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/civ_series.m
r1122 r1123 89 89 end 90 90 end 91 % estimated CPUTime92 % CPUtime_unit=0.01;%estimated time for a multiplication (in microsecond)93 % if isfield(Param.SeriesData,'FileInfo')&&isfield(Param.SeriesData.FileInfo{1},'Height')&&isfield(Param.SeriesData.FileInfo{1},'Width')94 % pixnbre=Param.SeriesData.FileInfo{1}.Height*Param.SeriesData.FileInfo{1}.Width; % total number of pxels for input images95 % CPUtime=0;96 % if isfield(Data.ActionInput,'Civ1')97 % %BoxSize=Data.ActionInput.Civ1.CorrBoxSize(1)*Data.ActionInput.Civ1.CorrBoxSize(2);98 % tic99 % testboxa=rand(Data.ActionInput.Civ1.CorrBoxSize(1),Data.ActionInput.Civ1.CorrBoxSize(2));100 % testboxb=rand(Data.ActionInput.Civ1.SearchBoxSize(1),Data.ActionInput.Civ1.SearchBoxSize(2));101 % anss=conv2(testboxa,testboxb);102 % CPUtime_unit=toc;103 % nb_box=pixnbre/(Data.ActionInput.Civ1.Dx*Data.ActionInput.Civ1.Dy);104 % %nbpos=Data.ActionInput.Civ1.SearchBoxSize-Data.ActionInput.Civ1.CorrBoxSize;105 % CPUtime=2*CPUtime_unit*nb_box%*BoxSize*nbpos(1)*nbpos(2);% adjustement factor 2 used106 % end107 % if isfield(Data.ActionInput,'Patch1')108 % CPUtime=2*CPUtime;109 % end110 % if isfield(Data.ActionInput,'Civ2')111 % tic112 % testboxa=rand(Data.ActionInput.Civ2.CorrBoxSize(1),Data.ActionInput.Civ2.CorrBoxSize(2));113 % testboxb=rand(Data.ActionInput.Civ2.SearchBoxSize(1),Data.ActionInput.Civ2.SearchBoxSize(2));114 % anss=conv2(testboxa,testboxb);115 % CPUtime_unit=toc;116 % nb_box=pixnbre/(Data.ActionInput.Civ2.Dx*Data.ActionInput.Civ2.Dy);117 % %BoxSize=Data.ActionInput.Civ2.CorrBoxSize(1)*Data.ActionInput.Civ2.CorrBoxSize(2);118 % %nbpos=Data.ActionInput.Civ2.SearchBoxSize-Data.ActionInput.Civ2.CorrBoxSize;119 % CPUtime=CPUtime+2*CPUtime_unit*nb_box;%*BoxSize*nbpos(1)*nbpos(2);120 % end121 % if isfield(Data.ActionInput,'Patch2')122 % CPUtime=(4/3)*CPUtime;123 % end124 % Data.CPUTime=ceil(CPUtime/6); % estimated CPU time per field pair in minute125 % Data.CPUTime=Data.CPUTime/10; % displqy CPU time with 1 digit beyond dot126 % end127 91 return 128 92 end
Note: See TracChangeset
for help on using the changeset viewer.