#include <src/PlusCalibration/PatternLocAlgo/PlusFidLabeling.h>
|
static bool | SortCompare (const std::vector< double > &temporaryLine1, const std::vector< double > &temporaryLine2) |
|
Definition at line 36 of file PlusFidLabeling.h.
◆ PlusFidLabeling()
PlusFidLabeling::PlusFidLabeling |
( |
| ) |
|
◆ ~PlusFidLabeling()
PlusFidLabeling::~PlusFidLabeling |
( |
| ) |
|
|
virtual |
◆ Clear()
void PlusFidLabeling::Clear |
( |
| ) |
|
◆ ComputeDistancePointLine()
Compute the shortest distance from a point: dot, to a line: line
Definition at line 293 of file PlusFidLabeling.cxx.
◆ ComputeShift()
◆ ComputeSlope()
double PlusFidLabeling::ComputeSlope |
( |
PlusFidLine & |
line | ) |
|
◆ FindPattern()
void PlusFidLabeling::FindPattern |
( |
| ) |
|
◆ GetDotsFound()
bool PlusFidLabeling::GetDotsFound |
( |
| ) |
|
|
inline |
Get a boolean value that is true if the algorithm is successful and the correct dots are found, false otherwise
Definition at line 110 of file PlusFidLabeling.h.
◆ GetDotsVector()
std::vector<PlusFidDot>& PlusFidLabeling::GetDotsVector |
( |
| ) |
|
|
inline |
◆ GetFoundDotsCoordinateValue()
std::vector<std::vector<double> > PlusFidLabeling::GetFoundDotsCoordinateValue |
( |
| ) |
|
|
inline |
◆ GetFoundLinesVector()
std::vector<PlusFidLine>& PlusFidLabeling::GetFoundLinesVector |
( |
| ) |
|
|
inline |
◆ GetLinesVector()
std::vector<std::vector<PlusFidLine> > PlusFidLabeling::GetLinesVector |
( |
| ) |
|
|
inline |
◆ GetMaxLineShiftMm()
double PlusFidLabeling::GetMaxLineShiftMm |
( |
| ) |
|
◆ GetPatternIntensity()
double PlusFidLabeling::GetPatternIntensity |
( |
| ) |
|
|
inline |
◆ GetPatterns()
Get the pattern structure vector, this defines the patterns that the algorithm finds
Definition at line 249 of file PlusFidLabeling.cxx.
◆ ReadConfiguration()
PlusStatus PlusFidLabeling::ReadConfiguration |
( |
vtkXMLDataElement * |
rootConfigElement, |
|
|
double |
minThetaRad, |
|
|
double |
maxThetaRad |
|
) |
| |
◆ SetAngleToleranceDeg()
void PlusFidLabeling::SetAngleToleranceDeg |
( |
double |
value | ) |
|
Set the angle tolerance on the angle between two lines, in degrees
Definition at line 208 of file PlusFidLabeling.cxx.
◆ SetAngleToleranceDegrees()
void PlusFidLabeling::SetAngleToleranceDegrees |
( |
double |
angleToleranceDegrees | ) |
|
◆ SetApproximateSpacingMmPerPixel()
void PlusFidLabeling::SetApproximateSpacingMmPerPixel |
( |
double |
value | ) |
|
|
inline |
◆ SetDotsFound()
void PlusFidLabeling::SetDotsFound |
( |
bool |
value | ) |
|
|
inline |
Set to true if the algorithm is successful and the correct dots are found, false otherwise
Definition at line 107 of file PlusFidLabeling.h.
◆ SetDotsVector()
void PlusFidLabeling::SetDotsVector |
( |
std::vector< PlusFidDot > & |
value | ) |
|
|
inline |
◆ SetFrameSize()
void PlusFidLabeling::SetFrameSize |
( |
const FrameSizeType & |
frameSize | ) |
|
◆ SetInclinedLineAngleDegrees()
void PlusFidLabeling::SetInclinedLineAngleDegrees |
( |
double |
inclinedLineAngleDegrees | ) |
|
◆ SetLinesVector()
void PlusFidLabeling::SetLinesVector |
( |
std::vector< std::vector< PlusFidLine > > & |
value | ) |
|
|
inline |
◆ SetMaxAngleDifferenceDegrees()
void PlusFidLabeling::SetMaxAngleDifferenceDegrees |
( |
double |
value | ) |
|
|
inline |
Set the maximum angle allowed between two lines, in degree
Definition at line 125 of file PlusFidLabeling.h.
◆ SetMaxLinePairDistanceErrorPercent()
void PlusFidLabeling::SetMaxLinePairDistanceErrorPercent |
( |
double |
value | ) |
|
|
inline |
Set the tolerance on the maximum distance between 2 lines, in percent
Definition at line 122 of file PlusFidLabeling.h.
◆ SetMaxLineShiftMm()
void PlusFidLabeling::SetMaxLineShiftMm |
( |
double |
aValue | ) |
|
◆ SetMaxThetaDeg()
void PlusFidLabeling::SetMaxThetaDeg |
( |
double |
value | ) |
|
◆ SetMinThetaDeg()
void PlusFidLabeling::SetMinThetaDeg |
( |
double |
value | ) |
|
◆ SetPatterns()
void PlusFidLabeling::SetPatterns |
( |
const std::vector< PlusFidPattern * > & |
value | ) |
|
|
inline |
Set the pattern structure vector, this defines the patterns that the algorithm finds
Definition at line 101 of file PlusFidLabeling.h.
◆ SortCompare()
bool PlusFidLabeling::SortCompare |
( |
const std::vector< double > & |
temporaryLine1, |
|
|
const std::vector< double > & |
temporaryLine2 |
|
) |
| |
|
static |
Sort the points of a line, used for sorting the points by distance from StartPoint
Definition at line 214 of file PlusFidLabeling.cxx.
◆ SortPointsByDistanceFromStartPoint()
Sort points of a line by their distance from the start point of the line
Definition at line 221 of file PlusFidLabeling.cxx.
◆ SortRightToLeft()
void PlusFidLabeling::SortRightToLeft |
( |
PlusFidLine & |
line | ) |
|
◆ UpdateCirsResults()
Update the CIRS phantom model 45 results once the pattern has been found, the order of the lines is: resultLine1: left-most, resultLine2: diagonal, resultLine3: right-most
Definition at line 388 of file PlusFidLabeling.cxx.
◆ UpdateNWiresResults()
void PlusFidLabeling::UpdateNWiresResults |
( |
std::vector< PlusFidLine * > & |
resultLines | ) |
|
Update the NWires results once the pattern has been found
- Parameters
-
resultLines | Found lines in ascending order of their StartPoint's Y coordinate (top line is first, bottom line is last) |
Definition at line 349 of file PlusFidLabeling.cxx.
◆ UpdateParameters()
void PlusFidLabeling::UpdateParameters |
( |
| ) |
|
Update the parameters and computes the distance between 2 lines from the phantom definition file
Definition at line 48 of file PlusFidLabeling.cxx.
◆ m_AngleToleranceRad
double PlusFidLabeling::m_AngleToleranceRad |
|
protected |
◆ m_ApproximateSpacingMmPerPixel
double PlusFidLabeling::m_ApproximateSpacingMmPerPixel |
|
protected |
◆ m_DotsFound
bool PlusFidLabeling::m_DotsFound |
|
protected |
◆ m_DotsVector
std::vector<PlusFidDot> PlusFidLabeling::m_DotsVector |
|
protected |
◆ m_FoundDotsCoordinateValue
std::vector< std::vector<double> > PlusFidLabeling::m_FoundDotsCoordinateValue |
|
protected |
◆ m_FoundLines
◆ m_FrameSize
std::array<unsigned int, 3> PlusFidLabeling::m_FrameSize |
|
protected |
◆ m_InclinedLineAngleRad
double PlusFidLabeling::m_InclinedLineAngleRad |
|
protected |
◆ m_LinesVector
std::vector< std::vector<PlusFidLine> > PlusFidLabeling::m_LinesVector |
|
protected |
◆ m_MaxAngleDiff
double PlusFidLabeling::m_MaxAngleDiff |
|
protected |
◆ m_MaxLinePairAngleRad
double PlusFidLabeling::m_MaxLinePairAngleRad |
|
protected |
◆ m_MaxLinePairDistanceErrorPercent
double PlusFidLabeling::m_MaxLinePairDistanceErrorPercent |
|
protected |
◆ m_MaxLinePairDistMm
double PlusFidLabeling::m_MaxLinePairDistMm |
|
protected |
◆ m_MaxLineShiftMm
double PlusFidLabeling::m_MaxLineShiftMm |
|
protected |
◆ m_MaxThetaRad
double PlusFidLabeling::m_MaxThetaRad |
|
protected |
◆ m_MinLinePairAngleRad
double PlusFidLabeling::m_MinLinePairAngleRad |
|
protected |
◆ m_MinLinePairDistMm
double PlusFidLabeling::m_MinLinePairDistMm |
|
protected |
◆ m_MinThetaRad
double PlusFidLabeling::m_MinThetaRad |
|
protected |
◆ m_PatternIntensity
double PlusFidLabeling::m_PatternIntensity |
|
protected |
◆ m_Patterns
◆ m_Results
The documentation for this class was generated from the following files: