Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Typedefs | Enumerations | Functions | Variables
celeste Namespace Reference

Classes

class  ContrastFilter
 
class  GaborFilter
 
class  GaborJet
 
class  ImageFile
 
class  PGMImage
 
class  Cache
 
class  QMatrix
 
class  Kernel
 
class  Solver
 
class  Solver_NU
 
class  SVC_Q
 
class  ONE_CLASS_Q
 
class  SVR_Q
 
struct  decision_function
 
struct  svm_node
 
struct  svm_problem
 
struct  svm_parameter
 
struct  svm_model
 
struct  tmp
 

Typedefs

typedef vigra::BRGBImage::PixelType RGB
 
typedef float Qfloat
 
typedef signed char schar
 

Enumerations

enum  { kChars = 0x01, kFloats = 0x02, kRGB = 0x04 }
 
enum  {
  C_SVC, NU_SVC, ONE_CLASS, EPSILON_SVR,
  NU_SVR
}
 
enum  {
  LINEAR, POLY, RBF, SIGMOID,
  PRECOMPUTED
}
 
enum  { kLeft = 0, kRight }
 

Functions

bool loadSVMmodel (struct svm_model *&model, std::string &model_file)
 loads the SVM model from file More...
 
void destroySVMmodel (struct svm_model *&model)
 frees the resource of model More...
 
void prepareCelesteImage (vigra::UInt16RGBImage &rgb, vigra::UInt16RGBImage &luv, int &resize_dimension, double &sizefactor, bool verbose)
 
void prepareGaborImage (vigra::UInt16RGBImage &luv, float **&pixels)
 
std::vector< double > classifySVM (struct svm_model *model, int gNumLocs, int **&gLocations, int width, int height, int vector_length, float *&response, int gRadius, vigra::UInt16RGBImage &luv, bool needsMoreIndex=false)
 
void createGrid (int &gNumLocs, int **&gLocations, int gRadius, int width, int height)
 
void generateMask (vigra::BImage &mask, int &gNumLocs, int **&gLocations, std::vector< double > svm_responses, int gRadius, double threshold)
 
vigra::BImage * getCelesteMask (struct svm_model *model, vigra::UInt16RGBImage &input, int radius, float threshold, int resize_dimension, bool adaptThreshold=false, bool verbose=true)
 calculates the mask using SVM More...
 
HuginBase::UIntSet getCelesteControlPoints (struct svm_model *model, vigra::UInt16RGBImage &input, HuginBase::CPointVector cps, int radius, float threshold, int resize_dimension, bool verbose)
 
template<class SrcIMG >
void convertToUInt16 (SrcIMG &src, const std::string &origType, vigra::UInt16RGBImage &dest)
 converts the given image to UInt16RGBImage only this image is correctly processed by celeste More...
 
float * ProcessChannel (float **image, int w, int h, int gNumLocs, int **&gLocations, int gRadius, float *response, int *len)
 
template<class T >
static T min (T x, T y)
 
template<class T >
static T max (T x, T y)
 
template<class T >
static void swap (T &x, T &y)
 
template<class S , class T >
static void clone (T *&dst, S *src, int n)
 
static double powi (double base, int times)
 
static void print_string_stdout (const char *s)
 
static void info (const char *fmt,...)
 
static void solve_c_svc (const svm_problem *prob, const svm_parameter *param, double *alpha, Solver::SolutionInfo *si, double Cp, double Cn)
 
static void solve_nu_svc (const svm_problem *prob, const svm_parameter *param, double *alpha, Solver::SolutionInfo *si)
 
static void solve_one_class (const svm_problem *prob, const svm_parameter *param, double *alpha, Solver::SolutionInfo *si)
 
static void solve_epsilon_svr (const svm_problem *prob, const svm_parameter *param, double *alpha, Solver::SolutionInfo *si)
 
static void solve_nu_svr (const svm_problem *prob, const svm_parameter *param, double *alpha, Solver::SolutionInfo *si)
 
static decision_function svm_train_one (const svm_problem *prob, const svm_parameter *param, double Cp, double Cn)
 
static void sigmoid_train (int l, const double *dec_values, const double *labels, double &A, double &B)
 
static double sigmoid_predict (double decision_value, double A, double B)
 
static void multiclass_probability (int k, double **r, double *p)
 
static void svm_binary_svc_probability (const svm_problem *prob, const svm_parameter *param, double Cp, double Cn, double &probA, double &probB)
 
static double svm_svr_probability (const svm_problem *prob, const svm_parameter *param)
 
static void svm_group_classes (const svm_problem *prob, int *nr_class_ret, int **label_ret, int **start_ret, int **count_ret, int *perm)
 
svm_modelsvm_train (const svm_problem *prob, const svm_parameter *param)
 
void svm_cross_validation (const svm_problem *prob, const svm_parameter *param, int nr_fold, double *target)
 
int svm_get_svm_type (const svm_model *model)
 
int svm_get_nr_class (const svm_model *model)
 
void svm_get_labels (const svm_model *model, int *label)
 
void svm_get_sv_indices (const svm_model *model, int *indices)
 
int svm_get_nr_sv (const svm_model *model)
 
double svm_get_svr_probability (const svm_model *model)
 
double svm_predict_values (const svm_model *model, const svm_node *x, double *dec_values)
 
double svm_predict (const svm_model *model, const svm_node *x)
 
double svm_predict_probability (const svm_model *model, const svm_node *x, double *prob_estimates)
 
int svm_save_model (const char *model_file_name, const svm_model *model)
 
static char * readline (FILE *input)
 
bool read_model_header (FILE *fp, svm_model *model)
 
svm_modelsvm_load_model (const char *model_file_name)
 
void svm_free_model_content (svm_model *model_ptr)
 
void svm_free_and_destroy_model (svm_model **model_ptr_ptr)
 
void svm_destroy_param (svm_parameter *param)
 
const char * svm_check_parameter (const svm_problem *prob, const svm_parameter *param)
 
int svm_check_probability_model (const svm_model *model)
 
void svm_set_print_string_function (void(*print_func)(const char *))
 
struct svm_modelsvm_train (const struct svm_problem *prob, const struct svm_parameter *param)
 
void svm_cross_validation (const struct svm_problem *prob, const struct svm_parameter *param, int nr_fold, double *target)
 
int svm_save_model (const char *model_file_name, const struct svm_model *model)
 
int svm_get_svm_type (const struct svm_model *model)
 
int svm_get_nr_class (const struct svm_model *model)
 
void svm_get_labels (const struct svm_model *model, int *label)
 
void svm_get_sv_indices (const struct svm_model *model, int *sv_indices)
 
int svm_get_nr_sv (const struct svm_model *model)
 
double svm_get_svr_probability (const struct svm_model *model)
 
double svm_predict_values (const struct svm_model *model, const struct svm_node *x, double *dec_values)
 
double svm_predict (const struct svm_model *model, const struct svm_node *x)
 
double svm_predict_probability (const struct svm_model *model, const struct svm_node *x, double *prob_estimates)
 
const char * svm_check_parameter (const struct svm_problem *prob, const struct svm_parameter *param)
 
int svm_check_probability_model (const struct svm_model *model)
 
void Permute (int *array, size_t size)
 
int cmp (const void *s1, const void *s2)
 
float Heavyside (float a)
 
float Sigmoid (float act)
 
float Sigmoid (float beta, float a_pot)
 
float Sigmoid (float beta, float a_pot, float thresh)
 
int ** CreateMatrix (int val, int row, int col)
 
void ResetMatrix (int **matrix, int val, int row, int col)
 
void DisposeMatrix (int **matrix, int row)
 
float ** CreateMatrix (float val, int row, int col)
 
void ResetMatrix (float **matrix, float val, int row, int col)
 
void DisposeMatrix (float **matrix, int row)
 
float ReturnDistance (float *pat1, float *pat2, int size)
 
void SkipComments (std::ifstream *infile)
 
void FileCreateError (char *filename)
 
void FileOpenError (char *filename)
 
void GetStreamDefaults (void)
 
void AdjustStream (std::ostream &os, int precision, int width, int pos, bool trailers)
 
void SetStreamDefaults (std::ostream &os)
 
double SafeAbs (double val1, double val2)
 
float SafeAbs (float val1, float val2)
 
int SafeAbs (int val1, int val2)
 
double SafeAbs (double val)
 
float SafeAbs (float val)
 
int SafeAbs (int val)
 

Variables

bool kSaveFilter = false
 
bool kVerbosity = false
 
float gS = 18.0
 
int gA = 8
 
int gF = 6
 
float gL = 0.1f
 
float gU = 1.8f
 
float CONTRAST [9][9]
 
int libsvm_version = LIBSVM_VERSION
 
static void(* svm_print_string )(const char *) = &print_string_stdout
 
static const char * svm_type_table []
 
static const char * kernel_type_table []
 
static char * line = NULL
 
static int max_line_len
 
std::streamsize gPrecision
 
std::streamsize gWidth
 

Typedef Documentation

typedef float celeste::Qfloat

Definition at line 59 of file svm.cpp.

typedef vigra::BRGBImage::PixelType celeste::RGB

Definition at line 42 of file Celeste.cpp.

typedef signed char celeste::schar

Definition at line 60 of file svm.cpp.

Enumeration Type Documentation

anonymous enum
Enumerator
kChars 
kFloats 
kRGB 

Definition at line 40 of file ImageFile.h.

anonymous enum
Enumerator
C_SVC 
NU_SVC 
ONE_CLASS 
EPSILON_SVR 
NU_SVR 

Definition at line 57 of file svm.h.

anonymous enum
Enumerator
LINEAR 
POLY 
RBF 
SIGMOID 
PRECOMPUTED 

Definition at line 58 of file svm.h.

anonymous enum
Enumerator
kLeft 
kRight 

Definition at line 42 of file Utilities.h.

Function Documentation

void celeste::AdjustStream ( std::ostream &  os,
int  precision,
int  width,
int  pos,
bool  trailers 
)

Definition at line 218 of file Utilities.cpp.

References kLeft.

std::vector<double> celeste::classifySVM ( struct svm_model *  model,
int  gNumLocs,
int **&  gLocations,
int  width,
int  height,
int  vector_length,
float *&  response,
int  gRadius,
vigra::UInt16RGBImage &  luv,
bool  needsMoreIndex = false 
)
template<class S , class T >
static void celeste::clone ( T *&  dst,
S *  src,
int  n 
)
inlinestatic

Definition at line 68 of file svm.cpp.

Referenced by celeste::Kernel::Kernel(), celeste::Solver::Solve(), and celeste::SVC_Q::SVC_Q().

int celeste::cmp ( const void *  s1,
const void *  s2 
)

Definition at line 66 of file Utilities.cpp.

References celeste::tmp::r.

Referenced by Permute().

template<class SrcIMG >
void celeste::convertToUInt16 ( SrcIMG &  src,
const std::string &  origType,
vigra::UInt16RGBImage &  dest 
)

converts the given image to UInt16RGBImage only this image is correctly processed by celeste

Parameters
srcinput image
origTypepixel type of input image
destconverted image

this convert routine scale the input values range into the full scale of UInt16 this is not fully correct

Definition at line 70 of file Celeste.h.

References vigra_ext::applyMapping(), vigra_ext::destImage(), vigra_ext::getMaxValForPixelType(), vigra_ext::srcImageRange(), and vigra_ext::transformImage().

Referenced by loadAndConvertImage().

void celeste::createGrid ( int &  gNumLocs,
int **&  gLocations,
int  gRadius,
int  width,
int  height 
)

Definition at line 234 of file Celeste.cpp.

References CreateMatrix().

Referenced by getCelesteMask().

int ** celeste::CreateMatrix ( int  val,
int  row,
int  col 
)

Definition at line 101 of file Utilities.cpp.

Referenced by createGrid(), getCelesteControlPoints(), main(), and prepareGaborImage().

float ** celeste::CreateMatrix ( float  val,
int  row,
int  col 
)

Definition at line 130 of file Utilities.cpp.

CELESTEIMPEX void celeste::destroySVMmodel ( struct svm_model *&  model)

frees the resource of model

Parameters
modelSVM model struct to freeing

Definition at line 60 of file Celeste.cpp.

References svm_free_and_destroy_model().

Referenced by main(), PanoDetector::run(), and MainFrame::~MainFrame().

void celeste::DisposeMatrix ( int **  matrix,
int  row 
)

Definition at line 122 of file Utilities.cpp.

Referenced by getCelesteControlPoints(), and getCelesteMask().

void celeste::DisposeMatrix ( float **  matrix,
int  row 
)

Definition at line 151 of file Utilities.cpp.

void celeste::FileCreateError ( char *  filename)

Definition at line 191 of file Utilities.cpp.

void celeste::FileOpenError ( char *  filename)

Definition at line 200 of file Utilities.cpp.

void celeste::generateMask ( vigra::BImage &  mask,
int &  gNumLocs,
int **&  gLocations,
std::vector< double >  svm_responses,
int  gRadius,
double  threshold 
)

Definition at line 290 of file Celeste.cpp.

Referenced by getCelesteMask().

CELESTEIMPEX HuginBase::UIntSet celeste::getCelesteControlPoints ( struct svm_model *  model,
vigra::UInt16RGBImage &  input,
HuginBase::CPointVector  cps,
int  radius,
float  threshold,
int  resize_dimension,
bool  verbose 
)
CELESTEIMPEX vigra::BImage * celeste::getCelesteMask ( struct svm_model *  model,
vigra::UInt16RGBImage &  input,
int  radius,
float  threshold,
int  resize_dimension,
bool  adaptThreshold = false,
bool  verbose = true 
)

calculates the mask using SVM

Parameters
modelstruct svm_model which is used
inputinput image
radiusradius for calculation of mask, smaller value results in higher resolution but longer calculation time
thresholdthresold value, lower value will reject more values
resize_dimensionthe image is resized for calculation that the bigger dimension is small than resize_dimension
adaptThresholdif true then the threshold is changed, if the all values are higher than threshold
Returns
vigra::BImage, which contains the masks

Definition at line 313 of file Celeste.cpp.

References classifySVM(), createGrid(), vigra_ext::destImageRange(), DisposeMatrix(), generateMask(), min(), prepareCelesteImage(), prepareGaborImage(), ProcessChannel(), and vigra_ext::srcImageRange().

Referenced by PanoDetector::AnalyzeImage(), and main().

void celeste::GetStreamDefaults ( void  )

Definition at line 212 of file Utilities.cpp.

References gPrecision, and gWidth.

float celeste::Heavyside ( float  a)

Definition at line 75 of file Utilities.cpp.

static void celeste::info ( const char *  fmt,
  ... 
)
static
CELESTEIMPEX bool celeste::loadSVMmodel ( struct svm_model *&  model,
std::string &  model_file 
)

loads the SVM model from file

Parameters
modelstruct, which stores the SVM information, if you don't need it, call destroySVMmodel
model_filefilename of model file to load
Returns
true, if loading of SVM file was sucessfull

Definition at line 45 of file Celeste.cpp.

References svm_load_model().

Referenced by MainFrame::GetSVMModel(), PanoDetector::LoadSVMModel(), and main().

template<class T >
static T celeste::max ( x,
y 
)
inlinestatic

Definition at line 65 of file svm.cpp.

Referenced by HuginLines::_getVerticalLines(), HuginBase::Photometric::InvResponseTransform< VTIn, VTOut >::apply(), vigra_ext::applyExposureClipMask(), vigra_ext::LUTFunctor< VTInCompReal, LUTD >::applyLutInteger(), vigra_ext::InvLUTFunctor< VT1, LUT >::applyLutInteger(), OptimizePanel::AskApplyResult(), celeste::Cache::Cache(), HuginBase::CalculateFOV::calcFOV(), HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::calcSrcCoordImgs(), celeste::Solver::calculate_rho(), celeste::Solver_NU::calculate_rho(), HuginBase::Photometric::ResponseTransform< VTIn >::calcVigFactor(), HuginLines::ccdist(), KDTreeSpace::KDTree< KE, VTYPE >::choosePivot(), HuginBase::convertTo8Bit(), vigra_ext::ConvertTo8Bit(), createCtrlPoints(), vigra_ext::createGammaLUT(), TextureManager::TextureInfo::DefineLevels(), KDTreeSpace::HyperRectangle< KE, TYPE >::display(), celeste::Solver_NU::do_shrinking(), HuginBase::Photometric::InvResponseTransform< VTIn, VTOut >::emitGLSL(), vigra_ext::enforceMonotonicity(), HuginBase::Nona::estScaleFactorForFullFrame(), PanoDetector::FilterMatchesInPair(), GenerateThumbnail(), HuginBase::getCPoutsideLimit(), HuginBase::getCPoutsideLimit_pair(), HuginBase::PanoramaOptions::getFormatFromName(), vigra_ext::getMaxComponent(), HuginBase::Panorama::getMaxExposureDifference(), TextureManager::GetMaxTotalTexels(), HuginBase::Panorama::getNextCPTypeLineNumber(), hugin_utils::getPathPrefix(), PreviewEditCPTool::GetSelectedROI(), InputImage::getValue(), GreatCircleArc::GreatCircleArc(), imageCacheEntry2wxImage(), HuginBase::ImageCache::importAndConvertAlphaImage(), HuginBase::ImageCache::importAndConvertImage(), HuginBase::Photometric::ResponseTransform< VTIn >::initWithSrcImg(), PanoDetector::LoadKeypoints(), PanoDetector::loadProject(), main(), vigra_ext::MergeImages(), multiclass_probability(), vigra_ext::normalizeValue(), MaskImageCtrl::OnChar(), PreviewFrame::OnRangeCompressionDecrease(), GLPreviewFrame::OnRangeCompressionDecrease(), CPListFrame::OnSelectButton(), vigra_ext::detail::CombineMasks::operator()(), vigra_ext::poisson::MaskGreaterAccessor< PixelType >::operator()(), vigra_ext::poisson::MaskSmallerAccessor< PixelType >::operator()(), wxcode::wxTreeListMainWindow::PaintItem(), wxcode::wxTreeListMainWindow::PaintLevel(), GLPreviewFrame::panoramaChanged(), PointFineTuneProjectionAware(), PanoCommand::DistributeImagesCmd::processPanorama(), KDTreeSpace::KDTree< KE, VTYPE >::recurseNearestNeighboursBBF(), enblend::reduce(), reduceFilesToHDR(), vigra_ext::reduceROIImages(), HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage(), ResaveImageFill(), MaskImageCtrl::rescaleImage(), CPImageCtrl::rescaleImage(), MinStacker< ValueType >::reset(), vigra_ext::detail::ResizeImage(), BatchFrame::RestoreSize(), SaveFinalImage(), HuginBase::LensDB::SaveLensDataFromPano(), celeste::Solver_NU::select_working_set(), MaskImageCtrl::SelectPointsInsideMouseRect(), PanosphereOverviewVisualizationState::setFOV(), VisualizationState::SetZoomLevel(), celeste::Solver::Solve(), GreatCircleArc::squareDistance(), HuginBase::Nona::ReduceStitcher< ImageType, AlphaType >::stitch(), hugin_utils::stripPath(), svm_predict_probability(), HuginBase::Nona::traceImageOutline(), vigra_ext::transformImageAlphaGPUIntern(), PanoPanel::UpdateDisplay(), SplitButton::UpdateMinSize(), PreviewPanel::updatePreview(), ImagesPanel::UpdatePreviewImage(), GLPreviewFrame::UpdateRoiDisplay(), celeste::PGMImage::Write(), and celeste::PGMImage::WriteScaled().

template<class T >
static T celeste::min ( x,
y 
)
inlinestatic

Definition at line 62 of file svm.cpp.

Referenced by HuginLines::_getVerticalLines(), PreviewIdentifyTool::AfterDrawImagesEvent(), vigra_ext::ApplyGammaFunctor< vigra::UInt16, vigra::UInt8 >::ApplyGammaFunctor(), OptimizePanel::AskApplyResult(), HuginBase::CalculateOptimalROI::autocrop(), vigra_ext::poisson::BuildSeamPyramid(), celeste::Solver::calculate_rho(), celeste::Solver_NU::calculate_rho(), HuginBase::Photometric::ResponseTransform< VTIn >::calcVigFactor(), HuginLines::ccdist(), HuginBase::convertTo8Bit(), vigra_ext::ConvertTo8Bit(), CPEvent::CPEvent(), ProjectionGridTool::createTexture(), TextureManager::TextureInfo::DefineLevels(), hugin_utils::doubleToString(), DisplayedControlPoint::Draw(), DisplayedControlPoint::DrawLineSegment(), PreviewPanel::DrawPreview(), DisplayedControlPoint::DrawTextMag(), CPEditorPanel::estimateAndAddOtherPoint(), HuginBase::estimateImageAlpha(), HuginBase::CalculateFitPanorama::fitPano(), GenerateThumbnail(), getCelesteMask(), HuginBase::getCPoutsideLimit(), HuginBase::getCPoutsideLimit_pair(), HuginLines::VerticalLine::GetEstimatedDistance(), PanoOperation::AssignStacksOperation::GetInternalCommand(), HuginBase::Panorama::getMaxExposureDifference(), vigra_ext::getMinComponent(), PreviewEditCPTool::GetSelectedROI(), GreatCircleArc::GreatCircleArc(), HuginBase::SrcPanoImage::isInside(), loadImagesPyr(), PanoDetector::loadProject(), main(), PanoDetector::matchPrealigned(), CPEditorPanel::NewPointChange(), PreviewFrame::OnRangeCompressionIncrease(), GLPreviewFrame::OnRangeCompressionIncrease(), CPListFrame::OnSelectButton(), optGetError(), PointFineTuneProjectionAware(), MaskLoadDialog::ProcessMask(), PanoCommand::DistributeImagesCmd::processPanorama(), reduceFilesToHDR(), HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage(), ResaveImageFill(), MaxStacker< ValueType >::reset(), BatchFrame::RestoreSize(), OptimizePhotometricPanel::runOptimizer(), HuginBase::LensDB::SaveLensDataFromPano(), MaskImageCtrl::SelectPointsInsideMouseRect(), PanosphereOverviewVisualizationState::setFOV(), HuginBase::PanoramaOptions::setHFOV(), HuginBase::PanoramaOptions::setVFOV(), VisualizationState::SetViewingCenter(), VisualizationState::SetZoomLevel(), celeste::Solver::Solve(), solve_nu_svc(), solve_nu_svr(), svm_check_parameter(), svm_predict_probability(), HuginBase::Nona::traceImageOutline(), vigra_ext::transformImageAlphaGPUIntern(), PreferencesDialog::UpdateDisplayData(), PreviewPanel::updatePreview(), celeste::PGMImage::Write(), and celeste::PGMImage::WriteScaled().

static void celeste::multiclass_probability ( int  k,
double **  r,
double *  p 
)
static

Definition at line 1878 of file svm.cpp.

References info(), Malloc, and max().

Referenced by svm_predict_probability().

void celeste::Permute ( int *  array,
size_t  size 
)

Definition at line 46 of file Utilities.cpp.

References cmp(), celeste::tmp::p, and celeste::tmp::r.

static double celeste::powi ( double  base,
int  times 
)
inlinestatic

Definition at line 73 of file svm.cpp.

Referenced by celeste::Kernel::k_function(), and celeste::Kernel::kernel_poly().

void celeste::prepareCelesteImage ( vigra::UInt16RGBImage &  rgb,
vigra::UInt16RGBImage &  luv,
int &  resize_dimension,
double &  sizefactor,
bool  verbose 
)
void celeste::prepareGaborImage ( vigra::UInt16RGBImage &  luv,
float **&  pixels 
)

Definition at line 138 of file Celeste.cpp.

References CreateMatrix().

Referenced by getCelesteControlPoints(), and getCelesteMask().

static void celeste::print_string_stdout ( const char *  s)
static

Definition at line 88 of file svm.cpp.

Referenced by svm_set_print_string_function().

float * celeste::ProcessChannel ( float **  image,
int  w,
int  h,
int  gNumLocs,
int **&  gLocations,
int  gRadius,
float *  response,
int *  len 
)
bool celeste::read_model_header ( FILE *  fp,
svm_model *  model 
)
static char* celeste::readline ( FILE *  input)
static

Definition at line 2787 of file svm.cpp.

References line, and max_line_len.

Referenced by svm_load_model().

void celeste::ResetMatrix ( int **  matrix,
int  val,
int  row,
int  col 
)

Definition at line 114 of file Utilities.cpp.

void celeste::ResetMatrix ( float **  matrix,
float  val,
int  row,
int  col 
)

Definition at line 143 of file Utilities.cpp.

float celeste::ReturnDistance ( float *  pat1,
float *  pat2,
int  size 
)

Definition at line 159 of file Utilities.cpp.

double celeste::SafeAbs ( double  val1,
double  val2 
)

Definition at line 244 of file Utilities.cpp.

float celeste::SafeAbs ( float  val1,
float  val2 
)

Definition at line 252 of file Utilities.cpp.

int celeste::SafeAbs ( int  val1,
int  val2 
)

Definition at line 260 of file Utilities.cpp.

double celeste::SafeAbs ( double  val)

Definition at line 268 of file Utilities.cpp.

float celeste::SafeAbs ( float  val)

Definition at line 274 of file Utilities.cpp.

int celeste::SafeAbs ( int  val)

Definition at line 280 of file Utilities.cpp.

void celeste::SetStreamDefaults ( std::ostream &  os)

Definition at line 233 of file Utilities.cpp.

References gPrecision, and gWidth.

float celeste::Sigmoid ( float  act)

Definition at line 82 of file Utilities.cpp.

float celeste::Sigmoid ( float  beta,
float  a_pot 
)

Definition at line 90 of file Utilities.cpp.

float celeste::Sigmoid ( float  beta,
float  a_pot,
float  thresh 
)

Definition at line 95 of file Utilities.cpp.

static double celeste::sigmoid_predict ( double  decision_value,
double  A,
double  B 
)
static

Definition at line 1867 of file svm.cpp.

Referenced by svm_predict_probability().

static void celeste::sigmoid_train ( int  l,
const double *  dec_values,
const double *  labels,
double &  A,
double &  B 
)
static

Definition at line 1752 of file svm.cpp.

References info(), vigra_ext::log(), log1p, Malloc, and sigma.

Referenced by svm_binary_svc_probability().

void celeste::SkipComments ( std::ifstream *  infile)

Definition at line 170 of file Utilities.cpp.

static void celeste::solve_c_svc ( const svm_problem *  prob,
const svm_parameter *  param,
double *  alpha,
Solver::SolutionInfo *  si,
double  Cp,
double  Cn 
)
static
static void celeste::solve_epsilon_svr ( const svm_problem *  prob,
const svm_parameter *  param,
double *  alpha,
Solver::SolutionInfo *  si 
)
static
static void celeste::solve_nu_svc ( const svm_problem *  prob,
const svm_parameter *  param,
double *  alpha,
Solver::SolutionInfo *  si 
)
static
static void celeste::solve_nu_svr ( const svm_problem *  prob,
const svm_parameter *  param,
double *  alpha,
Solver::SolutionInfo *  si 
)
static
static void celeste::solve_one_class ( const svm_problem *  prob,
const svm_parameter *  param,
double *  alpha,
Solver::SolutionInfo *  si 
)
static
static void celeste::svm_binary_svc_probability ( const svm_problem *  prob,
const svm_parameter *  param,
double  Cp,
double  Cn,
double &  probA,
double &  probB 
)
static
const char* celeste::svm_check_parameter ( const struct svm_problem *  prob,
const struct svm_parameter *  param 
)
const char* celeste::svm_check_parameter ( const svm_problem *  prob,
const svm_parameter *  param 
)
int celeste::svm_check_probability_model ( const struct svm_model *  model)
int celeste::svm_check_probability_model ( const svm_model *  model)
void celeste::svm_cross_validation ( const struct svm_problem *  prob,
const struct svm_parameter *  param,
int  nr_fold,
double *  target 
)
void celeste::svm_cross_validation ( const svm_problem *  prob,
const svm_parameter *  param,
int  nr_fold,
double *  target 
)
void celeste::svm_destroy_param ( svm_parameter *  param)
void celeste::svm_free_and_destroy_model ( svm_model **  model_ptr_ptr)

Definition at line 3073 of file svm.cpp.

References svm_free_model_content().

Referenced by destroySVMmodel(), svm_binary_svc_probability(), and svm_cross_validation().

void celeste::svm_free_model_content ( svm_model *  model_ptr)
void celeste::svm_get_labels ( const struct svm_model *  model,
int *  label 
)
void celeste::svm_get_labels ( const svm_model *  model,
int *  label 
)

Definition at line 2519 of file svm.cpp.

References celeste::svm_model::label, and celeste::svm_model::nr_class.

int celeste::svm_get_nr_class ( const struct svm_model *  model)
int celeste::svm_get_nr_class ( const svm_model *  model)

Definition at line 2514 of file svm.cpp.

References celeste::svm_model::nr_class.

Referenced by classifySVM(), and svm_cross_validation().

int celeste::svm_get_nr_sv ( const struct svm_model *  model)
int celeste::svm_get_nr_sv ( const svm_model *  model)

Definition at line 2533 of file svm.cpp.

References celeste::svm_model::l.

void celeste::svm_get_sv_indices ( const struct svm_model *  model,
int *  sv_indices 
)
void celeste::svm_get_sv_indices ( const svm_model *  model,
int *  indices 
)

Definition at line 2526 of file svm.cpp.

References celeste::svm_model::l, and celeste::svm_model::sv_indices.

int celeste::svm_get_svm_type ( const struct svm_model *  model)
int celeste::svm_get_svm_type ( const svm_model *  model)

Definition at line 2509 of file svm.cpp.

References celeste::svm_model::param, and celeste::svm_parameter::svm_type.

double celeste::svm_get_svr_probability ( const struct svm_model *  model)
double celeste::svm_get_svr_probability ( const svm_model *  model)
static void celeste::svm_group_classes ( const svm_problem *  prob,
int *  nr_class_ret,
int **  label_ret,
int **  start_ret,
int **  count_ret,
int *  perm 
)
static

Definition at line 2063 of file svm.cpp.

References celeste::svm_problem::l, Malloc, swap(), and celeste::svm_problem::y.

Referenced by svm_cross_validation(), and svm_train().

struct svm_model * celeste::svm_load_model ( const char *  model_file_name)
double celeste::svm_predict ( const struct svm_model *  model,
const struct svm_node *  x 
)
double celeste::svm_predict ( const svm_model *  model,
const svm_node *  x 
)
double celeste::svm_predict_probability ( const struct svm_model *  model,
const struct svm_node *  x,
double *  prob_estimates 
)
double celeste::svm_predict_probability ( const svm_model *  model,
const svm_node *  x,
double *  prob_estimates 
)
double celeste::svm_predict_values ( const struct svm_model *  model,
const struct svm_node *  x,
double *  dec_values 
)
double celeste::svm_predict_values ( const svm_model *  model,
const svm_node *  x,
double *  dec_values 
)
int celeste::svm_save_model ( const char *  model_file_name,
const struct svm_model *  model 
)
int celeste::svm_save_model ( const char *  model_file_name,
const svm_model *  model 
)
void celeste::svm_set_print_string_function ( void(*)(const char *)  print_func)

Definition at line 3218 of file svm.cpp.

References print_string_stdout(), and svm_print_string.

static double celeste::svm_svr_probability ( const svm_problem *  prob,
const svm_parameter *  param 
)
static
struct svm_model* celeste::svm_train ( const struct svm_problem *  prob,
const struct svm_parameter *  param 
)
svm_model* celeste::svm_train ( const svm_problem *  prob,
const svm_parameter *  param 
)
static decision_function celeste::svm_train_one ( const svm_problem *  prob,
const svm_parameter *  param,
double  Cp,
double  Cn 
)
static
template<class T >
static void celeste::swap ( T &  x,
T &  y 
)
inlinestatic

Variable Documentation

float celeste::CONTRAST[9][9]

Definition at line 32 of file ContrastFilter.cpp.

Referenced by celeste::ContrastFilter::ApplyFilter().

int celeste::gA = 8

Definition at line 37 of file CelesteGlobals.cpp.

Referenced by ProcessChannel().

int celeste::gF = 6

Definition at line 40 of file CelesteGlobals.cpp.

Referenced by ProcessChannel().

float celeste::gL = 0.1f

Definition at line 43 of file CelesteGlobals.cpp.

Referenced by ProcessChannel().

std::streamsize celeste::gPrecision

Definition at line 34 of file Utilities.cpp.

Referenced by GetStreamDefaults(), and SetStreamDefaults().

float celeste::gS = 18.0

Definition at line 34 of file CelesteGlobals.cpp.

Referenced by ProcessChannel().

float celeste::gU = 1.8f

Definition at line 46 of file CelesteGlobals.cpp.

Referenced by ProcessChannel().

std::streamsize celeste::gWidth

Definition at line 35 of file Utilities.cpp.

Referenced by GetStreamDefaults(), and SetStreamDefaults().

const char* celeste::kernel_type_table[]
static
Initial value:
=
{
"linear","polynomial","rbf","sigmoid","precomputed",NULL
}

Definition at line 2685 of file svm.cpp.

Referenced by read_model_header(), and svm_save_model().

bool celeste::kSaveFilter = false

Definition at line 28 of file CelesteGlobals.cpp.

Referenced by ProcessChannel().

bool celeste::kVerbosity = false

Definition at line 29 of file CelesteGlobals.cpp.

Referenced by celeste::GaborJet::Filter().

int celeste::libsvm_version = LIBSVM_VERSION

Definition at line 58 of file svm.cpp.

char* celeste::line = NULL
static
int celeste::max_line_len
static

Definition at line 2785 of file svm.cpp.

Referenced by readline(), and svm_load_model().

void(* celeste::svm_print_string)(const char *) = &print_string_stdout
static

Definition at line 93 of file svm.cpp.

Referenced by svm_set_print_string_function().

const char* celeste::svm_type_table[]
static
Initial value:
=
{
"c_svc","nu_svc","one_class","epsilon_svr","nu_svr",NULL
}

Definition at line 2680 of file svm.cpp.

Referenced by read_model_header(), and svm_save_model().