initial commit

This commit is contained in:
2026-08-07 15:56:42 +09:00
commit 91ad25aca9
1012 changed files with 159314 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
function [dof,pixel_size] = DOF_calculator(energy, det_pixel, det_N, distance, alpha)
%Calculate theoreical depth of focus for X-ray ptychography
% Inputs:
% **energy beam energy (keV)
% **det_pixel detector pixel size (m)
% **det_N # of pixels in the detector
% **distance # sample to detector distance (m)
% **alpha additional scaling coefficient
% *returns*:
% ++dof depth of focus for ptychography
lambda = 1.23984193e-9/energy; % wavelength (m)
pixel_size = lambda*distance/(det_pixel)/det_N; %pixel size in ptycho reconstruction (m)
dof = alpha * pixel_size^2/lambda;
end