Commit a57a9286 authored by Zheheng Liu's avatar Zheheng Liu
Browse files

modification of dark image creation in gtPreprocessing.


Signed-off-by: Zheheng Liu's avatarZheheng Liu <zheheng.liu@esrf.fr>
parent a015da85
......@@ -137,6 +137,10 @@ darkendname = fullfile(parameters.acq.dir,'0_rawdata',parameters.acq.name,'darke
if ~exist(darkname,'file')
disp('Creating dark.edf image of scan.')
[dark,info] = edf_read(darkendname);
for ii_dark = 1:(parameters.acq.ndark - 1)
darkendname = fullfile(parameters.acq.dir, '0_rawdata', parameters.acq.name, sprintf('darkend%04d.edf', ii_dark));
dark = dark + edf_read(darkendname);
end
dark = dark/parameters.acq.ndark;
info.datatype = 'float32';
edf_write(dark,darkname,info);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment