From a1ea7732e26b7c0690889891068e714e5ac64f17 Mon Sep 17 00:00:00 2001
From: Nicola Vigano <nicola.vigano@esrf.fr>
Date: Thu, 9 Apr 2015 15:29:08 +0200
Subject: [PATCH] Cluster/Extended: small fixes

Signed-off-by: Nicola Vigano <nicola.vigano@esrf.fr>
---
 zUtil_Deformation/gt6DCreateProjDataFromExtendedGrain.m | 2 +-
 zUtil_Deformation/gt6DCreateProjDataFromGrainCluster.m  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/zUtil_Deformation/gt6DCreateProjDataFromExtendedGrain.m b/zUtil_Deformation/gt6DCreateProjDataFromExtendedGrain.m
index 04121168..f26c7a18 100644
--- a/zUtil_Deformation/gt6DCreateProjDataFromExtendedGrain.m
+++ b/zUtil_Deformation/gt6DCreateProjDataFromExtendedGrain.m
@@ -12,7 +12,7 @@ function [refor, estim_space_bbox_pix, estim_orient_bbox] = gt6DCreateProjDataFr
 
     conf = struct( ...
         'verbose', false, ...
-        'min_eta', 15, ...
+        'min_eta', 20, ...
         'ospace_oversize', 1.1, ...
         'rspace_oversize', 1.1, ...
         'include_all', false, ...
diff --git a/zUtil_Deformation/gt6DCreateProjDataFromGrainCluster.m b/zUtil_Deformation/gt6DCreateProjDataFromGrainCluster.m
index 2b4696df..d0a2609a 100644
--- a/zUtil_Deformation/gt6DCreateProjDataFromGrainCluster.m
+++ b/zUtil_Deformation/gt6DCreateProjDataFromGrainCluster.m
@@ -329,10 +329,10 @@ function [refor, estim_space_bbox_pix, estim_orient_bbox] = gt6DCreateProjDataFr
     spots = arrayfun(@(x){sum(x.intm, 3)}, blobs);
     spots = permute(cat(3, spots{:}), [1 3 2]);
 
-    vol_size = bbox_size_pix + mean(bbox_size_pix) * 0.3;
-    proj.centerpix = estim_space_bbox_pix(1:3) + vol_size / 2;
+    proj.centerpix = estim_space_bbox_pix(1:3) + bbox_size_pix / 2;
     proj.bl = blobs;
     proj.stack = spots;
+    vol_size = bbox_size_pix + mean(bbox_size_pix) * 0.3;
     proj.vol_size_x = vol_size(2);
     proj.vol_size_y = vol_size(1);
     proj.vol_size_z = vol_size(3);
-- 
GitLab