mirror of
https://github.com/c-sooyoung/fold_slice.git
synced 2026-09-17 21:49:08 +09:00
initial commit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user