PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes
PlusFidLine Class Reference

#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< intPoints
 
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...
 

Detailed Description

Definition at line 69 of file PlusFidPatternRecognitionCommon.h.

Member Function Documentation

◆ AddPoint()

void PlusFidLine::AddPoint ( int  aPoint)

Add a point to the line

Definition at line 127 of file PlusFidPatternRecognitionCommon.cxx.

◆ compareLines()

bool PlusFidLine::compareLines ( const PlusFidLine line1,
const PlusFidLine line2 
)
static

Compare 2 lines to know if they are the same

Definition at line 202 of file PlusFidPatternRecognitionCommon.cxx.

◆ ComputeAngleRad() [1/2]

double PlusFidLine::ComputeAngleRad ( const PlusFidLine line1)
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.

◆ ComputeAngleRad() [2/2]

double PlusFidLine::ComputeAngleRad ( const PlusFidLine line1,
const PlusFidLine line2 
)
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.

◆ GetDirectionVector()

const double * PlusFidLine::GetDirectionVector ( ) const

Get the direction vector that defines the line

Definition at line 91 of file PlusFidPatternRecognitionCommon.cxx.

◆ GetEndPointIndex()

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.

◆ GetIntensity()

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.

◆ GetLength()

double PlusFidLine::GetLength ( ) const
inline

Get the length of the line

Definition at line 106 of file PlusFidPatternRecognitionCommon.h.

◆ GetNumberOfPoints()

unsigned int PlusFidLine::GetNumberOfPoints ( ) const

Get the number of points making the line

Definition at line 61 of file PlusFidPatternRecognitionCommon.cxx.

◆ GetPoint()

int PlusFidLine::GetPoint ( int  aIndex) const

Get the point of the line that has index aIndex

Definition at line 55 of file PlusFidPatternRecognitionCommon.cxx.

◆ GetStartPointIndex()

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.

◆ lessThan()

bool PlusFidLine::lessThan ( const PlusFidLine line1,
const PlusFidLine line2 
)
static

Compare the intensity of 2 lines

Definition at line 195 of file PlusFidPatternRecognitionCommon.cxx.

◆ ResizePoints()

void PlusFidLine::ResizePoints ( int  aNewSize)

Resize the points vector

Definition at line 121 of file PlusFidPatternRecognitionCommon.cxx.

◆ SetDirectionVector()

void PlusFidLine::SetDirectionVector ( int  aIndex,
double  aValue 
)

Set the direction vector that defines the line

Definition at line 85 of file PlusFidPatternRecognitionCommon.cxx.

◆ SetEndPointIndex()

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.

◆ SetIntensity()

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.

◆ SetLength()

void PlusFidLine::SetLength ( double  value)

Set the length of the line

Definition at line 79 of file PlusFidPatternRecognitionCommon.cxx.

◆ SetPoint()

void PlusFidLine::SetPoint ( int  aIndex,
int  aValue 
)

Set the point of line

Parameters
aIndexis the index in the dots vector of the line
aValueis the index of the dot in the general vector of dots

Definition at line 49 of file PlusFidPatternRecognitionCommon.cxx.

◆ SetStartPointIndex()

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.

Member Data Documentation

◆ DirectionVector

double PlusFidLine::DirectionVector[2]
protected

Definition at line 137 of file PlusFidPatternRecognitionCommon.h.

◆ EndPointIndex

int PlusFidLine::EndPointIndex
protected

Index of the endpoint of the line.

Definition at line 141 of file PlusFidPatternRecognitionCommon.h.

◆ Intensity

double PlusFidLine::Intensity
protected

Definition at line 135 of file PlusFidPatternRecognitionCommon.h.

◆ Length

double PlusFidLine::Length
protected

Definition at line 136 of file PlusFidPatternRecognitionCommon.h.

◆ Points

std::vector<int> PlusFidLine::Points
protected

indices of points that make up the line

Definition at line 134 of file PlusFidPatternRecognitionCommon.h.

◆ StartPointIndex

int PlusFidLine::StartPointIndex
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.


The documentation for this class was generated from the following files: