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

tuned indexed flagging strategy

parent 57541999
......@@ -82,7 +82,7 @@ bool PinkIndexer::indexPattern(Lattice& indexedLattice, Eigen::RowVectorXf& inte
}
int fittedPeaksCount = refinement.getFittedPeaksCount(indexedLattice, ucsDirections, ucsBorderNorms);
if (fittedPeaksCount >= 20 || fittedPeaksCount >= detectorPeaks_m.cols() * 0.5)
if ((fittedPeaksCount >= 20 && fittedPeaksCount >= detectorPeaks_m.cols() * 0.3) || fittedPeaksCount >= detectorPeaks_m.cols() * 0.5)
{
return true;
}
......
......@@ -133,8 +133,6 @@ void Refinement::refineFixedLattice(Lattice& lattice, const Matrix3Xf& ucsDirect
int Refinement::getFittedPeaksCount(Lattice& lattice, const Eigen::Matrix3Xf& ucsDirections, const Eigen::Matrix2Xf& ucsBorderNorms)
{
getDefects(defects, lattice.getBasis(), ucsDirections, ucsBorderNorms);
getDefects(defects, lattice.getBasis(), ucsDirections, ucsBorderNorms);
int fittedPeaksCount = (defects < tolerance).count();
......
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