Commit 8822ad7f authored by paulphilipp.meyer's avatar paulphilipp.meyer
Browse files

added detector asiray timepix as tp, flipud ccd

parent 1eebe3f8
Pipeline #154158 passed with stage
in 1 minute and 38 seconds
...@@ -63,18 +63,20 @@ switch lower(detectorName) ...@@ -63,18 +63,20 @@ switch lower(detectorName)
result = @(fileName) (fliplr(single(imread(fileName)))); result = @(fileName) (fliplr(single(imread(fileName))));
case 'iris' case 'iris'
result = @(fileName) (rot90(single(imread_itex(fileName)),2)); result = @(fileName) (rot90(single(imread_itex(fileName)),2));
case 'zyla' case 'zyla' % andor zyla
result = @(fileName) (fliplr(flipud(single(imread(fileName)))));
case 'pco'
result = @(fileName) (fliplr(flipud(single(imread(fileName))))); result = @(fileName) (fliplr(flipud(single(imread(fileName)))));
case 'pco' % pco2000
result = @(fileName) (single(imread(fileName)));
case 'timepix' case 'timepix'
if (nargin > 1) if (nargin > 1)
result = @(fileName) (rot90(single(imread_timepix(fileName, settings)))); result = @(fileName) (rot90(single(imread_timepix(fileName, settings))));
else else
result = @(fileName) (rot90(single(imread_timepix(fileName)))); result = @(fileName) (rot90(single(imread_timepix(fileName)), 3));
end end
case 'ccd' case 'ccd'
result = @(fileName) (imread_ccd(fileName)); result = @(fileName) (flipud(imread_ccd(fileName)));
case 'tp' % timepix from sandy, controlled by asiray
result = @(fileName) (fliplr(rot90(single(imread(fileName)))));
otherwise otherwise
error(sprintf('detector %s not recognized', detectorName)); error(sprintf('detector %s not recognized', detectorName));
end end
Markdown is supported
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