1 #ifndef tde4_ldp_noop_debugging_sdv 2 #define tde4_ldp_noop_debugging_sdv 4 #include <ldpk/ldpk_ldp_builtin.h> 10 template <
class VEC2,
class MAT2>
14 typedef VEC2 vec2_type;
15 typedef MAT2 mat2_type;
18 static const char* _para[0];
20 bool decypher(
const char* name,
int& i)
27 bt::check_builtin_parameters();
37 strcpy(identifier,_para[i]);
44 virtual bool undistort(
double x0,
double y0,
double &x1,
double &y1)
50 virtual bool distort(
double x0,
double y0,
double &x1,
double &y1)
56 virtual bool distort(
double x0,
double y0,
double x1_start,
double y1_start,
double &x1,
double &y1)
70 #ifdef LDPK_COMPILE_AS_PLUGIN_SDV 71 strcpy(name,
"3DE4 Noop, Debugging [Plugin]");
73 strcpy(name,
"3DE4 Noop, Debugging Degree 4");
79 ptype = TDE4_LDP_ADJUSTABLE_DOUBLE;
99 template <
class VEC2,
class MAT2>
bool getNumParameters(int &n)
returns the number of plugin parameters...
Definition: tde4_ldp_noop_debugging.h:30
virtual bool distort(double x0, double y0, double x1_start, double y1_start, double &x1, double &y1)
potentially more efficient function which uses initial values...
Definition: tde4_ldp_noop_debugging.h:56
bool getParameterDefaultValue(const char *identifier, double &v)
returns default value for given parameter (maximum length of "char *v": 1000 bytes)......
Definition: tde4_ldp_noop_debugging.h:82
bool initializeParameters()
prepare the current set of parameters...
Definition: tde4_ldp_noop_debugging.h:24
bool getModelName(char *name)
returns a name for the model as to show up in the GUI (maximum length of "name": 100 bytes)...
Definition: tde4_ldp_noop_debugging.h:68
virtual bool undistort(double x0, double y0, double &x1, double &y1)
warp/unwarp 2D points...
Definition: tde4_ldp_noop_debugging.h:44
bool setParameterValue(const char *identifier, double v)
set parameter values... parameters predefined by 3DE4: "tde4_focal_length_cm", "tde4_filmback_width_c...
Definition: tde4_ldp_noop_debugging.h:40
bool getParameterName(int i, char *identifier)
returns "identifier" name of parameter "i" (maximum length of "identifier": 100 bytes)...
Definition: tde4_ldp_noop_debugging.h:35
This class handles the built-in parameter and the lookup table. You may find it useful for your own d...
Definition: ldpk_ldp_builtin.h:31
bool getParameterRange(const char *identifier, double &a, double &b)
returns range for adjustable double parameters...
Definition: tde4_ldp_noop_debugging.h:87
bool getJacobianMatrix(double x0, double y0, double &m00, double &m01, double &m10, double &m11)
calculate the Jacobian matrix of the undistort()-Method. Overwrite this, if you know the Jacobian for...
Definition: tde4_ldp_noop_debugging.h:91
Plugin class for debugging.
Definition: tde4_ldp_noop_debugging.h:11
bool getParameterType(const char *identifier, tde4_ldp_ptype &ptype)
returns type of given parameter... The method should return false, if the parameter addressed by iden...
Definition: tde4_ldp_noop_debugging.h:77