function blob = gtFwdSimBlobDefinition(type) % function blob = gtFwdSimBlobDefinition(type) % if (~exist('type', 'var') || isempty(type)) type = 'blob'; 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