ImageD  v2_7_5 (24.06.22)
ImageD is an image processing software designed for rapid prototyping and implementing algorithms and solutions for science, research and teaching.
D_Component_List_Context Class Reference

The D_Component_List_Context class inherits D_Component_List and calculates features of the blobs depending on the relation to other blobs in the same represented 2D binary image. More...

#include <d_component_list_context.h>

Public Member Functions

 D_Component_List_Context ()
 
 D_Component_List_Context (Mat *pMA_BinaryOrLabel, int connectivity=8)
 
int set_Mat (Mat *pMA_BinaryOrLabel, int connectivity=8)
 
bool InDist_Comp2Comp (int c1, int pt_type1, int c2, int pt_type2, double dist_min, double dist_max)
 
vector< int > InDist_CompsIndices (int c1, int pt_type1, int pt_type2, double dist_min, double dist_max)
 
vector< double > get_AllComps_StatFeatInDist (int type1, int type2, double dist_min, double dist_max, int feat, int stat)
 
vector< double > get_AllComps_StatFeatInDist_BG (int type1, int type2, double dist_min, double dist_max, int feat, int stat)
 
bool IsCouple_CompareFeats (int c1, int c2, int feat1, int feat2, function< bool(double, double)> comparison)
 
vector< vector< Point > > get_PointCouples_Closest (int type1, int type2, double dist_min, double dist_max, int feat1, int feat2, function< bool(double, double)> comparison)
 
vector< vector< Point > > get_PointCouples_AllInRange (int type1, int type2, double dist_min, double dist_max, int feat1, int feat2, function< bool(double, double)> comparison)
 
D_Component_Listget_pCompList ()
 

Detailed Description

The D_Component_List_Context class inherits D_Component_List and calculates features of the blobs depending on the relation to other blobs in the same represented 2D binary image.

Takes a distance interval and two point/line types (D_COMPDIST) to measure the distance from/to. For each blob (D_Component) a list with each blob within that distance is created. A feature (D_FEATURE_ENUM) is selected. For each blob in the mentioned list this feature is determined. The values in this list are summarized using the chosen statistic quantity (D_STATISTIC_ENUM)

Constructor & Destructor Documentation

◆ D_Component_List_Context() [1/2]

D_Component_List_Context::D_Component_List_Context ( )

◆ D_Component_List_Context() [2/2]

D_Component_List_Context::D_Component_List_Context ( Mat pMA_BinaryOrLabel,
int  connectivity = 8 
)

Member Function Documentation

◆ get_AllComps_StatFeatInDist()

vector< double > D_Component_List_Context::get_AllComps_StatFeatInDist ( int  type1,
int  type2,
double  dist_min,
double  dist_max,
int  feat,
int  stat 
)

◆ get_AllComps_StatFeatInDist_BG()

vector< double > D_Component_List_Context::get_AllComps_StatFeatInDist_BG ( int  type1,
int  type2,
double  dist_min,
double  dist_max,
int  feat,
int  stat 
)

◆ get_pCompList()

D_Component_List* D_Component_List_Context::get_pCompList ( )
inline

◆ get_PointCouples_AllInRange()

vector< vector< Point > > D_Component_List_Context::get_PointCouples_AllInRange ( int  type1,
int  type2,
double  dist_min,
double  dist_max,
int  feat1,
int  feat2,
function< bool(double, double)>  comparison 
)

◆ get_PointCouples_Closest()

vector< vector< Point > > D_Component_List_Context::get_PointCouples_Closest ( int  type1,
int  type2,
double  dist_min,
double  dist_max,
int  feat1,
int  feat2,
function< bool(double, double)>  comparison 
)

◆ InDist_Comp2Comp()

bool D_Component_List_Context::InDist_Comp2Comp ( int  c1,
int  pt_type1,
int  c2,
int  pt_type2,
double  dist_min,
double  dist_max 
)

◆ InDist_CompsIndices()

vector< int > D_Component_List_Context::InDist_CompsIndices ( int  c1,
int  pt_type1,
int  pt_type2,
double  dist_min,
double  dist_max 
)

◆ IsCouple_CompareFeats()

bool D_Component_List_Context::IsCouple_CompareFeats ( int  c1,
int  c2,
int  feat1,
int  feat2,
function< bool(double, double)>  comparison 
)

◆ set_Mat()

int D_Component_List_Context::set_Mat ( Mat pMA_BinaryOrLabel,
int  connectivity = 8 
)

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