From 5a931ab604f936059688ef37ac7f126eb1aa8256 Mon Sep 17 00:00:00 2001 From: Lorenzo Valzania <valzania@rnice7-0201.esrf.fr> Date: Thu, 5 Feb 2015 16:33:55 +0100 Subject: [PATCH] gtPlaceSubVolume: fixed warnings once more Signed-off-by: Lorenzo Valzania <valzania@rnice7-0201.esrf.fr> --- zUtil_Deformation/gtDefComputeKernelAverageMisorientation.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zUtil_Deformation/gtDefComputeKernelAverageMisorientation.m b/zUtil_Deformation/gtDefComputeKernelAverageMisorientation.m index 97e06412..f37316c4 100644 --- a/zUtil_Deformation/gtDefComputeKernelAverageMisorientation.m +++ b/zUtil_Deformation/gtDefComputeKernelAverageMisorientation.m @@ -18,7 +18,7 @@ function [kam, gam] = gtDefComputeKernelAverageMisorientation(dmvol, intvol, var - dmvol(1:(end-incrx), 1:(end-incry), 1:(end-incrz), :); dists = sqrt(sum(diffs .^ 2, 4)); dists = 2 * atand(dists); - dists_weights = dists < conf.threshold; + dists_weights = cast(dists < conf.threshold, class(dmvol)); pre_weigths = gtPlaceSubVolume(zeros(vol_size(1:3), class(dmvol)), dists_weights, incr); post_weigths = gtPlaceSubVolume(zeros(vol_size(1:3), class(dmvol)), dists_weights, [0 0 0]); -- GitLab