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

Renamed a few EBSD loading functions

parent dc3ea1e6
No related branches found
No related tags found
No related merge requests found
function [EBSD_e_map, EBSD_r_map] = gtReadEBSDMapEulerCSVFile(filename, axes_perm)
% function [EBSD_e_map, EBSD_r_map] = gtReadEBSDMapEulerCSVFile(filename, axes_perm)
function [EBSD_e_map, EBSD_r_map] = gtEBSDLoadMapEulerCSVFile(filename, axes_perm)
% function [EBSD_e_map, EBSD_r_map] = gtEBSDLoadMapEulerCSVFile(filename, axes_perm)
% Axes permutation allows to easily deal with different reference
% systems, like for instance:
% DCT Axes <-> EBSD Axes ([x y z] <-> [x'y'z'])
......
function EBSD_struct = gtReadEBSDMapEulerCTFFile(filename, varargin)
% function [EBSD_e_map, EBSD_r_map] = gtReadEBSDMapEulerCTFFile(filename,
function EBSD_struct = gtEBSDLoadMapEulerCTFFile(filename, varargin)
% function [EBSD_e_map, EBSD_r_map] = gtEBSDLoadMapEulerCTFFile(filename, varargin)
% INPUT:
% axes_perm : [1:3] - vector<1x3>
% stretch_axes : [1 1] - vector<1x2>
......@@ -73,6 +73,7 @@ function EBSD_struct = gtReadEBSDMapEulerCTFFile(filename, varargin)
% EBSD_e_map(ii) = ea3;
EBSD_mad = reshape(input(:, 9), sizes);
EBSD_bc = reshape(input(:, 10), sizes);
if (~conf.euler_in_degrees)
EBSD_e_map = EBSD_e_map * 180 / pi;
......@@ -134,6 +135,7 @@ function EBSD_struct = gtReadEBSDMapEulerCTFFile(filename, varargin)
EBSD_r_map = imresize(EBSD_r_map, 'nearest', 'scale', conf.stretch_axes);
EBSD_mask = imresize(EBSD_mask, 'nearest', 'scale', conf.stretch_axes);
EBSD_mad = imresize(EBSD_mad, 'nearest', 'scale', conf.stretch_axes);
EBSD_bc = imresize(EBSD_bc, 'nearest', 'scale', conf.stretch_axes);
end
EBSD_mask = logical(EBSD_mask);
......@@ -143,6 +145,7 @@ function EBSD_struct = gtReadEBSDMapEulerCTFFile(filename, varargin)
EBSD_r_map = permute(EBSD_r_map, [2 1 3]);
EBSD_mask = EBSD_mask';
EBSD_mad = EBSD_mad';
EBSD_bc = EBSD_bc';
end
EBSD_struct = conf;
......@@ -150,6 +153,7 @@ function EBSD_struct = gtReadEBSDMapEulerCTFFile(filename, varargin)
EBSD_struct.map_r = EBSD_r_map;
EBSD_struct.mask = EBSD_mask;
EBSD_struct.mad = EBSD_mad;
EBSD_struct.bc = EBSD_bc;
EBSD_struct.pixel_size = reshape(scales, 1, []);
fprintf('\b\b, Done in %f seconds.\n', toc(c));
......
function EBSD_struct = gtReadEBSDMapEulerTSVFile(filename, varargin)
% function [EBSD_e_map, EBSD_r_map] = gtReadEBSDMapEulerTSVFile(filename,
function EBSD_struct = gtEBSDLoadMapEulerTSVFile(filename, varargin)
% function [EBSD_e_map, EBSD_r_map] = gtEBSDLoadMapEulerTSVFile(filename, varargin)
%
% DEPRECATED, in favour of gtEBSDLoadMapEulerCTFFile (if possible!)
%
% INPUT:
% axes_perm : [1:3] - vector<1x3>
% stretch_axes : [1 1] - vector<1x2>
......@@ -141,6 +144,7 @@ function EBSD_struct = gtReadEBSDMapEulerTSVFile(filename, varargin)
EBSD_struct.map_r = EBSD_r_map;
EBSD_struct.mask = EBSD_mask;
EBSD_struct.mad = [];
EBSD_struct.bc = [];
EBSD_struct.pixel_size = reshape(scales, 1, []);
fprintf('\b\b, Done in %f seconds.\n', toc(c));
......
function EBSD_mask = gtReadEBSDMapIndexingTSVFile(filename)
function EBSD_mask = gtEBSDLoadMapIndexingTSVFile(filename)
c = tic();
fprintf('Reading from file: "%s"..', filename);
......
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