Commit d62beb01 authored by Yaroslav Gevorkov's avatar Yaroslav Gevorkov
Browse files

updated test

parent 6efb9622
...@@ -21,9 +21,9 @@ int main() ...@@ -21,9 +21,9 @@ int main()
// testReflectionsInRangeFinder(); // testReflectionsInRangeFinder();
// testSinogram(); // testSinogram();
// testSinogram2(); // testSinogram2();
// testSinogramComplete(); testSinogramComplete();
// testRefinementGetDefect(); // testRefinementGetDefect();
testRefinement(); //testRefinement();
// testPatternPrediction(); // testPatternPrediction();
// testPinkIndexer(); // testPinkIndexer();
} }
......
...@@ -131,19 +131,17 @@ namespace pinkIndexer ...@@ -131,19 +131,17 @@ namespace pinkIndexer
// cout << refinement.getDefect(basis, ucsDirections, ucsBorderNorms) << endl; // cout << refinement.getDefect(basis, ucsDirections, ucsBorderNorms) << endl;
} }
void testSinogramComplete() void testSinogramComplete()
{ {
Matrix3Xf reflectionsBackprojected_center;
Matrix2Xf ucsBorderNorms; Matrix2Xf ucsBorderNorms;
Matrix3f knownBasis; Matrix3f knownBasis;
MatrixXf angleResolution_deg_matrix; MatrixXf angleResolution_deg_matrix;
loadEigenMatrixFromDisk(reflectionsBackprojected_center, Matrix3Xf ucsDirections;
"C:\\DesyFiles\\workspaces\\VisualStudio_workspace\\pinkIndexer\\workfolder\\reflectionsBackprojected_center");
loadEigenMatrixFromDisk(ucsBorderNorms, "C:\\DesyFiles\\workspaces\\VisualStudio_workspace\\pinkIndexer\\workfolder\\ucsBorderNorms"); 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(knownBasis, "C:\\DesyFiles\\workspaces\\VisualStudio_workspace\\pinkIndexer\\workfolder\\knownBasis");
loadEigenMatrixFromDisk(angleResolution_deg_matrix, "C:\\DesyFiles\\workspaces\\VisualStudio_workspace\\pinkIndexer\\workfolder\\angleResolution_deg"); loadEigenMatrixFromDisk(angleResolution_deg_matrix, "C:\\DesyFiles\\workspaces\\VisualStudio_workspace\\pinkIndexer\\workfolder\\angleResolution_deg");
float angleResolution_deg = angleResolution_deg_matrix(0, 0); float angleResolution_deg = angleResolution_deg_matrix(0, 0);
Matrix3Xf ucsDirections = reflectionsBackprojected_center.colwise().normalized();
Lattice knownLattice(knownBasis); Lattice knownLattice(knownBasis);
...@@ -154,7 +152,7 @@ namespace pinkIndexer ...@@ -154,7 +152,7 @@ namespace pinkIndexer
auto tmp = Chronometer("sinogram"); auto tmp = Chronometer("sinogram");
int slaveThreadCount = 3; int slaveThreadCount = 3;
// sinogram.computeSinogram(ucsDirections, candidateReflectionsDirections); //sinogram.computeSinogram(ucsDirections, ucsBorderNorms);
sinogram.computeSinogramParallel(ucsDirections, ucsBorderNorms, slaveThreadCount); sinogram.computeSinogramParallel(ucsDirections, ucsBorderNorms, slaveThreadCount);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment