Skip to content
Snippets Groups Projects
Commit eb8b0547 authored by Wolfgang Ludwig's avatar Wolfgang Ludwig
Browse files

minor fixes

parent c14370fc
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,8 @@ function [refor, estim_space_bbox_pix, estim_orient_bbox] = gt6DCreateProjDataFr ...@@ -18,7 +18,8 @@ function [refor, estim_space_bbox_pix, estim_orient_bbox] = gt6DCreateProjDataFr
'rspace_oversize', 1.1, ... 'rspace_oversize', 1.1, ...
'ospace_lims', [], ... 'ospace_lims', [], ...
'include_all', false, ... 'include_all', false, ...
'save', false ); 'save', false, ...
'psf', []);
conf = parse_pv_pairs(conf, varargin); conf = parse_pv_pairs(conf, varargin);
if (~isstruct(gr_id)) if (~isstruct(gr_id))
...@@ -299,7 +300,7 @@ function [refor, estim_space_bbox_pix, estim_orient_bbox] = gt6DCreateProjDataFr ...@@ -299,7 +300,7 @@ function [refor, estim_space_bbox_pix, estim_orient_bbox] = gt6DCreateProjDataFr
proj.vol_size_x = vol_size(2); proj.vol_size_x = vol_size(2);
proj.vol_size_y = vol_size(1); proj.vol_size_y = vol_size(1);
proj.vol_size_z = vol_size(3); proj.vol_size_z = vol_size(3);
proj.psf = conf.psf;
refor.proj(conf.det_index) = proj; refor.proj(conf.det_index) = proj;
refor.bb_ors = ors; refor.bb_ors = ors;
......
...@@ -30,7 +30,7 @@ function [img, varargout] = edf_read(filename, GT_bb, dispmes, info, varargin) ...@@ -30,7 +30,7 @@ function [img, varargout] = edf_read(filename, GT_bb, dispmes, info, varargin)
dispmes = ~strcmp(dispmes, 'nodisp'); dispmes = ~strcmp(dispmes, 'nodisp');
end end
conf = struct('verbose', dispmes, 'convert', true); conf = struct('verbose', dispmes, 'convert', true, 'permute', true);
conf = parse_pv_pairs(conf, varargin); conf = parse_pv_pairs(conf, varargin);
% Check file % Check file
...@@ -102,11 +102,12 @@ function [img, varargout] = edf_read(filename, GT_bb, dispmes, info, varargin) ...@@ -102,11 +102,12 @@ function [img, varargout] = edf_read(filename, GT_bb, dispmes, info, varargin)
%%% Let's reshape to the real format of the matrix %%% Let's reshape to the real format of the matrix
img = reshape(img, dim_1, dim_2, info.dim_3); img = reshape(img, dim_1, dim_2, info.dim_3);
if conf.permute
if (info.dim_3 > 1) % 3D volume if (info.dim_3 > 1) % 3D volume
img = permute(img, [2 1 3]); % reorganise dimensions img = permute(img, [2 1 3]); % reorganise dimensions
else % 2D image else % 2D image
img = transpose(img); img = transpose(img);
end
end end
if (~isa(img, 'double') && conf.convert) if (~isa(img, 'double') && conf.convert)
......
...@@ -27,9 +27,9 @@ function bl = gtFwdSimBuildDifstackBlobs(blobids, parameters, stackUSize, stackV ...@@ -27,9 +27,9 @@ function bl = gtFwdSimBuildDifstackBlobs(blobids, parameters, stackUSize, stackV
blob_bb = blob_bb([2 1 3 5 4 6]); blob_bb = blob_bb([2 1 3 5 4 6]);
bl(ii).mbbsize = blob_bb(4:6); bl(ii).mbbsize = blob_bb(4:6);
bl(ii).mbbu = [blob_bb(1), blob_bb(1) + blob_bb(4) + 1]; bl(ii).mbbu = [blob_bb(1), blob_bb(1) + blob_bb(4) - 1];
bl(ii).mbbv = [blob_bb(2), blob_bb(2) + blob_bb(5) + 1]; bl(ii).mbbv = [blob_bb(2), blob_bb(2) + blob_bb(5) - 1];
bl(ii).mbbw = [blob_bb(3), blob_bb(3) + blob_bb(6) + 1]; bl(ii).mbbw = [blob_bb(3), blob_bb(3) + blob_bb(6) - 1];
% Essentially zero pads the blob to make it fit into ASTRA's % Essentially zero pads the blob to make it fit into ASTRA's
% diffraction stack % diffraction stack
......
...@@ -16,8 +16,8 @@ function [found_intensity, spotInfo] = gtFwdSimCheckSpotInRawImages(uvw, spotsCo ...@@ -16,8 +16,8 @@ function [found_intensity, spotInfo] = gtFwdSimCheckSpotInRawImages(uvw, spotsCo
% completeness) is empty, use the same size as the difspot average size + % completeness) is empty, use the same size as the difspot average size +
% 5 percent % 5 percent
if isempty(parameters.fsim.bb_size) if isempty(parameters.fsim.bb_size)
bbhsize = floor(spotsCommProps.Xsize*1.05); bbhsize = spotsCommProps.stackUSize;
bbvsize = floor(spotsCommProps.Ysize*1.05); bbvsize = spotsCommProps.stackVSize;
else else
bbhsize = parameters.fsim.bb_size(1); bbhsize = parameters.fsim.bb_size(1);
bbvsize = parameters.fsim.bb_size(2); bbvsize = parameters.fsim.bb_size(2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment