Skip to content
Snippets Groups Projects
Commit 596e790b authored by Nicola Vigano's avatar Nicola Vigano Committed by Nicola Vigano
Browse files

Shape-functions: added some support for eta-shape-functions (N-shape-functions)

parent 15e44c52
No related branches found
No related tags found
No related merge requests found
function sfs_n = gtDefShapeFunctionsNW2N(sfs_nw)
% FUNCTION sfs_n = gtDefShapeFunctionsNW2N(sfs_nw)
%
sfs_n = cell(size(sfs_nw));
tot_orientations = numel(sfs_nw);
for ii_o = 1:tot_orientations
num_blobs = numel(sfs_nw{ii_o});
sfs_n{ii_o} = gtFwdSimBlobDefinition('sf_n', num_blobs);
for ii_b = 1:num_blobs
sfs_n{ii_o}(ii_b).intm = sum(sfs_nw{ii_o}(ii_b).intm, 2);
sfs_n{ii_o}(ii_b).bbsize = sfs_nw{ii_o}(ii_b).bbsize(1);
end
[sfs_n{ii_o}.bbwim] = deal(sfs_nw{ii_o}.bbnim);
end
end
......@@ -12,6 +12,11 @@ function blob = gtFwdSimBlobDefinition(type, num_blobs)
'intm', [], ... % The normalized shape function
'bbwim', zeros(0, 2), ... % Shape function's limits in W
'bbsize', zeros(0, 1) ); % Shape function's BoundingBox (includes margins)
case 'sf_n'
blob = struct( ...
'intm', [], ... % The normalized shape function
'bbnim', zeros(0, 2), ... % Shape function's limits in N
'bbsize', zeros(0, 1) ); % Shape function's BoundingBox (includes margins)
case 'sf_nw'
blob = struct( ...
'intm', [], ... % The normalized shape function
......
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