![]() |
v0.14.0 |
Go to the source code of this file.
Functions | |
| float | mapGaussSmooth (const float sigma, const vector< float > &vec_density, const vector< float > &vec_dist) |
| PetscErrorCode | getInidcesForGivenCoordinate (const float x, const float y, const float z, const float size, vector< int > &vec_ix, vector< int > &vec_iy, vector< int > &vec_iz, vector< int > &vec_idx, vector< float > &vec_dist, vector< float > &vec_density, MetaImage &meta_file) |
| int | main (int argc, char *argv[]) |
Variables | |
| static char | help [] = "\n" |
| PetscErrorCode getInidcesForGivenCoordinate | ( | const float | x, |
| const float | y, | ||
| const float | z, | ||
| const float | size, | ||
| vector< int > & | vec_ix, | ||
| vector< int > & | vec_iy, | ||
| vector< int > & | vec_iz, | ||
| vector< int > & | vec_idx, | ||
| vector< float > & | vec_dist, | ||
| vector< float > & | vec_density, | ||
| MetaImage & | meta_file | ||
| ) |
| z | center of the cube |
| size | size of the cube |
| vec_ix | vectors of coord points inside cube |
| vec_idx | indices of inside cube with dimensions dx dy dz |
| vec_density | vector of squared distances between center of the cube and points |
Definition at line 245 of file mhd_merger.cpp.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
We create a simple 3D metaImage
Write the image in binary format
Write the object
Clear the object
Definition at line 51 of file mhd_merger.cpp.
| float mapGaussSmooth | ( | const float | sigma, |
| const vector< float > & | vec_density, | ||
| const vector< float > & | vec_dist | ||
| ) |
< normalisation of kernel and smooting values
< avoid division by zero (ad exception) this should not happen /FIXME
| sigma | sigma parameter for gausssian smoothing |
| vec_density | vector with non-smoothed densities |
| vec_dist | vector with squared distances form center of the cubes |
Definition at line 213 of file mhd_merger.cpp.
|
static |
Definition at line 27 of file mhd_merger.cpp.