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
a5375aa9
Commit
a5375aa9
authored
12 years ago
by
Wolfgang Ludwig
Committed by
Nicola Vigano
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
local changes - commit in order to enable updating
parent
50b946dd
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
4_grains/gtShowFsim.m
+13
-13
13 additions, 13 deletions
4_grains/gtShowFsim.m
5_reconstruction/gtForwardSimulate_v2.m
+4
-0
4 additions, 0 deletions
5_reconstruction/gtForwardSimulate_v2.m
with
17 additions
and
13 deletions
4_grains/gtShowFsim.m
+
13
−
13
View file @
a5375aa9
...
@@ -149,21 +149,21 @@ function gtShowFsim(grain, phaseid, clims)
...
@@ -149,21 +149,21 @@ function gtShowFsim(grain, phaseid, clims)
h
(
5
)
=
plot
(
1
,
-
10
,
'gh'
);
h
(
5
)
=
plot
(
1
,
-
10
,
'gh'
);
end
end
% flag = 6 spot claimed by another grain
ind
=
find
(
grain
.
flag
==
6
);
u_vec
=
grain
.
allblobs
.
uv
(
ondet
(
ind
),
1
);
v_vec
=
grain
.
allblobs
.
uv
(
ondet
(
ind
),
2
);
if
~
isempty
(
ind
)
h
(
6
)
=
plot
(
u_vec
,
v_vec
,
'yo'
,
'MarkerSize'
,
20
);
else
h
(
6
)
=
plot
(
1
,
-
10
,
'yo'
,
'MarkerSize'
,
20
);
end
% Only in case we have it
if
(
hasConflictInfo
)
if
(
hasConflictInfo
)
text
(
x
,
y
,
num2str
(
id
'), '
Color
', '
y
'
)
% flag = 6 spot claimed by another grain
end
ind
=
find
(
grain
.
flag
==
6
);
u_vec
=
grain
.
allblobs
.
uv
(
ondet
(
ind
),
1
);
v_vec
=
grain
.
allblobs
.
uv
(
ondet
(
ind
),
2
);
if
~
isempty
(
ind
)
h
(
6
)
=
plot
(
u_vec
,
v_vec
,
'yo'
,
'MarkerSize'
,
20
);
else
h
(
6
)
=
plot
(
1
,
-
10
,
'yo'
,
'MarkerSize'
,
20
);
end
% Only in case we have it
text
(
x
,
y
,
num2str
(
id
'),'
Color
','
y
'
)
end
% flag = 0 no spot search - just show expected positions
% flag = 0 no spot search - just show expected positions
ind
=
find
(
grain
.
flag
==
0
);
ind
=
find
(
grain
.
flag
==
0
);
if
~
isempty
(
ind
==
length
(
grain
.
flag
))
if
~
isempty
(
ind
==
length
(
grain
.
flag
))
...
...
This diff is collapsed.
Click to expand it.
5_reconstruction/gtForwardSimulate_v2.m
+
4
−
0
View file @
a5375aa9
...
@@ -513,6 +513,10 @@ function spotsRecords = initializeSpotsRecords(dataset_name)
...
@@ -513,6 +513,10 @@ function spotsRecords = initializeSpotsRecords(dataset_name)
[
difspotIDs
,
CentroidXs
,
CentroidYs
,
CentroidImages
,
BoundingBoxXsizes
,
...
[
difspotIDs
,
CentroidXs
,
CentroidYs
,
CentroidImages
,
BoundingBoxXsizes
,
...
BoundingBoxYsizes
,
BoundingBoxXorigins
,
BoundingBoxYorigins
]
=
mym
(
query
);
BoundingBoxYsizes
,
BoundingBoxXorigins
,
BoundingBoxYorigins
]
=
mym
(
query
);
% create vectors of size (numspots,1) (these will have some empty elements since
% not all difspotIDs exist (some are filtered out because fo size
% restrictions, for example)
numspots
=
max
(
difspotIDs
);
numspots
=
max
(
difspotIDs
);
spotsRecords
=
[];
spotsRecords
=
[];
spotsRecords
.
difspotID
=
NaN
(
numspots
,
1
);
spotsRecords
.
difspotID
=
NaN
(
numspots
,
1
);
...
...
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