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
+14
View File
@@ -0,0 +1,14 @@
function [object] = get_ptycho_object(reconDir, varargin)
%Get object function from a ptychographic reconstruction
% Input: reconDir-dir to the recon file (.h5)
% Output: object-complex object function
if nargin==1
objectPath = '/reconstruction/p/objects/object_0';
else
objectPath = varargin{1};
end
h = h5read(reconDir,objectPath);
object = h.r + 1i*h.i;
end