#include "vtkImageGCR.h"#include "vtkImageExtractComponents.h"#include "vtkImageHistogramNormalization.h"#include "vtkImageShrink3D.h"#include "vtkMath.h"#include "vtkObjectFactory.h"#include "vtkImageChangeInformation.h"#include <cmath>#include <iomanip>#include "vtkNRRDWriter.h"Defines | |
| #define | CGOLD 0.3819660 |
| #define | GLIMIT 100.0 |
| #define | GOLD 1.618034 |
| #define | ITMAX 200 |
| #define | ITMAX 100 |
| #define | MAX(a, b) ((a) > (b) ? (a) : (b)) |
| #define | SHFT(a, b, c, d) (a)=(b);(b)=(c);(c)=(d); |
| #define | SHFT(a, b, c, d) (a)=(b);(b)=(c);(c)=(d); |
| #define | SIGN(a, b) ((b) > 0.0 ? fabs(a) : -fabs(a)) |
| #define | SIGN(a, b) ((b) > 0.0 ? fabs(a) : -fabs(a)) |
| #define | SQR(a) (sqrarg=(a),sqrarg*sqrarg) |
| #define | TINY 1.0e-20 |
| #define | TOL 10e-2 |
| #define | ZEPS 1.0e-10 |
Functions | |
| void | _Print (vtkImageData *DATA,::ostream &os, vtkIndent indent) |
| static int | vtkImageGCRFloor (float x, float &f) |
| static void | vtkImageGCRP2Affine (float *p, vtkTransform *trans) |
| static void | vtkImageGCRP2Rigid (float *p, vtkTransform *trans) |
| static void | vtkImageGCRP2Similarity (float *p, vtkTransform *trans) |
| static void | vtkImageGCRP2Translation (float *p, vtkTransform *trans) |
Variables | |
| static float | sqrarg |
| #define CGOLD 0.3819660 |
Referenced by vtkImageGCR::brent().
| #define GLIMIT 100.0 |
Referenced by vtkImageGCR::mnbrak().
| #define GOLD 1.618034 |
Referenced by vtkImageGCR::mnbrak().
| #define ITMAX 200 |
| #define ITMAX 100 |
Referenced by vtkImageGCR::brent(), and vtkImageGCR::powell().
| #define MAX | ( | a, | |||
| b | ) | ((a) > (b) ? (a) : (b)) |
| #define SHFT | ( | a, | |||
| b, | |||||
| c, | |||||
| d | ) | (a)=(b);(b)=(c);(c)=(d); |
| #define SHFT | ( | a, | |||
| b, | |||||
| c, | |||||
| d | ) | (a)=(b);(b)=(c);(c)=(d); |
Referenced by vtkImageGCR::brent(), and vtkImageGCR::mnbrak().
| #define SIGN | ( | a, | |||
| b | ) | ((b) > 0.0 ? fabs(a) : -fabs(a)) |
| #define SIGN | ( | a, | |||
| b | ) | ((b) > 0.0 ? fabs(a) : -fabs(a)) |
Referenced by vtkImageGCR::brent(), and vtkImageGCR::mnbrak().
Referenced by vtkImageGCR::powell().
| #define TINY 1.0e-20 |
Referenced by vtkImageGCR::mnbrak().
| #define TOL 10e-2 |
Referenced by vtkImageGCR::linmin().
| #define ZEPS 1.0e-10 |
Referenced by vtkImageGCR::brent().
| void _Print | ( | vtkImageData * | DATA, | |
| ::ostream & | os, | |||
| vtkIndent | indent | |||
| ) |
| static int vtkImageGCRFloor | ( | float | x, | |
| float & | f | |||
| ) | [inline, static] |
Referenced by vtkImageGCR::TrilinearWeights().
| static void vtkImageGCRP2Affine | ( | float * | p, | |
| vtkTransform * | trans | |||
| ) | [static] |
Referenced by vtkImageGCR::MinimizeWithAffineTransform().
| static void vtkImageGCRP2Rigid | ( | float * | p, | |
| vtkTransform * | trans | |||
| ) | [static] |
Referenced by vtkImageGCR::MinimizeWithRigidTransform().
| static void vtkImageGCRP2Similarity | ( | float * | p, | |
| vtkTransform * | trans | |||
| ) | [static] |
Referenced by vtkImageGCR::MinimizeWithSimilarityTransform().
| static void vtkImageGCRP2Translation | ( | float * | p, | |
| vtkTransform * | trans | |||
| ) | [static] |
Referenced by vtkImageGCR::MinimizeWithTranslationTransform().
float sqrarg [static] |
1.6.1