Skip to content
Snippets Groups Projects
Commit 5a9cccd9 authored by Nicola Vigano's avatar Nicola Vigano
Browse files

Fixed bug in gt6DAnalyseVoxelProperties

parent 2832ddbc
No related branches found
No related tags found
No related merge requests found
function gt6DAnalyseVoxelProperties(test_data, result, post_result, voxel, threshold_min, threshold_max)
bigSize = size(result.solution{1});
finalSize = size(result.deviation{1});
offsets = (bigSize - finalSize) /2;
theo_voxel = voxel - offsets;
rec_size = [size(result.solution{1}, 1), size(result.solution{1}, 2), size(result.solution{1}, 3)];
result_size = [size(result.expected_dmvol, 1), size(result.expected_dmvol, 2), size(result.expected_dmvol, 3)];
offset = floor((rec_size - result_size) / 2) + 1;
theo_voxel = voxel - offset;
fprintf('Distance of reconstructed from real: %d (deg)\n', post_result.distance_deg_alt(theo_voxel(1), theo_voxel(2), theo_voxel(3)))
intensities_recon = cellfun(@(x)x(voxel(1), voxel(2), voxel(3)), result.solution);
......
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