Miscellaneous functions called from colorfilteringIPOL.cpp and rgbcubeIPOL.cpp. More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
Go to the source code of this file.
Functions | |
void | normalize_vector (float u[3]) |
Normalize R^3 vector. | |
float | scalar_product (float u[3], float v[3]) |
Scalar product of two R^3 vectors. | |
void | vectorial_product (float u[3], float v[3], float w[3]) |
Vectorial product of two R^3 vectors. | |
float | vector_norm (float u[3]) |
Length of R^3 vector. | |
float ** | sample_arclength (float A[3], float B[3], float O[3], int npoints) |
Samples an arc of circunference in 3D. | |
void | delete_list3D (float **points, int npoints) |
Delete a list of 3D points. |
Miscellaneous functions called from colorfilteringIPOL.cpp and rgbcubeIPOL.cpp.
Definition in file miscIPOL.cpp.
void delete_list3D | ( | float ** | points, | |
int | npoints | |||
) |
Delete a list of 3D points.
[in] | points | list of points |
[in] | npoints | list of points |
Definition at line 172 of file miscIPOL.cpp.
void normalize_vector | ( | float | u[3] | ) |
Normalize R^3 vector.
in/out] | input/output vector |
Definition at line 43 of file miscIPOL.cpp.
float** sample_arclength | ( | float | A[3], | |
float | B[3], | |||
float | O[3], | |||
int | npoints | |||
) |
Samples an arc of circunference in 3D.
[in] | A,B | end points of the arc |
[in] | O | center of the circunference |
[in] | npoints | number of sampling points (including both end-points) |
Definition at line 101 of file miscIPOL.cpp.
float scalar_product | ( | float | u[3], | |
float | v[3] | |||
) |
Scalar product of two R^3 vectors.
[in] | u,v | input vectors |
Definition at line 58 of file miscIPOL.cpp.
float vector_norm | ( | float | u[3] | ) |
Length of R^3 vector.
[in] | u | input vector |
Definition at line 85 of file miscIPOL.cpp.
void vectorial_product | ( | float | u[3], | |
float | v[3], | |||
float | w[3] | |||
) |
Vectorial product of two R^3 vectors.
[in] | u,v | input vectors |
[out] | w | output vector |
Definition at line 71 of file miscIPOL.cpp.