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

Blob definition: added new types of blobs (shape functions)

parent 6bf21f6f
No related branches found
No related tags found
No related merge requests found
function blob = gtFwdSimBlobDefinition() function blob = gtFwdSimBlobDefinition(type)
% function blob = gtFwdSimBlobDefinition() % function blob = gtFwdSimBlobDefinition(type)
% %
blob = struct( ... if (~exist('type', 'var'))
'intm', [], ... % The normalized blob type = [];
'mask', [], ... % The segmentation mask end
'bbuim', zeros(0, 2), ... % Image BB on U
'bbvim', zeros(0, 2), ... % Image BB on V switch (type)
'bbwim', zeros(0, 2), ... % Image BB on W <- Not strictly w case 'sf_w'
'bbsize', zeros(0, 3), ... % Image BoundingBox (includes margins) blob = struct( ...
'mbbu', zeros(0, 2), ... % Real (Measured) Blob BB on U 'intm', [], ... % The normalized shape function
'mbbv', zeros(0, 2), ... % Real (Measured) Blob BB on V 'bbwim', zeros(0, 2), ... % Shape function's limits in W
'mbbw', zeros(0, 2), ... % Real (Measured) Blob BB on W <- Not strictly w 'bbsize', zeros(0, 1) ); % Shape function's BoundingBox (includes margins)
'mbbsize', zeros(0, 3), ... % Real (Measured) Blob Bounding Box case 'sf_nw'
'intensity', zeros(0, 1) ); % Blob original intensity blob = struct( ...
'intm', [], ... % The normalized shape function
'bbnim', zeros(0, 2), ... % Shape function's limits in eta
'bbwim', zeros(0, 2), ... % Shape function's limits in W
'bbsize', zeros(0, 2) ); % Shape function's BoundingBox (includes margins)
otherwise
blob = struct( ...
'intm', [], ... % The normalized blob
'mask', [], ... % The segmentation mask
'bbuim', zeros(0, 2), ... % Image BB on U
'bbvim', zeros(0, 2), ... % Image BB on V
'bbwim', zeros(0, 2), ... % Image BB on W <- Not strictly w
'bbsize', zeros(0, 3), ... % Image BoundingBox (includes margins)
'mbbu', zeros(0, 2), ... % Real (Measured) Blob BB on U
'mbbv', zeros(0, 2), ... % Real (Measured) Blob BB on V
'mbbw', zeros(0, 2), ... % Real (Measured) Blob BB on W <- Not strictly w
'mbbsize', zeros(0, 3), ... % Real (Measured) Blob Bounding Box
'intensity', zeros(0, 1) ); % Blob original intensity
end
end end
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