pcl::tracking::DistanceCoherence< PointInT > Class Template Reference

**DistanceCoherence** computes coherence between two points from the distance between them. the coherence is calculated by 1 / (1 + weight * d^2 ).
More...

`#include <distance_coherence.h>`

Inheritance diagram for pcl::tracking::DistanceCoherence< PointInT >:

## Public Member Functions | |

DistanceCoherence () | |

initialize the weight to 1.0. | |

double | getWeight () |

get the weight of coherence. | |

void | setWeight (double weight) |

set the weight of coherence. | |

## Protected Member Functions | |

double | computeCoherence (PointInT &source, PointInT &target) |

return the distance coherence between the two points. | |

## Protected Attributes | |

double | weight_ |

the weight of coherence. |

class pcl::tracking::DistanceCoherence< PointInT >

**DistanceCoherence** computes coherence between two points from the distance between them. the coherence is calculated by 1 / (1 + weight * d^2 ).

Definition at line 16 of file distance_coherence.h.

template<typename PointInT >

pcl::tracking::DistanceCoherence< PointInT >::DistanceCoherence | ( | ) | ` [inline]` |

initialize the weight to 1.0.

Definition at line 21 of file distance_coherence.h.

template<typename PointInT >

double pcl::tracking::DistanceCoherence< PointInT >::computeCoherence | ( | PointInT & | source, |

PointInT & | target |
||

) | ` [protected, virtual]` |

return the distance coherence between the two points.

**Parameters:**-
source instance of source point. target instance of target point.

Implements pcl::tracking::PointCoherence< PointInT >.

Definition at line 12 of file distance_coherence.hpp.

template<typename PointInT >

double pcl::tracking::DistanceCoherence< PointInT >::getWeight | ( | ) | ` [inline]` |

get the weight of coherence.

Definition at line 32 of file distance_coherence.h.

template<typename PointInT >

void pcl::tracking::DistanceCoherence< PointInT >::setWeight | ( | double | weight | ) | ` [inline]` |

set the weight of coherence.

**Parameters:**-
weight the value of the wehgit.

Definition at line 29 of file distance_coherence.h.

template<typename PointInT >

double pcl::tracking::DistanceCoherence< PointInT >::weight_` [protected]` |

the weight of coherence.

Definition at line 43 of file distance_coherence.h.

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