Polynomial fit.
More...
#include <config.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <inttypes.h>
#include <math.h>
#include <jwsc/base/error.h>
#include <jwsc/base/option.h>
#include <jwsc/vector/vector.h>
#include <jwsc/matrix/matrix.h>
#include <jwsc/matrix/matrix_io.h>
#include <jwsc/matrix/matrix_math.h>
#include <jwsc/stat/regress.h>
Go to the source code of this file.
Detailed Description
Polynomial fit.
- Author:
- Joseph Schlecht
- License:
- Creative Commons BY-NC-SA 3.0
Definition in file polyfit.c.
Define Documentation
#define NUM_OPTS_NO_ARG 2 |
#define NUM_OPTS_WITH_ARG 4 |
#define DEFAULT_SEED 289375 |
#define DEFAULT_SIGMA 1.0f |
#define DEFAULT_RANSAC_ENABLED 0 |
#define DEFAULT_RANSAC_N 0 |
#define DEFAULT_RANSAC_K 0 |
#define DEFAULT_RANSAC_T 0 |
#define DEFAULT_RANSAC_D 0 |
Function Documentation
static void print_usage |
( |
void |
| ) |
[static] |
Prints the usage of the program.
Definition at line 155 of file polyfit.c.
static Error* process_help_opt |
( |
void |
| ) |
[static] |
Processes the 'help' program options.
Definition at line 164 of file polyfit.c.
static Error* process_version_opt |
( |
void |
| ) |
[static] |
Processes the 'version' program options.
Definition at line 171 of file polyfit.c.
Processes the 'seed' program options.
Definition at line 178 of file polyfit.c.
Processes the 'sigma' program options.
Definition at line 192 of file polyfit.c.
Processes the 'degree' program options.
Definition at line 206 of file polyfit.c.
Processes the 'ransac' program options.
Definition at line 220 of file polyfit.c.
int main |
( |
int |
argc, |
|
|
const char ** |
argv |
|
) |
| |
Main function for the polyfit program.
Definition at line 239 of file polyfit.c.
Variable Documentation
Program options taking no argument.
Definition at line 128 of file polyfit.c.
Program options taking an argument.
Definition at line 131 of file polyfit.c.
uint32_t seed = DEFAULT_SEED [static] |
float sigma = DEFAULT_SIGMA [static] |
Sigma for smoothing the image.
Definition at line 137 of file polyfit.c.
uint32_t degree = DEFAULT_DEGREE [static] |
Degree of the polynomial.
Definition at line 140 of file polyfit.c.
struct { ... }
ransac [static] |