![]() |
aimsalgo
5.0.5
Neuroimaging image processing
|
#include <aims/resampling/harmonicCageResampler.h>
Public Member Functions | |
HarmonicCageMeshResampler (const AimsSurfaceTriangle &cage, float spacing) | |
HarmonicCageMeshResampler (const AimsData< unsigned int > &cage, std::vector< Point3df > &controls, short background=0, short border=1, short inside=2) | |
~HarmonicCageMeshResampler () | |
const Point3df & | getControl (int ind) const |
const AimsData< float > & | get_image_coords (int ind) const |
void | set_keep_image_coords (bool state) |
void | moveControl (int ind, const Point3df &p) |
Point3df | coordinate (const Point3df &p) const |
from native coordinate to resample coordinates (point version) More... | |
AimsSurfaceTriangle * | coordinates (const AimsSurfaceTriangle &mesh) const |
from native coordinate to resample coordinates (mesh version) More... | |
void | computeCoordinates (float threshold=10e-4) |
Protected Attributes | |
AimsData< unsigned int > | _cage |
std::vector< Point3df > | _controls |
short | _background |
short | _border |
short | _inside |
bool | _keep_image_coords |
std::vector< AimsData< float > > | _image_coords |
std::map< Point3df, std::map< int, float >, Point3dfCompare > | _weights |
Definition at line 45 of file harmonicCageResampler.h.
aims::HarmonicCageMeshResampler::HarmonicCageMeshResampler | ( | const AimsSurfaceTriangle & | cage, |
float | spacing | ||
) |
aims::HarmonicCageMeshResampler::HarmonicCageMeshResampler | ( | const AimsData< unsigned int > & | cage, |
std::vector< Point3df > & | controls, | ||
short | background = 0 , |
||
short | border = 1 , |
||
short | inside = 2 |
||
) |
|
inline |
Definition at line 53 of file harmonicCageResampler.h.
References get_image_coords(), and getControl().
void aims::HarmonicCageMeshResampler::computeCoordinates | ( | float | threshold = 10e-4 | ) |
Referenced by set_keep_image_coords().
from native coordinate to resample coordinates (point version)
Definition at line 82 of file harmonicCageResampler.h.
References _controls, and _weights.
Referenced by set_keep_image_coords().
AimsSurfaceTriangle* aims::HarmonicCageMeshResampler::coordinates | ( | const AimsSurfaceTriangle & | mesh | ) | const |
from native coordinate to resample coordinates (mesh version)
Referenced by set_keep_image_coords().
|
inline |
Definition at line 100 of file harmonicCageResampler.h.
References _image_coords.
Referenced by ~HarmonicCageMeshResampler().
const Point3df& aims::HarmonicCageMeshResampler::getControl | ( | int | ind | ) | const |
Referenced by ~HarmonicCageMeshResampler().
void aims::HarmonicCageMeshResampler::moveControl | ( | int | ind, |
const Point3df & | p | ||
) |
Referenced by set_keep_image_coords().
|
inline |
Definition at line 58 of file harmonicCageResampler.h.
References _keep_image_coords, computeCoordinates(), coordinate(), coordinates(), and moveControl().
|
protected |
Definition at line 72 of file harmonicCageResampler.h.
|
protected |
Definition at line 73 of file harmonicCageResampler.h.
|
protected |
Definition at line 70 of file harmonicCageResampler.h.
|
protected |
Definition at line 71 of file harmonicCageResampler.h.
Referenced by coordinate().
|
protected |
Definition at line 76 of file harmonicCageResampler.h.
Referenced by get_image_coords().
|
protected |
Definition at line 74 of file harmonicCageResampler.h.
|
protected |
Definition at line 75 of file harmonicCageResampler.h.
Referenced by set_keep_image_coords().
|
protected |
Definition at line 77 of file harmonicCageResampler.h.
Referenced by coordinate().