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()
function blob = gtFwdSimBlobDefinition(type)
% function blob = gtFwdSimBlobDefinition(type)
%
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
if (~exist('type', 'var'))
type = [];
end
switch (type)
case 'sf_w'
blob = struct( ...
'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_nw'
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
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