Celeste.cpp File Reference

#include <iostream>
#include <vigra/stdimage.hxx>
#include <vigra/resizeimage.hxx>
#include <vigra/inspectimage.hxx>
#include <vigra/copyimage.hxx>
#include <vigra/transformimage.hxx>
#include <vigra/initimage.hxx>
#include "vigra/colorconversions.hxx"
#include <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <string>
#include <vector>
#include "Gabor.h"
#include "Utilities.h"
#include "CelesteGlobals.h"
#include "Celeste.h"
#include "svm.h"
#include <stdio.h>

Include dependency graph for Celeste.cpp:

Go to the source code of this file.


namespace  celeste


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


bool celeste::loadSVMmodel (struct svm_model *&model, string &model_file)
 loads the SVM model from file
void celeste::destroySVMmodel (struct svm_model *&model)
 frees the resource of model
void celeste::prepareCelesteImage (vigra::UInt16RGBImage &rgb, vigra::UInt16RGBImage &luv, int &resize_dimension, double &sizefactor, bool verbose)
void celeste::prepareGaborImage (vigra::UInt16RGBImage &luv, float **&pixels)
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)
void celeste::createGrid (int &gNumLocs, int **&gLocations, int gRadius, int width, int height)
void celeste::generateMask (vigra::BImage &mask, int &gNumLocs, int **&gLocations, std::vector< double > svm_responses, int gRadius, double threshold)
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
HuginBase::UIntSet celeste::getCelesteControlPoints (struct svm_model *model, vigra::UInt16RGBImage &input, HuginBase::CPointVector cps, int radius, float threshold, int resize_dimension, bool verbose)

Generated on 10 Oct 2015 for Hugintrunk by  doxygen 1.4.7