PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
Functions | Variables
vtkLineSegmentationAlgoTest.cxx File Reference

This test computes center of rotation on a recorded data set and compares the results to a baseline. More...

#include "PlusConfigure.h"
#include "igsioMath.h"
#include "vtkPlusLineSegmentationAlgo.h"
#include "vtkMath.h"
#include "vtkIGSIOSequenceIO.h"
#include "vtkIGSIOTrackedFrameList.h"
#include "vtkXMLDataElement.h"
#include "vtkXMLUtilities.h"
#include "vtksys/CommandLineArguments.hxx"
#include "vtksys/SystemTools.hxx"
Include dependency graph for vtkLineSegmentationAlgoTest.cxx:

Go to the source code of this file.

Functions

int CompareLineSegmentationResults (const std::vector< vtkPlusLineSegmentationAlgo::LineParameters > &lineParameters, const std::vector< vtkPlusLineSegmentationAlgo::LineParameters > &baselineLineParameters)
 
int main (int argc, char **argv)
 
PlusStatus ReadLineSegmentationResultsFromFile (const std::string &resultSaveFilename, std::vector< vtkPlusLineSegmentationAlgo::LineParameters > &lineParameters)
 
void WriteLineSegmentationResultsToFile (const std::string &resultSaveFilename, const std::vector< vtkPlusLineSegmentationAlgo::LineParameters > &lineParameters)
 

Variables

const double MAX_LINE_ANGLE_DIFFERENCE_DEG = 3
 
const double MAX_ORIGIN_DISTANCE_PIXEL = 10
 

Detailed Description

This test computes center of rotation on a recorded data set and compares the results to a baseline.

Definition in file vtkLineSegmentationAlgoTest.cxx.

Function Documentation

◆ CompareLineSegmentationResults()

int CompareLineSegmentationResults ( const std::vector< vtkPlusLineSegmentationAlgo::LineParameters > &  lineParameters,
const std::vector< vtkPlusLineSegmentationAlgo::LineParameters > &  baselineLineParameters 
)

Definition at line 138 of file vtkLineSegmentationAlgoTest.cxx.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 208 of file vtkLineSegmentationAlgoTest.cxx.

◆ ReadLineSegmentationResultsFromFile()

PlusStatus ReadLineSegmentationResultsFromFile ( const std::string &  resultSaveFilename,
std::vector< vtkPlusLineSegmentationAlgo::LineParameters > &  lineParameters 
)

Definition at line 54 of file vtkLineSegmentationAlgoTest.cxx.

◆ WriteLineSegmentationResultsToFile()

void WriteLineSegmentationResultsToFile ( const std::string &  resultSaveFilename,
const std::vector< vtkPlusLineSegmentationAlgo::LineParameters > &  lineParameters 
)

Definition at line 28 of file vtkLineSegmentationAlgoTest.cxx.

Variable Documentation

◆ MAX_LINE_ANGLE_DIFFERENCE_DEG

const double MAX_LINE_ANGLE_DIFFERENCE_DEG = 3

Definition at line 25 of file vtkLineSegmentationAlgoTest.cxx.

◆ MAX_ORIGIN_DISTANCE_PIXEL

const double MAX_ORIGIN_DISTANCE_PIXEL = 10

Definition at line 24 of file vtkLineSegmentationAlgoTest.cxx.