#include <fstream>
#include <limits>
#include <iostream>
#include <assert.h>
#include <time.h>
#include <boost/tokenizer.hpp>
#include "Image.h"
#include "Filters.h"
#include "LIC.h"
#include "simple_tools.h"
#include "cimg_dependent.h"
Go to the source code of this file.
Functions | |
void | make_vector_field_2D (double angle, const Image< double > &tensor, Image< double > &vec) |
void | make_vector_field_3D (double phi, double theta, const Image< double > &tensor, Image< double > &vec) |
void | show_command_info () |
void | show_current_vars () |
void | read_command_info (int varnum, char **vararg) |
double | gauss (double t) |
bool | refers_to_stack (string str) |
void | to_field (const Image< double > &T, Image< double > &W) |
void | make_debug_field (const Image< double > &T, Image< double > &W) |
int | main (int varnum, char **vararg) |
Variables | |
const double | PI = 3.1415926535897932384 |
double | DT = 30 |
timestep to use for line integral convolution. | |
double | DL = 0.8 |
spatial step to use for line integral convolution. | |
double | ALPHA = 1.2 |
amount of isotropic blurring of image before computing structure tensor | |
double | SIGMA = 1 |
amount of gaussian blur of structure tensor before computing the smoothing geometry T. | |
int | NUM_TIMESTEPS = 1 |
number of timesteps to use | |
double | P1 = 0.3 |
double | P2 = 0.7 |
double | P3 = 0.9 |
double | L = 2 * sqrt(DT) |
length of window for line integral convolution | |
const int | DIV_THETA = 6 |
how many longitude angular steps to use when decomposing the smoothing geometry tensor field T. | |
const double | DTHETA = PI / DIV_THETA |
size of longitude step when decomposing the smoothing geometry T. | |
const int | DIV_PHI = 6 |
how many latitude angular steps to use when decomposing the smoothing geometry tensor field T (only used in 3D) | |
const double | DPHI = PI / DIV_PHI |
size of latitude step when decomposing the smoothing geometry T (3D only) | |
const char | SAVED_3D_FILE [] = "greycstoration_result.stack" |
where to save the result | |
double | C = double(1) / sqrt(4 * PI * DT) |
double | D = double(1) / (4 * DT) |
double gauss | ( | double | t | ) |
Definition at line 109 of file smoothcurvpres.C.
int main | ( | int | varnum, | |
char ** | vararg | |||
) |
Definition at line 189 of file smoothcurvpres.C.
Definition at line 159 of file smoothcurvpres.C.
Definition at line 354 of file smoothcurvpres.C.
void make_vector_field_3D | ( | double | phi, | |
double | theta, | |||
const Image< double > & | tensor, | |||
Image< double > & | vec | |||
) |
Definition at line 312 of file smoothcurvpres.C.
void read_command_info | ( | int | varnum, | |
char ** | vararg | |||
) |
Definition at line 424 of file smoothcurvpres.C.
bool refers_to_stack | ( | string | str | ) |
Definition at line 118 of file smoothcurvpres.C.
void show_command_info | ( | ) |
Definition at line 383 of file smoothcurvpres.C.
void show_current_vars | ( | ) |
Definition at line 451 of file smoothcurvpres.C.
Definition at line 135 of file smoothcurvpres.C.
double ALPHA = 1.2 |
amount of isotropic blurring of image before computing structure tensor
Definition at line 58 of file smoothcurvpres.C.
Definition at line 85 of file smoothcurvpres.C.
Definition at line 86 of file smoothcurvpres.C.
const int DIV_PHI = 6 |
how many latitude angular steps to use when decomposing the smoothing geometry tensor field T (only used in 3D)
Definition at line 79 of file smoothcurvpres.C.
const int DIV_THETA = 6 |
how many longitude angular steps to use when decomposing the smoothing geometry tensor field T.
Definition at line 75 of file smoothcurvpres.C.
double DL = 0.8 |
size of latitude step when decomposing the smoothing geometry T (3D only)
Definition at line 81 of file smoothcurvpres.C.
double DT = 30 |
size of longitude step when decomposing the smoothing geometry T.
Definition at line 77 of file smoothcurvpres.C.
int NUM_TIMESTEPS = 1 |
double P1 = 0.3 |
factor to use for determining amount of smoothing along major smoothing direction when computing the smoothing geometry T.
Definition at line 65 of file smoothcurvpres.C.
double P2 = 0.7 |
factor to use for determining amount of smoothing along second smoothing direction when computing the smoothing geometry T.
Definition at line 68 of file smoothcurvpres.C.
double P3 = 0.9 |
factor to use for determining amount of smoothing along third smoothing direction when computing the smoothing geometry T (only used for 3D).
Definition at line 71 of file smoothcurvpres.C.
const double PI = 3.1415926535897932384 |
Definition at line 50 of file smoothcurvpres.C.
const char SAVED_3D_FILE[] = "greycstoration_result.stack" |
double SIGMA = 1 |
amount of gaussian blur of structure tensor before computing the smoothing geometry T.
Definition at line 60 of file smoothcurvpres.C.