Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thomas White
pinkindexer
Commits
d62beb01
Commit
d62beb01
authored
Mar 12, 2019
by
Yaroslav Gevorkov
Browse files
updated test
parent
6efb9622
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main.cpp
View file @
d62beb01
...
...
@@ -21,9 +21,9 @@ int main()
// testReflectionsInRangeFinder();
// testSinogram();
// testSinogram2();
//
testSinogramComplete();
testSinogramComplete
();
// testRefinementGetDefect();
testRefinement
();
//
testRefinement();
// testPatternPrediction();
// testPinkIndexer();
}
...
...
src/tests.cpp
View file @
d62beb01
...
...
@@ -131,19 +131,17 @@ namespace pinkIndexer
// cout << refinement.getDefect(basis, ucsDirections, ucsBorderNorms) << endl;
}
void
testSinogramComplete
()
void
testSinogramComplete
()
{
Matrix3Xf
reflectionsBackprojected_center
;
Matrix2Xf
ucsBorderNorms
;
Matrix3f
knownBasis
;
MatrixXf
angleResolution_deg_matrix
;
loadEigenMatrixFromDisk
(
reflectionsBackprojected_center
,
"C:
\\
DesyFiles
\\
workspaces
\\
VisualStudio_workspace
\\
pinkIndexer
\\
workfolder
\\
reflectionsBackprojected_center"
);
Matrix3Xf
ucsDirections
;
loadEigenMatrixFromDisk
(
ucsBorderNorms
,
"C:
\\
DesyFiles
\\
workspaces
\\
VisualStudio_workspace
\\
pinkIndexer
\\
workfolder
\\
ucsBorderNorms"
);
loadEigenMatrixFromDisk
(
ucsDirections
,
"C:
\\
DesyFiles
\\
workspaces
\\
VisualStudio_workspace
\\
pinkIndexer
\\
workfolder
\\
ucsDirections"
);
loadEigenMatrixFromDisk
(
knownBasis
,
"C:
\\
DesyFiles
\\
workspaces
\\
VisualStudio_workspace
\\
pinkIndexer
\\
workfolder
\\
knownBasis"
);
loadEigenMatrixFromDisk
(
angleResolution_deg_matrix
,
"C:
\\
DesyFiles
\\
workspaces
\\
VisualStudio_workspace
\\
pinkIndexer
\\
workfolder
\\
angleResolution_deg"
);
float
angleResolution_deg
=
angleResolution_deg_matrix
(
0
,
0
);
Matrix3Xf
ucsDirections
=
reflectionsBackprojected_center
.
colwise
().
normalized
();
Lattice
knownLattice
(
knownBasis
);
...
...
@@ -154,7 +152,7 @@ namespace pinkIndexer
auto
tmp
=
Chronometer
(
"sinogram"
);
int
slaveThreadCount
=
3
;
//
sinogram.computeSinogram(ucsDirections,
candidateReflectionsDirection
s);
//sinogram.computeSinogram(ucsDirections,
ucsBorderNorm
s);
sinogram
.
computeSinogramParallel
(
ucsDirections
,
ucsBorderNorms
,
slaveThreadCount
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment