Commit 8ec76893 authored by Anna Lena R's avatar Anna Lena R
Browse files

added cropping to rescaleDefocusSeries

parent e6d7f975
Pipeline #111352 passed with stage
in 1 minute and 42 seconds
...@@ -290,7 +290,14 @@ for imageIdx = idxMaxMagnification+direction:direction:idxMaxMagnification+direc ...@@ -290,7 +290,14 @@ for imageIdx = idxMaxMagnification+direction:direction:idxMaxMagnification+direc
imFiltered = imScaled; imFiltered = imScaled;
else else
% align the cropped image to the reference using alignImages and dftregistration % align the cropped image to the reference using alignImages and dftregistration
[~, shifts, rotAngleDegree, imFiltered] = alignImages(imScaled,imReference,settings); keyboard
[~, shifts, rotAngleDegree, imFiltered] = alignImages(imScaled(...
settings.cutTop : size(imScaled,1)-settings.cutBottom ...
, settings.cutLeft : size(imScaled,2)-settings.cutRight) ...
, imReference(...
settings.cutTop : size(imReference,1)-settings.cutBottom ...
, settings.cutLeft : size(imReference,2)-settings.cutRight) ...
,settings);
end end
% Apply scaling and registered shifts/rotations to original image (performed in a single step % Apply scaling and registered shifts/rotations to original image (performed in a single step
......
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