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

#include <src/PlusCalibration/PatternLocAlgo/PlusFidSegmentation.h>

Public Types

enum  FiducialGeometryType { CALIBRATION_PHANTOM_MULTI_NWIRE, CIRS_PHANTOM_13_POINT, CALIBRATION_PHANTOM_6_POINT }
 
typedef unsigned char PixelType
 

Public Member Functions

bool AcceptDot (PlusFidDot &dot)
 
void Clear ()
 
bool Cluster (bool &tooManyCandidates)
 
void ClusteringAddNeighbors (PlusFidSegmentation::PixelType *image, int r, int c, std::vector< PlusFidDot > &m_Test, std::vector< PlusFidDot > &m_Set, std::vector< PlusFidSegmentation::PixelType > &m_Vals)
 
void Dilate0 (PlusFidSegmentation::PixelType *dest, PlusFidSegmentation::PixelType *image)
 
void Dilate135 (PlusFidSegmentation::PixelType *dest, PlusFidSegmentation::PixelType *image)
 
void Dilate45 (PlusFidSegmentation::PixelType *dest, PlusFidSegmentation::PixelType *image)
 
void Dilate90 (PlusFidSegmentation::PixelType *dest, PlusFidSegmentation::PixelType *image)
 
void DilateCircle (PlusFidSegmentation::PixelType *dest, PlusFidSegmentation::PixelType *image)
 
PlusFidSegmentation::PixelType DilatePoint (PlusFidSegmentation::PixelType *image, unsigned int ir, unsigned int ic, PlusCoordinate2D *shape, int slen)
 
PlusFidSegmentation::PixelType DilatePoint0 (PlusFidSegmentation::PixelType *image, unsigned int ir, unsigned int ic)
 
PlusFidSegmentation::PixelType DilatePoint135 (PlusFidSegmentation::PixelType *image, unsigned int ir, unsigned int ic)
 
PlusFidSegmentation::PixelType DilatePoint45 (PlusFidSegmentation::PixelType *image, unsigned int ir, unsigned int ic)
 
PlusFidSegmentation::PixelType DilatePoint90 (PlusFidSegmentation::PixelType *image, unsigned int ir, unsigned int ic)
 
void Erode0 (PlusFidSegmentation::PixelType *dest, PlusFidSegmentation::PixelType *image)
 
void Erode135 (PlusFidSegmentation::PixelType *dest, PlusFidSegmentation::PixelType *image)
 
void Erode45 (PlusFidSegmentation::PixelType *dest, PlusFidSegmentation::PixelType *image)
 
void Erode90 (PlusFidSegmentation::PixelType *dest, PlusFidSegmentation::PixelType *image)
 
void ErodeCircle (PlusFidSegmentation::PixelType *dest, PlusFidSegmentation::PixelType *image)
 
PlusFidSegmentation::PixelType ErodePoint0 (PlusFidSegmentation::PixelType *image, unsigned int ir, unsigned int ic)
 
PlusFidSegmentation::PixelType ErodePoint135 (PlusFidSegmentation::PixelType *image, unsigned int ir, unsigned int ic)
 
PlusFidSegmentation::PixelType ErodePoint45 (PlusFidSegmentation::PixelType *image, unsigned int ir, unsigned int ic)
 
PlusFidSegmentation::PixelType ErodePoint90 (PlusFidSegmentation::PixelType *image, unsigned int ir, unsigned int ic)
 
std::vector< PlusFidDot > & GetCandidateFidValues ()
 
bool GetDebugOutput ()
 
std::vector< PlusFidDot > & GetDotsVector ()
 
FiducialGeometryType GetFiducialGeometry ()
 
FrameSizeType GetFrameSize ()
 
unsigned int GetMorphologicalOpeningBarSizePx ()
 
void GetRegionOfInterest (unsigned int &xMin, unsigned int &yMin, unsigned int &xMax, unsigned int &yMax)
 
double GetThresholdImagePercent ()
 
PlusFidSegmentation::PixelTypeGetUnalteredImage ()
 
PlusFidSegmentation::PixelTypeGetWorking ()
 
void MorphologicalOperations ()
 
 PlusFidSegmentation ()
 
PlusStatus ReadConfiguration (vtkXMLDataElement *rootConfigElement)
 
void SetApproximateSpacingMmPerPixel (double value)
 
void SetCandidateFidValues (const std::vector< PlusFidDot > &value)
 
void SetDebugOutput (bool value)
 
void SetFiducialGeometry (FiducialGeometryType geometryType)
 
void SetFrameSize (const FrameSizeType &frameSize)
 
void SetMorphologicalOpeningBarSizeMm (double value)
 
void SetMorphologicalOpeningCircleRadiusMm (double value)
 
void SetNumberOfMaximumFiducialPointCandidates (int aValue)
 
void SetPossibleFiducialsImageFilename (std::string value)
 
void SetRegionOfInterest (unsigned int xMin, unsigned int yMin, unsigned int xMax, unsigned int yMax)
 
void SetThresholdImagePercent (double value)
 
void SetUseOriginalImageIntensityForDotIntensityScore (bool value)
 
bool ShapeContains (std::vector< PlusCoordinate2D > &shape, PlusCoordinate2D point)
 
void Subtract (PlusFidSegmentation::PixelType *image, PlusFidSegmentation::PixelType *vals)
 
void Suppress (PlusFidSegmentation::PixelType *image, double percent_thresh)
 
void UpdateParameters ()
 
void ValidateRegionOfInterest ()
 
void WritePossibleFiducialOverlayImage (const std::vector< std::vector< double > > &fiducials, PlusFidSegmentation::PixelType *unalteredImage, const char *namePrefix, int frameIndex)
 
void WritePossibleFiducialOverlayImage (const std::vector< PlusFidDot > &fiducials, PlusFidSegmentation::PixelType *unalteredImage, const char *namePrefix, int frameIndex)
 
virtual ~PlusFidSegmentation ()
 

Static Public Member Functions

static void SetDefaultSegmentationParameters (vtkXMLDataElement *segmentationElement)
 
static void WritePng (PlusFidSegmentation::PixelType *modifiedImage, std::string outImageName, int cols, int rows)
 

Static Public Attributes

static const double DEFAULT_ANGLE_TOLERANCE_DEGREES = 10.0
 
static const double DEFAULT_APPROXIMATE_SPACING_MM_PER_PIXEL = 0.078
 
static const int DEFAULT_CLIP_ORIGIN [2] = { 27, 27 }
 
static const int DEFAULT_CLIP_SIZE [2] = { 766, 562 }
 
static const double DEFAULT_COLLINEAR_POINTS_MAX_DISTANCE_FROM_LINE_MM = 0.6
 
static const double DEFAULT_MAX_ANGLE_DIFFERENCE_DEGREES = 10.0
 
static const double DEFAULT_MAX_LINE_PAIR_DISTANCE_ERROR_PERCENT = 10.0
 
static const double DEFAULT_MAX_LINE_SHIFT_MM = 10.0
 
static const double DEFAULT_MAX_THETA_DEGREES = 70.0
 
static const double DEFAULT_MIN_THETA_DEGREES = -70.0
 
static const double DEFAULT_MORPHOLOGICAL_OPENING_BAR_SIZE_MM = 2.0
 
static const double DEFAULT_MORPHOLOGICAL_OPENING_CIRCLE_RADIUS_MM = 0.27
 
static const int DEFAULT_NUMBER_OF_MAXIMUM_FIDUCIAL_POINT_CANDIDATES = 20
 
static const double DEFAULT_THRESHOLD_IMAGE_PERCENT = 10.0
 
static const char * DEFAULT_USE_ORIGINAL_IMAGE_INTENSITY_FOR_DOT_INTENSITY_SCORE = "FALSE"
 

Protected Attributes

double m_ApproximateSpacingMmPerPixel
 
std::vector< PlusFidDotm_CandidateFidValues
 
bool m_DebugOutput
 
PlusFidSegmentation::PixelTypem_Dilated
 
bool m_DotsFound
 
std::vector< PlusFidDotm_DotsVector
 
PlusFidSegmentation::PixelTypem_Eroded
 
FiducialGeometryType m_FiducialGeometry
 
std::vector< std::vector< double > > m_FoundDotsCoordinateValue
 
FrameSizeType m_FrameSize
 
double m_ImageNormalVectorInPhantomFrameEstimation [3]
 
double m_ImageNormalVectorInPhantomFrameMaximumRotationAngleDeg [6]
 
double m_ImageScalingTolerancePercent [4]
 
double m_ImageToPhantomTransform [16]
 
std::vector< PlusCoordinate2Dm_MorphologicalCircle
 
double m_MorphologicalOpeningBarSizeMm
 
double m_MorphologicalOpeningCircleRadiusMm
 
unsigned int m_NumberOfMaximumFiducialPointCandidates
 
double m_NumDots
 
std::string m_PossibleFiducialsImageFilename
 
std::array< unsigned int, 4 > m_RegionOfInterest
 
double m_ThresholdImagePercent
 
PlusFidSegmentation::PixelTypem_UnalteredImage
 
bool m_UseOriginalImageIntensityForDotIntensityScore
 
PlusFidSegmentation::PixelTypem_Working
 

Detailed Description

Definition at line 41 of file PlusFidSegmentation.h.

Member Typedef Documentation

◆ PixelType

typedef unsigned char PlusFidSegmentation::PixelType

Definition at line 60 of file PlusFidSegmentation.h.

Member Enumeration Documentation

◆ FiducialGeometryType

The different types of phantom the algorithm covers

Enumerator
CALIBRATION_PHANTOM_MULTI_NWIRE 
CIRS_PHANTOM_13_POINT 
CALIBRATION_PHANTOM_6_POINT 

Definition at line 63 of file PlusFidSegmentation.h.

Constructor & Destructor Documentation

◆ PlusFidSegmentation()

PlusFidSegmentation::PlusFidSegmentation ( )

Definition at line 44 of file PlusFidSegmentation.cxx.

◆ ~PlusFidSegmentation()

PlusFidSegmentation::~PlusFidSegmentation ( )
virtual

Definition at line 94 of file PlusFidSegmentation.cxx.

Member Function Documentation

◆ AcceptDot()

bool PlusFidSegmentation::AcceptDot ( PlusFidDot dot)
inline

Accept a dot as a possible fiducial

Definition at line 1275 of file PlusFidSegmentation.cxx.

◆ Clear()

void PlusFidSegmentation::Clear ( )

Clear the member variables

Definition at line 283 of file PlusFidSegmentation.cxx.

◆ Cluster()

bool PlusFidSegmentation::Cluster ( bool &  tooManyCandidates)

Cluster the dots. Returns true on success. If tooManyCandidates is true then the maximum limit of clusters are reached and so not all clusters are computed.

Definition at line 1294 of file PlusFidSegmentation.cxx.

◆ ClusteringAddNeighbors()

void PlusFidSegmentation::ClusteringAddNeighbors ( PlusFidSegmentation::PixelType image,
int  r,
int  c,
std::vector< PlusFidDot > &  m_Test,
std::vector< PlusFidDot > &  m_Set,
std::vector< PlusFidSegmentation::PixelType > &  m_Vals 
)
inline

Add neighbors to the cluster

Definition at line 1256 of file PlusFidSegmentation.cxx.

◆ Dilate0()

void PlusFidSegmentation::Dilate0 ( PlusFidSegmentation::PixelType dest,
PlusFidSegmentation::PixelType image 
)

Definition at line 636 of file PlusFidSegmentation.cxx.

◆ Dilate135()

void PlusFidSegmentation::Dilate135 ( PlusFidSegmentation::PixelType dest,
PlusFidSegmentation::PixelType image 
)

Definition at line 819 of file PlusFidSegmentation.cxx.

◆ Dilate45()

void PlusFidSegmentation::Dilate45 ( PlusFidSegmentation::PixelType dest,
PlusFidSegmentation::PixelType image 
)

Definition at line 698 of file PlusFidSegmentation.cxx.

◆ Dilate90()

void PlusFidSegmentation::Dilate90 ( PlusFidSegmentation::PixelType dest,
PlusFidSegmentation::PixelType image 
)

Definition at line 769 of file PlusFidSegmentation.cxx.

◆ DilateCircle()

void PlusFidSegmentation::DilateCircle ( PlusFidSegmentation::PixelType dest,
PlusFidSegmentation::PixelType image 
)

Definition at line 889 of file PlusFidSegmentation.cxx.

◆ DilatePoint()

PlusFidSegmentation::PixelType PlusFidSegmentation::DilatePoint ( PlusFidSegmentation::PixelType image,
unsigned int  ir,
unsigned int  ic,
PlusCoordinate2D shape,
int  slen 
)
inline

Definition at line 869 of file PlusFidSegmentation.cxx.

◆ DilatePoint0()

PlusFidSegmentation::PixelType PlusFidSegmentation::DilatePoint0 ( PlusFidSegmentation::PixelType image,
unsigned int  ir,
unsigned int  ic 
)
inline

Definition at line 614 of file PlusFidSegmentation.cxx.

◆ DilatePoint135()

PlusFidSegmentation::PixelType PlusFidSegmentation::DilatePoint135 ( PlusFidSegmentation::PixelType image,
unsigned int  ir,
unsigned int  ic 
)
inline

Definition at line 798 of file PlusFidSegmentation.cxx.

◆ DilatePoint45()

PlusFidSegmentation::PixelType PlusFidSegmentation::DilatePoint45 ( PlusFidSegmentation::PixelType image,
unsigned int  ir,
unsigned int  ic 
)
inline

Definition at line 667 of file PlusFidSegmentation.cxx.

◆ DilatePoint90()

PlusFidSegmentation::PixelType PlusFidSegmentation::DilatePoint90 ( PlusFidSegmentation::PixelType image,
unsigned int  ir,
unsigned int  ic 
)
inline

Definition at line 748 of file PlusFidSegmentation.cxx.

◆ Erode0()

void PlusFidSegmentation::Erode0 ( PlusFidSegmentation::PixelType dest,
PlusFidSegmentation::PixelType image 
)

Definition at line 329 of file PlusFidSegmentation.cxx.

◆ Erode135()

void PlusFidSegmentation::Erode135 ( PlusFidSegmentation::PixelType dest,
PlusFidSegmentation::PixelType image 
)

Definition at line 522 of file PlusFidSegmentation.cxx.

◆ Erode45()

void PlusFidSegmentation::Erode45 ( PlusFidSegmentation::PixelType dest,
PlusFidSegmentation::PixelType image 
)

Definition at line 387 of file PlusFidSegmentation.cxx.

◆ Erode90()

void PlusFidSegmentation::Erode90 ( PlusFidSegmentation::PixelType dest,
PlusFidSegmentation::PixelType image 
)

Definition at line 466 of file PlusFidSegmentation.cxx.

◆ ErodeCircle()

void PlusFidSegmentation::ErodeCircle ( PlusFidSegmentation::PixelType dest,
PlusFidSegmentation::PixelType image 
)

Definition at line 577 of file PlusFidSegmentation.cxx.

◆ ErodePoint0()

PlusFidSegmentation::PixelType PlusFidSegmentation::ErodePoint0 ( PlusFidSegmentation::PixelType image,
unsigned int  ir,
unsigned int  ic 
)
inline

Morphological operations performed by the algorithm

Definition at line 302 of file PlusFidSegmentation.cxx.

◆ ErodePoint135()

PlusFidSegmentation::PixelType PlusFidSegmentation::ErodePoint135 ( PlusFidSegmentation::PixelType image,
unsigned int  ir,
unsigned int  ic 
)
inline

Definition at line 497 of file PlusFidSegmentation.cxx.

◆ ErodePoint45()

PlusFidSegmentation::PixelType PlusFidSegmentation::ErodePoint45 ( PlusFidSegmentation::PixelType image,
unsigned int  ir,
unsigned int  ic 
)
inline

Definition at line 361 of file PlusFidSegmentation.cxx.

◆ ErodePoint90()

PlusFidSegmentation::PixelType PlusFidSegmentation::ErodePoint90 ( PlusFidSegmentation::PixelType image,
unsigned int  ir,
unsigned int  ic 
)
inline

Definition at line 441 of file PlusFidSegmentation.cxx.

◆ GetCandidateFidValues()

std::vector<PlusFidDot>& PlusFidSegmentation::GetCandidateFidValues ( )
inline

Set the dots that are considered candidates

Definition at line 184 of file PlusFidSegmentation.h.

◆ GetDebugOutput()

bool PlusFidSegmentation::GetDebugOutput ( )
inline

Get the debug output value, if true more debug information are provided but the speed is lower

Definition at line 166 of file PlusFidSegmentation.h.

◆ GetDotsVector()

std::vector<PlusFidDot>& PlusFidSegmentation::GetDotsVector ( )
inline

Get the vector that contains all the dots that have been segmented

Definition at line 178 of file PlusFidSegmentation.h.

◆ GetFiducialGeometry()

FiducialGeometryType PlusFidSegmentation::GetFiducialGeometry ( )
inline

Get the geometry type of the phantom, so far only the 6 points NWires and the CIRS phantom model 45 are supported

Definition at line 190 of file PlusFidSegmentation.h.

◆ GetFrameSize()

FrameSizeType PlusFidSegmentation::GetFrameSize ( )
inline

Get the size of the frame as an array

Definition at line 175 of file PlusFidSegmentation.h.

◆ GetMorphologicalOpeningBarSizePx()

unsigned int PlusFidSegmentation::GetMorphologicalOpeningBarSizePx ( )

Get the size of the bar for the morphological operations

Definition at line 293 of file PlusFidSegmentation.cxx.

◆ GetRegionOfInterest()

void PlusFidSegmentation::GetRegionOfInterest ( unsigned int xMin,
unsigned int yMin,
unsigned int xMax,
unsigned int yMax 
)

Validates the region of interest that was set for the image and returns it

Definition at line 1595 of file PlusFidSegmentation.cxx.

◆ GetThresholdImagePercent()

double PlusFidSegmentation::GetThresholdImagePercent ( )
inline

Get the threshold of the image, this is a percent value

Definition at line 163 of file PlusFidSegmentation.h.

◆ GetUnalteredImage()

PlusFidSegmentation::PixelType* PlusFidSegmentation::GetUnalteredImage ( )
inline

Get the unaltered copy of the image

Definition at line 196 of file PlusFidSegmentation.h.

◆ GetWorking()

PlusFidSegmentation::PixelType* PlusFidSegmentation::GetWorking ( )
inline

Get the working copy of the image

Definition at line 193 of file PlusFidSegmentation.h.

◆ MorphologicalOperations()

void PlusFidSegmentation::MorphologicalOperations ( )

Perform the morphological operations on the image

Definition at line 1394 of file PlusFidSegmentation.cxx.

◆ ReadConfiguration()

PlusStatus PlusFidSegmentation::ReadConfiguration ( vtkXMLDataElement *  rootConfigElement)

Definition at line 128 of file PlusFidSegmentation.cxx.

◆ SetApproximateSpacingMmPerPixel()

void PlusFidSegmentation::SetApproximateSpacingMmPerPixel ( double  value)
inline

Set the Approximate spacing, this is in Mm per pixel

Definition at line 199 of file PlusFidSegmentation.h.

◆ SetCandidateFidValues()

void PlusFidSegmentation::SetCandidateFidValues ( const std::vector< PlusFidDot > &  value)
inline

Get the dots that are considered candidates

Definition at line 181 of file PlusFidSegmentation.h.

◆ SetDebugOutput()

void PlusFidSegmentation::SetDebugOutput ( bool  value)
inline

Set the debug output value, if true more debug information are provided but the speed is lower

Definition at line 169 of file PlusFidSegmentation.h.

◆ SetDefaultSegmentationParameters()

void PlusFidSegmentation::SetDefaultSegmentationParameters ( vtkXMLDataElement *  segmentationElement)
static

Utility function to set parameters in segmentation XML data element to default values

Definition at line 1054 of file PlusFidSegmentation.cxx.

◆ SetFiducialGeometry()

void PlusFidSegmentation::SetFiducialGeometry ( FiducialGeometryType  geometryType)

Definition at line 1610 of file PlusFidSegmentation.cxx.

◆ SetFrameSize()

void PlusFidSegmentation::SetFrameSize ( const FrameSizeType &  frameSize)

Set the Frame Size of the image

Definition at line 217 of file PlusFidSegmentation.cxx.

◆ SetMorphologicalOpeningBarSizeMm()

void PlusFidSegmentation::SetMorphologicalOpeningBarSizeMm ( double  value)
inline

Set the size in Mm of the opening bar needed for the morphological operations

Definition at line 205 of file PlusFidSegmentation.h.

◆ SetMorphologicalOpeningCircleRadiusMm()

void PlusFidSegmentation::SetMorphologicalOpeningCircleRadiusMm ( double  value)
inline

Set the radius of the opening circle needed for the morphological operations

Definition at line 202 of file PlusFidSegmentation.h.

◆ SetNumberOfMaximumFiducialPointCandidates()

void PlusFidSegmentation::SetNumberOfMaximumFiducialPointCandidates ( int  aValue)

Set the maximum number of candidates to generate

Definition at line 1604 of file PlusFidSegmentation.cxx.

◆ SetPossibleFiducialsImageFilename()

void PlusFidSegmentation::SetPossibleFiducialsImageFilename ( std::string  value)
inline

Set the possible fiducials Image file name

Definition at line 160 of file PlusFidSegmentation.h.

◆ SetRegionOfInterest()

void PlusFidSegmentation::SetRegionOfInterest ( unsigned int  xMin,
unsigned int  yMin,
unsigned int  xMax,
unsigned int  yMax 
)

Set the region of interest in the image

Definition at line 1504 of file PlusFidSegmentation.cxx.

◆ SetThresholdImagePercent()

void PlusFidSegmentation::SetThresholdImagePercent ( double  value)
inline

Set the threshold of the image, this is a percent value

Definition at line 214 of file PlusFidSegmentation.h.

◆ SetUseOriginalImageIntensityForDotIntensityScore()

void PlusFidSegmentation::SetUseOriginalImageIntensityForDotIntensityScore ( bool  value)
inline

Set to true to use the original image intensity for the dots intensity values

Definition at line 217 of file PlusFidSegmentation.h.

◆ ShapeContains()

bool PlusFidSegmentation::ShapeContains ( std::vector< PlusCoordinate2D > &  shape,
PlusCoordinate2D  point 
)

Check if shape (structuring element) contains the new element (a point)

Definition at line 976 of file PlusFidSegmentation.cxx.

◆ Subtract()

void PlusFidSegmentation::Subtract ( PlusFidSegmentation::PixelType image,
PlusFidSegmentation::PixelType vals 
)

Definition at line 1192 of file PlusFidSegmentation.cxx.

◆ Suppress()

void PlusFidSegmentation::Suppress ( PlusFidSegmentation::PixelType image,
double  percent_thresh 
)

Suppress unwanted parts of the image

Definition at line 1210 of file PlusFidSegmentation.cxx.

◆ UpdateParameters()

void PlusFidSegmentation::UpdateParameters ( )

Update the parameters, especially the circle need for morphological operations

Definition at line 104 of file PlusFidSegmentation.cxx.

◆ ValidateRegionOfInterest()

void PlusFidSegmentation::ValidateRegionOfInterest ( )

Check and modify if necessary the region of interest

Definition at line 1528 of file PlusFidSegmentation.cxx.

◆ WritePng()

void PlusFidSegmentation::WritePng ( PlusFidSegmentation::PixelType modifiedImage,
std::string  outImageName,
int  cols,
int  rows 
)
static

Utility function to write image to file

Definition at line 992 of file PlusFidSegmentation.cxx.

◆ WritePossibleFiducialOverlayImage() [1/2]

void PlusFidSegmentation::WritePossibleFiducialOverlayImage ( const std::vector< std::vector< double > > &  fiducials,
PlusFidSegmentation::PixelType unalteredImage,
const char *  namePrefix,
int  frameIndex 
)

Write image with the selected points on it to an image file (possibleFiducialsNNN.bmp)

Parameters
fiducialsposition of fiducial points
unalteredImageoriginal image
namePrefixprefix used for image file name generation
frameIndexframe index (used for generating the file name)

Definition at line 1176 of file PlusFidSegmentation.cxx.

◆ WritePossibleFiducialOverlayImage() [2/2]

void PlusFidSegmentation::WritePossibleFiducialOverlayImage ( const std::vector< PlusFidDot > &  fiducials,
PlusFidSegmentation::PixelType unalteredImage,
const char *  namePrefix,
int  frameIndex 
)

Write image with the selected points on it to an image file (possibleFiducialsNNN.bmp)

Parameters
fiducialsposition of fiducial points
unalteredImageoriginal image
namePrefixprefix used for image file name generation
frameIndexframe index (used for generating the file name)

Definition at line 1089 of file PlusFidSegmentation.cxx.

Member Data Documentation

◆ DEFAULT_ANGLE_TOLERANCE_DEGREES

const double PlusFidSegmentation::DEFAULT_ANGLE_TOLERANCE_DEGREES = 10.0
static

Definition at line 50 of file PlusFidSegmentation.h.

◆ DEFAULT_APPROXIMATE_SPACING_MM_PER_PIXEL

const double PlusFidSegmentation::DEFAULT_APPROXIMATE_SPACING_MM_PER_PIXEL = 0.078
static

Definition at line 44 of file PlusFidSegmentation.h.

◆ DEFAULT_CLIP_ORIGIN

const int PlusFidSegmentation::DEFAULT_CLIP_ORIGIN = { 27, 27 }
static

Definition at line 47 of file PlusFidSegmentation.h.

◆ DEFAULT_CLIP_SIZE

const int PlusFidSegmentation::DEFAULT_CLIP_SIZE = { 766, 562 }
static

Definition at line 48 of file PlusFidSegmentation.h.

◆ DEFAULT_COLLINEAR_POINTS_MAX_DISTANCE_FROM_LINE_MM

const double PlusFidSegmentation::DEFAULT_COLLINEAR_POINTS_MAX_DISTANCE_FROM_LINE_MM = 0.6
static

Definition at line 56 of file PlusFidSegmentation.h.

◆ DEFAULT_MAX_ANGLE_DIFFERENCE_DEGREES

const double PlusFidSegmentation::DEFAULT_MAX_ANGLE_DIFFERENCE_DEGREES = 10.0
static

Definition at line 51 of file PlusFidSegmentation.h.

◆ DEFAULT_MAX_LINE_PAIR_DISTANCE_ERROR_PERCENT

const double PlusFidSegmentation::DEFAULT_MAX_LINE_PAIR_DISTANCE_ERROR_PERCENT = 10.0
static

Definition at line 49 of file PlusFidSegmentation.h.

◆ DEFAULT_MAX_LINE_SHIFT_MM

const double PlusFidSegmentation::DEFAULT_MAX_LINE_SHIFT_MM = 10.0
static

Definition at line 54 of file PlusFidSegmentation.h.

◆ DEFAULT_MAX_THETA_DEGREES

const double PlusFidSegmentation::DEFAULT_MAX_THETA_DEGREES = 70.0
static

Definition at line 53 of file PlusFidSegmentation.h.

◆ DEFAULT_MIN_THETA_DEGREES

const double PlusFidSegmentation::DEFAULT_MIN_THETA_DEGREES = -70.0
static

Definition at line 52 of file PlusFidSegmentation.h.

◆ DEFAULT_MORPHOLOGICAL_OPENING_BAR_SIZE_MM

const double PlusFidSegmentation::DEFAULT_MORPHOLOGICAL_OPENING_BAR_SIZE_MM = 2.0
static

Definition at line 46 of file PlusFidSegmentation.h.

◆ DEFAULT_MORPHOLOGICAL_OPENING_CIRCLE_RADIUS_MM

const double PlusFidSegmentation::DEFAULT_MORPHOLOGICAL_OPENING_CIRCLE_RADIUS_MM = 0.27
static

Definition at line 45 of file PlusFidSegmentation.h.

◆ DEFAULT_NUMBER_OF_MAXIMUM_FIDUCIAL_POINT_CANDIDATES

const int PlusFidSegmentation::DEFAULT_NUMBER_OF_MAXIMUM_FIDUCIAL_POINT_CANDIDATES = 20
static

Definition at line 58 of file PlusFidSegmentation.h.

◆ DEFAULT_THRESHOLD_IMAGE_PERCENT

const double PlusFidSegmentation::DEFAULT_THRESHOLD_IMAGE_PERCENT = 10.0
static

Definition at line 55 of file PlusFidSegmentation.h.

◆ DEFAULT_USE_ORIGINAL_IMAGE_INTENSITY_FOR_DOT_INTENSITY_SCORE

const char * PlusFidSegmentation::DEFAULT_USE_ORIGINAL_IMAGE_INTENSITY_FOR_DOT_INTENSITY_SCORE = "FALSE"
static

Definition at line 57 of file PlusFidSegmentation.h.

◆ m_ApproximateSpacingMmPerPixel

double PlusFidSegmentation::m_ApproximateSpacingMmPerPixel
protected

Definition at line 238 of file PlusFidSegmentation.h.

◆ m_CandidateFidValues

std::vector<PlusFidDot> PlusFidSegmentation::m_CandidateFidValues
protected

Pointer to the fiducial candidates coordinates

Definition at line 254 of file PlusFidSegmentation.h.

◆ m_DebugOutput

bool PlusFidSegmentation::m_DebugOutput
protected

Definition at line 263 of file PlusFidSegmentation.h.

◆ m_Dilated

PlusFidSegmentation::PixelType* PlusFidSegmentation::m_Dilated
protected

Definition at line 257 of file PlusFidSegmentation.h.

◆ m_DotsFound

bool PlusFidSegmentation::m_DotsFound
protected

True if the dots are found, false otherwise.

Definition at line 245 of file PlusFidSegmentation.h.

◆ m_DotsVector

std::vector<PlusFidDot> PlusFidSegmentation::m_DotsVector
protected

Definition at line 261 of file PlusFidSegmentation.h.

◆ m_Eroded

PlusFidSegmentation::PixelType* PlusFidSegmentation::m_Eroded
protected

Definition at line 258 of file PlusFidSegmentation.h.

◆ m_FiducialGeometry

FiducialGeometryType PlusFidSegmentation::m_FiducialGeometry
protected

Definition at line 234 of file PlusFidSegmentation.h.

◆ m_FoundDotsCoordinateValue

std::vector<std::vector<double> > PlusFidSegmentation::m_FoundDotsCoordinateValue
protected

X and Y values of found dots.

Definition at line 248 of file PlusFidSegmentation.h.

◆ m_FrameSize

FrameSizeType PlusFidSegmentation::m_FrameSize
protected

Definition at line 217 of file PlusFidSegmentation.h.

◆ m_ImageNormalVectorInPhantomFrameEstimation

double PlusFidSegmentation::m_ImageNormalVectorInPhantomFrameEstimation[3]
protected

Definition at line 240 of file PlusFidSegmentation.h.

◆ m_ImageNormalVectorInPhantomFrameMaximumRotationAngleDeg

double PlusFidSegmentation::m_ImageNormalVectorInPhantomFrameMaximumRotationAngleDeg[6]
protected

Definition at line 241 of file PlusFidSegmentation.h.

◆ m_ImageScalingTolerancePercent

double PlusFidSegmentation::m_ImageScalingTolerancePercent[4]
protected

Definition at line 239 of file PlusFidSegmentation.h.

◆ m_ImageToPhantomTransform

double PlusFidSegmentation::m_ImageToPhantomTransform[16]
protected

Definition at line 242 of file PlusFidSegmentation.h.

◆ m_MorphologicalCircle

std::vector<PlusCoordinate2D> PlusFidSegmentation::m_MorphologicalCircle
protected

Definition at line 236 of file PlusFidSegmentation.h.

◆ m_MorphologicalOpeningBarSizeMm

double PlusFidSegmentation::m_MorphologicalOpeningBarSizeMm
protected

Definition at line 229 of file PlusFidSegmentation.h.

◆ m_MorphologicalOpeningCircleRadiusMm

double PlusFidSegmentation::m_MorphologicalOpeningCircleRadiusMm
protected

Definition at line 230 of file PlusFidSegmentation.h.

◆ m_NumberOfMaximumFiducialPointCandidates

unsigned int PlusFidSegmentation::m_NumberOfMaximumFiducialPointCandidates
protected

Definition at line 224 of file PlusFidSegmentation.h.

◆ m_NumDots

double PlusFidSegmentation::m_NumDots
protected

Number of possible fiducial points

Definition at line 251 of file PlusFidSegmentation.h.

◆ m_PossibleFiducialsImageFilename

std::string PlusFidSegmentation::m_PossibleFiducialsImageFilename
protected

Definition at line 232 of file PlusFidSegmentation.h.

◆ m_RegionOfInterest

std::array<unsigned int, 4> PlusFidSegmentation::m_RegionOfInterest
protected

Definition at line 221 of file PlusFidSegmentation.h.

◆ m_ThresholdImagePercent

double PlusFidSegmentation::m_ThresholdImagePercent
protected

Segmentation threshold (in percentage, minimum is 0, maximum is 100)

Definition at line 227 of file PlusFidSegmentation.h.

◆ m_UnalteredImage

PlusFidSegmentation::PixelType* PlusFidSegmentation::m_UnalteredImage
protected

Definition at line 259 of file PlusFidSegmentation.h.

◆ m_UseOriginalImageIntensityForDotIntensityScore

bool PlusFidSegmentation::m_UseOriginalImageIntensityForDotIntensityScore
protected

Definition at line 222 of file PlusFidSegmentation.h.

◆ m_Working

PlusFidSegmentation::PixelType* PlusFidSegmentation::m_Working
protected

Definition at line 256 of file PlusFidSegmentation.h.


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