diff --git a/zUtil_Deformation/GtOrientationSampling.m b/zUtil_Deformation/GtOrientationSampling.m index 5158472add05b06e8c35c05a3b78ed2b338e5d78..377a96eb6b23e6d09cf3e2f80432d288e20b9382 100644 --- a/zUtil_Deformation/GtOrientationSampling.m +++ b/zUtil_Deformation/GtOrientationSampling.m @@ -192,9 +192,11 @@ classdef GtOrientationSampling < handle end if (~isempty(self.lattice_ss) && numel(self.lattice_ss) >= det_ind) - or_ss = self.lattice_ss(ii_or).gr(:); + or_ss = self.lattice_ss.gr(:); for ii_or = 1:numel(or_ss) - or_ss{ii_or}.allblobs = or_ss{ii_or}.allblobs(det_ind); + for ii_sub_or = 1:numel(or_ss{ii_or}) + or_ss{ii_or}{ii_sub_or}.allblobs = or_ss{ii_or}{ii_sub_or}.allblobs(det_ind); + end end else or_ss = {};