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 <>
parent a015da85
......@@ -137,6 +137,10 @@ darkendname = fullfile(parameters.acq.dir,'0_rawdata',,'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',, sprintf('darkend%04d.edf', ii_dark));
dark = dark + edf_read(darkendname);
dark = dark/parameters.acq.ndark;
info.datatype = 'float32';
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