[an error occurred while processing this directive]
Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

lens_calibrate/ProcessImage.cpp File Reference

#include <exiv2/exif.hpp>
#include <exiv2/image.hpp>
#include "vigra/impex.hxx"
#include "vigra/stdimage.hxx"
#include "vigra/edgedetection.hxx"
#include "vigra/stdimagefunctions.hxx"
#include "vigra/tensorutilities.hxx"
#include "vigra/boundarytensor.hxx"
#include <vigra/orientedtensorfilters.hxx>
#include "vigra/diff2d.hxx"
#include <vigra/rgbvalue.hxx>
#include <vigra/utilities.hxx>
#include <sys/stat.h>
#include "Globals.h"
#include "ProcessImage.h"
#include "MapPoints.h"
#include <ANN/ANN.h>
#include "find_N8_lines.h"

Include dependency graph for ProcessImage.cpp:

Include dependency graph

Defines

#define HUGIN_USE_EXIV2

Typedefs

typedef vigra::BRGBImage::PixelType RGB

Functions

double line_length_squared (int &x1, int &y1, int &x2, int &y2)
bool compare_yx (const vigra::Point2D i, const vigra::Point2D j)
bool compare_xy (const vigra::Point2D i, const vigra::Point2D j)
bool fileexists (string strFilename)
void tokenize (const string &str, vector< string > &tokens, const string &delimiters=" ")
void sort_inliers (vector< Point2D > &inliers)
void plot_inliers (string &filename, BImage &image, vector< Point2D > &inliers, int i)
void plot_lines (string &filename, BImage &image, vector< vector< Point2D > > &lines, int i, int j)
void find_ann (vector< Point2D > &coords, FVector2Image &edgeness, vector< Point2D > &inliers, unsigned int &good_lines, vector< vector< Point2D > > &short_segments)
void extract_coords (BImage &image, vector< Point2D > &coords)
void nuke_corners (BImage &image, FImage &corners, string &filename)
void detect_edge (BImage &image, string &filename, BImage &edge_image)
void generate_boundary_tensor (BImage &image, FVector2Image &edgeness, FImage &cornerness, string &filename)
bool getExiv2Value (Exiv2::ExifData &exifData, std::string keyName, long &value)
bool getExiv2Value (Exiv2::ExifData &exifData, std::string keyName, float &value)
void calculate_focal_length_pixels ()
int get_exif_data (string &filename)
void resize_image (UInt16RGBImage &in, int &nw, int &nh)
bool compare_line_length (vector< vigra::Point2D > l1, vector< vigra::Point2D > l2)
void sort_lines_by_length ()
double point_line_length_squared (Point2D &a, Point2D &b)
int min_x_index (vector< Point2D > &a)
int max_x_index (vector< Point2D > &a)
int min_y_index (vector< Point2D > &a)
int max_y_index (vector< Point2D > &a)
double gradient (vector< Point2D > &a)
double inv_gradient (vector< Point2D > &a)
void join_short_segments (vector< vector< Point2D > > &short_segments, unsigned int &good_lines, BImage &image)
double path_distance (vector< Point2D > &coords, int &a, int &b)
bool is_line (vector< Point2D > &coords, int &a, int &b)
int halfway_corners (vector< double > &straws, int &a, int &b)
double sample_spacing (vector< Point2D > &coords)
void resample (vector< Point2D > &coords, vector< Point2D > &resampled, double &s)
void short_straw (BImage &image, vector< Point2D > &coords, string &filename)
void process_image (string &filename, int &plotted)

Define Documentation

#define HUGIN_USE_EXIV2
 


Typedef Documentation

typedef vigra::BRGBImage::PixelType RGB
 


Function Documentation

void calculate_focal_length_pixels  ) 
 

bool compare_line_length vector< vigra::Point2D >  l1,
vector< vigra::Point2D >  l2
 

bool compare_xy const vigra::Point2D  i,
const vigra::Point2D  j
 

bool compare_yx const vigra::Point2D  i,
const vigra::Point2D  j
 

void detect_edge BImage &  image,
string &  filename,
BImage &  edge_image
 

void extract_coords BImage &  image,
vector< Point2D > &  coords
 

bool fileexists string  strFilename  ) 
 

void find_ann vector< Point2D > &  coords,
FVector2Image &  edgeness,
vector< Point2D > &  inliers,
unsigned int &  good_lines,
vector< vector< Point2D > > &  short_segments
 

void generate_boundary_tensor BImage &  image,
FVector2Image &  edgeness,
FImage &  cornerness,
string &  filename
 

int get_exif_data string &  filename  ) 
 

bool getExiv2Value Exiv2::ExifData &  exifData,
std::string  keyName,
float &  value
 

bool getExiv2Value Exiv2::ExifData &  exifData,
std::string  keyName,
long &  value
 

double gradient vector< Point2D > &  a  ) 
 

int halfway_corners vector< double > &  straws,
int &  a,
int &  b
 

double inv_gradient vector< Point2D > &  a  ) 
 

bool is_line vector< Point2D > &  coords,
int &  a,
int &  b
 

void join_short_segments vector< vector< Point2D > > &  short_segments,
unsigned int &  good_lines,
BImage &  image
 

double line_length_squared int &  x1,
int &  y1,
int &  x2,
int &  y2
 

int max_x_index vector< Point2D > &  a  ) 
 

int max_y_index vector< Point2D > &  a  ) 
 

int min_x_index vector< Point2D > &  a  ) 
 

int min_y_index vector< Point2D > &  a  ) 
 

void nuke_corners BImage &  image,
FImage &  corners,
string &  filename
 

double path_distance vector< Point2D > &  coords,
int &  a,
int &  b
 

void plot_inliers string &  filename,
BImage &  image,
vector< Point2D > &  inliers,
int  i
 

void plot_lines string &  filename,
BImage &  image,
vector< vector< Point2D > > &  lines,
int  i,
int  j
 

double point_line_length_squared Point2D &  a,
Point2D &  b
 

void process_image string &  filename,
int &  plotted
 

void resample vector< Point2D > &  coords,
vector< Point2D > &  resampled,
double s
 

void resize_image UInt16RGBImage &  in,
int &  nw,
int &  nh
 

double sample_spacing vector< Point2D > &  coords  ) 
 

void short_straw BImage &  image,
vector< Point2D > &  coords,
string &  filename
 

void sort_inliers vector< Point2D > &  inliers  ) 
 

void sort_lines_by_length  ) 
 

void tokenize const string &  str,
vector< string > &  tokens,
const string &  delimiters = " "
 


Generated on Mon Sep 20 01:01:32 2010 for Hugintrunk by doxygen 1.3.9.1