function PaSet = SaveParamSet(handles)
%-----------------------------------------------------------
%   Written by SUN Jia-Wei 200413.
%   Mail to Authors: jiaweisun0512@163.com
%
PaSet.WorkPath = handles.WorkPath;
PaSet.TR = handles.TR;
PaSet.EPIPath = handles.EPIPath;
PaSet.T1Path = handles.T1Path;

PaSet.IsDicom2Nifti = handles.D2N.IsD2N;
PaSet.Dicom2Nifti.IsEPI =  handles.D2N.EPI;
PaSet.Dicom2Nifti.IsT1 =  handles.D2N.T1;

PaSet.IsRemoveFirstnTimePoints = handles.RemoveTime.IsRemoveTime;
PaSet.RemoveFirstnTimePoints.Time = handles.RemoveTime.Time;

PaSet.IsSliceTiming = handles.Slice.IsSlice;
PaSet.SliceTiming.SliceRefer = handles.Slice.SliceRefer;
PaSet.SliceTiming.SliceOreder = handles.Slice.SliceOrder;
PaSet.SliceTiming.SliceNumber = handles.Slice.SliceNumber;

PaSet.IsRealign = handles.Realign.IsRealign;

PaSet.IsNormalize = handles.Normal.IsNormal;
PaSet.Normalize.Bbox = handles.Normal.Bbox;
PaSet.Normalize.VoxelSize = handles.Normal.VoxelSize;
PaSet.Normalize.Method = handles.Normal.Method;
PaSet.Normalize.People = handles.Normal.People;

PaSet.IsSmooth = handles.Smooth.IsSmooth;
PaSet.Smooth.fwhm = handles.Smooth.FWHM;

PaSet.IsDetrend = handles.Detrend.IsDetrend;

PaSet.IsCovariate = handles.Cov.IsCov;
PaSet.Covariate.IsCovDetrend = handles.Cov.IsCovDetrend;
PaSet.Covariate.IsCovFriston24 = handles.Cov.IsCovFriston24;
PaSet.Covariate.IsCovWM = handles.Cov.IsCovWM;
PaSet.Covariate.IsCovCSF = handles.Cov.IsCovCSF;
PaSet.Covariate.IsCovGlobal = handles.Cov.IsCovGlobal;
PaSet.Covariate.IsAddMeanBack = handles.Cov.IsAddMeanBack;
PaSet.Covariate.IsCovOther = handles.Cov.IsCovOther;
PaSet.Covariate.CovOther = handles.Cov.CovOtherROI;

PaSet.IsFilter = handles.Filter.IsFilter;
PaSet.Filter.LowPass_HighCut = handles.Filter.LowPass_HighCut;
PaSet.Filter.LowCut_HighPass = handles.Filter.LowCut_HighPass; 

PaSet.DynamicParameter.WinType = handles.DyPara.WinType; 
PaSet.DynamicParameter.WinStep = handles.DyPara.WinStep;
PaSet.DynamicParameter.WinSize = handles.DyPara.WinSize;
PaSet.DynamicParameter.Detrend = handles.DyPara.Detrend;
PaSet.DynamicParameter.DyMask = handles.DyMask;

PaSet.IsDynamicALFF = handles.DyALFF.IsALFF;
PaSet.DynamicALFF.LowPass_HighCut = handles.DyALFF.LowPass_HighCut;
PaSet.DynamicALFF.LowCut_HighPass = handles.DyALFF.LowCut_HighPass;

PaSet.IsDynamicfALFF = handles.DyfALFF.IsfALFF;
PaSet.DynamicfALFF.LowPass_HighCut = handles.DyfALFF.LowPass_HighCut;
PaSet.DynamicfALFF.LowCut_HighPass = handles.DyfALFF.LowCut_HighPass;

PaSet.IsDynamicReHo = handles.DyReHo.IsReHo;
PaSet.DynamicReHo.Cluster = handles.DyReHo.Cluster;

PaSet.IsDynamicDC = handles.DyDC.IsDC;
PaSet.DynamicDC.rValue = handles.DyDC.rValue;

% PaSet.IsDynamicGSCorr = handles.DyGSCorr.IsGSCorr;
% PaSet.DynamicGSCorr.Mask = handles.DyGSCorr.Mask;

PaSet.IsDynamicFC = handles.DyFC.IsFC;
PaSet.DynamicFC.FCROIDef = handles.DyFC.FCROIDef;
PaSet.DynamicFC.IsMultiple = handles.DyFC.IsMultiple;

PaSet.IsDynamicPerAF = handles.DyPerAF.IsPerAF;

% PaSet.IsDynamicVMHC = handles.DyVMHC.IsVMHC;
% 
% PaSet.IsDynamicConcor = handles.DyConcor.IsConcor;
% PaSet.DynamicConcor.IsVoxelWise = handles.DyConcor.IsVoxelWise;
% PaSet.DynamicConcor.IsVolumeWise = handles.DyConcor.IsVolumeWise;
% PaSet.DynamicConcor.IsALFF = handles.DyConcor.IsALFF;
% PaSet.DynamicConcor.IsfALFF = handles.DyConcor.IsfALFF;
% PaSet.DynamicConcor.IsReHo = handles.DyConcor.IsReHo;
% PaSet.DynamicConcor.IsDC = handles.DyConcor.IsDC;
% PaSet.DynamicConcor.IsGSCorr = handles.DyConcor.IsGSCorr;
% PaSet.DynamicConcor.IsVMHC = handles.DyConcor.IsVMHC;
% PaSet.DynamicConcor.IsSmooth = handles.DyConcor.IsSmooth;
% PaSet.DynamicConcor.fwhm = handles.DyConcor.FWHM;
end



