PlusLib
2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
|
#include <src/PlusCalibration/PatternLocAlgo/PlusFidPatternRecognitionCommon.h>
Public Member Functions | |
void | AddPoint (int aPoint) |
const double * | GetDirectionVector () const |
int | GetEndPointIndex () const |
double | GetIntensity () const |
double | GetLength () const |
unsigned int | GetNumberOfPoints () const |
int | GetPoint (int aIndex) const |
int | GetStartPointIndex () const |
void | ResizePoints (int aNewSize) |
void | SetDirectionVector (int aIndex, double aValue) |
void | SetEndPointIndex (int index) |
void | SetIntensity (double value) |
void | SetLength (double value) |
void | SetPoint (int aIndex, int aValue) |
void | SetStartPointIndex (int index) |
Static Public Member Functions | |
static bool | compareLines (const PlusFidLine &line1, const PlusFidLine &line2) |
static double | ComputeAngleRad (const PlusFidLine &line1) |
static double | ComputeAngleRad (const PlusFidLine &line1, const PlusFidLine &line2) |
static bool | lessThan (const PlusFidLine &line1, const PlusFidLine &line2) |
Protected Attributes | |
double | DirectionVector [2] |
int | EndPointIndex |
Index of the endpoint of the line. More... | |
double | Intensity |
double | Length |
std::vector< int > | Points |
int | StartPointIndex |
index of start point of the line, all the other line points are towards the positive m_DirectionVector direction from this point More... | |
Definition at line 69 of file PlusFidPatternRecognitionCommon.h.
void PlusFidLine::AddPoint | ( | int | aPoint | ) |
Add a point to the line
Definition at line 127 of file PlusFidPatternRecognitionCommon.cxx.
|
static |
Compare 2 lines to know if they are the same
Definition at line 202 of file PlusFidPatternRecognitionCommon.cxx.
|
static |
Compute the angle in radians between the line and the positive x-axis, value between -Pi and +Pi
Definition at line 20 of file PlusFidPatternRecognitionCommon.cxx.
|
static |
Compute the angle difference in radians between two lines, the result value is between 0 and Pi/2
Definition at line 28 of file PlusFidPatternRecognitionCommon.cxx.
const double * PlusFidLine::GetDirectionVector | ( | ) | const |
Get the direction vector that defines the line
Definition at line 91 of file PlusFidPatternRecognitionCommon.cxx.
int PlusFidLine::GetEndPointIndex | ( | ) | const |
Get the other end point of the line. It is the index of the end point in the m_DotsVector
Definition at line 115 of file PlusFidPatternRecognitionCommon.cxx.
double PlusFidLine::GetIntensity | ( | ) | const |
Get the intensity of the line, which is the sum of its dots intensity
Definition at line 73 of file PlusFidPatternRecognitionCommon.cxx.
|
inline |
Get the length of the line
Definition at line 106 of file PlusFidPatternRecognitionCommon.h.
unsigned int PlusFidLine::GetNumberOfPoints | ( | ) | const |
Get the number of points making the line
Definition at line 61 of file PlusFidPatternRecognitionCommon.cxx.
Get the point of the line that has index aIndex
Definition at line 55 of file PlusFidPatternRecognitionCommon.cxx.
int PlusFidLine::GetStartPointIndex | ( | ) | const |
Get the start point index of the line. It is an index in the m_DotsVector
Definition at line 103 of file PlusFidPatternRecognitionCommon.cxx.
|
static |
Compare the intensity of 2 lines
Definition at line 195 of file PlusFidPatternRecognitionCommon.cxx.
void PlusFidLine::ResizePoints | ( | int | aNewSize | ) |
Resize the points vector
Definition at line 121 of file PlusFidPatternRecognitionCommon.cxx.
void PlusFidLine::SetDirectionVector | ( | int | aIndex, |
double | aValue | ||
) |
Set the direction vector that defines the line
Definition at line 85 of file PlusFidPatternRecognitionCommon.cxx.
void PlusFidLine::SetEndPointIndex | ( | int | index | ) |
Set the other end point of the line. It is the index of the end point in the m_DotsVector
Definition at line 109 of file PlusFidPatternRecognitionCommon.cxx.
void PlusFidLine::SetIntensity | ( | double | value | ) |
Set the intensity of the line, which is the sum of its dots intensity
Definition at line 67 of file PlusFidPatternRecognitionCommon.cxx.
void PlusFidLine::SetLength | ( | double | value | ) |
Set the length of the line
Definition at line 79 of file PlusFidPatternRecognitionCommon.cxx.
Set the point of line
aIndex | is the index in the dots vector of the line |
aValue | is the index of the dot in the general vector of dots |
Definition at line 49 of file PlusFidPatternRecognitionCommon.cxx.
void PlusFidLine::SetStartPointIndex | ( | int | index | ) |
Set the start point index of the line. It is an index in the m_DotsVector
Definition at line 97 of file PlusFidPatternRecognitionCommon.cxx.
|
protected |
Definition at line 137 of file PlusFidPatternRecognitionCommon.h.
|
protected |
Index of the endpoint of the line.
Definition at line 141 of file PlusFidPatternRecognitionCommon.h.
|
protected |
Definition at line 135 of file PlusFidPatternRecognitionCommon.h.
|
protected |
Definition at line 136 of file PlusFidPatternRecognitionCommon.h.
|
protected |
indices of points that make up the line
Definition at line 134 of file PlusFidPatternRecognitionCommon.h.
|
protected |
index of start point of the line, all the other line points are towards the positive m_DirectionVector direction from this point
Definition at line 139 of file PlusFidPatternRecognitionCommon.h.