degate  0.1.2
Functions
TemplateMatching.cc File Reference
#include <TemplateMatching.h>
#include <Image.h>
#include <globals.h>
#include <algorithm>
#include <Statistics.h>
#include <ImageHelper.h>
#include <MedianFilter.h>
#include <DegateHelper.h>
#include <utility>
#include <boost/foreach.hpp>
#include <math.h>

Go to the source code of this file.

Functions

bool compare_template_size (const GateTemplate_shptr lhs, const GateTemplate_shptr rhs)
bool compare_correlation (TemplateMatching::match_found const &lhs, TemplateMatching::match_found const &rhs)

Function Documentation

Definition at line 233 of file TemplateMatching.cc.

References degate::TemplateMatching::match_found::correlation.

Referenced by degate::TemplateMatching::run(), and degate::ViaMatching::scan().

                                                                  {
  return lhs.correlation > rhs.correlation;
}

Here is the caller graph for this function:

bool compare_template_size ( const GateTemplate_shptr  lhs,
const GateTemplate_shptr  rhs 
)

Definition at line 229 of file TemplateMatching.cc.

Referenced by degate::TemplateMatching::set_templates().

                                                                                       {
  return lhs->get_width() * lhs->get_height() > rhs->get_width() * rhs->get_height();
}

Here is the caller graph for this function: