Functions
contrib/mul/mfpf/mfpf_prune_overlaps.cxx File Reference

Function to remove any overlapping matching responses. More...

#include "mfpf_prune_overlaps.h"
#include <mbl/mbl_index_sort.h>

Go to the source code of this file.

Functions

void mfpf_find_overlaps (mfpf_point_finder &pf, const vcl_vector< mfpf_pose > &poses, const mfpf_pose &pose, vcl_vector< unsigned > &overlaps)
 Find list of poses overlapping given pose.
bool mfpf_find_near_pose (mfpf_point_finder &pf, vcl_vector< mfpf_pose > &poses, vcl_vector< double > &fits, const mfpf_pose &pose, double fit)
 If pose not near any poses in list, return false.
void mfpf_prune_overlaps (mfpf_point_finder &pf, vcl_vector< mfpf_pose > &poses, vcl_vector< double > &fits)
 Remove any overlapping matching responses (retaining best fit).
bool mfpf_any_overlaps (mfpf_point_finder &pf, const vcl_vector< mfpf_pose > &poses, const mfpf_pose &pose)
 Return true if pose overlaps with any of poses.
void mfpf_prune_and_sort_overlaps (mfpf_point_finder &pf, vcl_vector< mfpf_pose > &poses, vcl_vector< double > &fits, unsigned max_n)
 Sort responses and return list of non-overlapping responses.

Detailed Description

Function to remove any overlapping matching responses.

Author:
Tim Cootes

Definition in file mfpf_prune_overlaps.cxx.


Function Documentation

bool mfpf_any_overlaps ( mfpf_point_finder pf,
const vcl_vector< mfpf_pose > &  poses,
const mfpf_pose pose 
)

Return true if pose overlaps with any of poses.

Definition at line 125 of file mfpf_prune_overlaps.cxx.

bool mfpf_find_near_pose ( mfpf_point_finder pf,
vcl_vector< mfpf_pose > &  poses,
vcl_vector< double > &  fits,
const mfpf_pose pose,
double  fit 
)

If pose not near any poses in list, return false.

If it is near one, and its fit is better, then replace it. Uses pf.overlap() function to check for proximity

Definition at line 26 of file mfpf_prune_overlaps.cxx.

void mfpf_find_overlaps ( mfpf_point_finder pf,
const vcl_vector< mfpf_pose > &  poses,
const mfpf_pose pose,
vcl_vector< unsigned > &  overlaps 
)

Find list of poses overlapping given pose.

Definition at line 10 of file mfpf_prune_overlaps.cxx.

void mfpf_prune_and_sort_overlaps ( mfpf_point_finder pf,
vcl_vector< mfpf_pose > &  poses,
vcl_vector< double > &  fits,
unsigned  max_n 
)

Sort responses and return list of non-overlapping responses.

If max_n>0 then return at most max_n

Definition at line 139 of file mfpf_prune_overlaps.cxx.

void mfpf_prune_overlaps ( mfpf_point_finder pf,
vcl_vector< mfpf_pose > &  poses,
vcl_vector< double > &  fits 
)

Remove any overlapping matching responses (retaining best fit).

Definition at line 104 of file mfpf_prune_overlaps.cxx.