Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DCT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
graintracking
DCT
Commits
a6dd098b
Commit
a6dd098b
authored
9 years ago
by
Nicola Vigano
Browse files
Options
Downloads
Patches
Plain Diff
Blob definition: added new types of blobs (shape functions)
Signed-off-by:
Nicola Vigano
<
nicola.vigano@esrf.fr
>
parent
6bf21f6f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
zUtil_ForwardSim/gtFwdSimBlobDefinition.m
+32
-14
32 additions, 14 deletions
zUtil_ForwardSim/gtFwdSimBlobDefinition.m
with
32 additions
and
14 deletions
zUtil_ForwardSim/gtFwdSimBlobDefinition.m
+
32
−
14
View file @
a6dd098b
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment