CC Localization
Functions | Variables
localization.cc File Reference
#include "tiff.hh"
#include "nelder_mead.hh"
#include "utils.hh"
#include <iostream>
#include <cmath>
Include dependency graph for localization.cc:

Go to the source code of this file.

Functions

double psf_ig2 (double x, double y, double const *p)
 Point-spread function with integrated Gaussian.
 
double likelihood (double const *i, int l, int w, double const *p)
 negative Likelihood calculation for given parameter More...
 
double fn (double const *p)
 Function to be minimized.
 
void process_image (double const *data, int w, int h)
 Process a single 2D image. More...
 
int main (int argc, char **argv)
 Main function for localization.
 

Variables

double const * fn_im
 cropped square image data
 
int fn_w
 image width
 
unsigned fn_cnt
 count of function calls
 

Function Documentation

◆ likelihood()

double likelihood ( double const *  i,
int  l,
int  w,
double const *  p 
)

negative Likelihood calculation for given parameter

Parameters
iimage
llateral size of subimage
woriginal image width
pparameters

Definition at line 18 of file localization.cc.

◆ process_image()

void process_image ( double const *  data,
int  w,
int  h 
)

Process a single 2D image.

Parameters
dataimage data
wimage width
himage height

Definition at line 46 of file localization.cc.