 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
21 std::ostringstream stm;
31 double reg_strength = 0,
34 char* buffer =
new char[inName.size() + 10];
36 std::string
extension = inName.substr(inName.find_last_of(
".") + 1);
38 std::string baseName =
39 inName.substr(0, inName.size() -
extension.size() - 1);
41 sprintf(buffer,
"%s_out_%1.0f_%.0f.%s", baseName.c_str(),
fidelity,
43 this->
out_name = std::string(buffer);
59 std::string
toc()
const {
60 std::ostringstream stm;
61 stm << static_cast<double>(clock() -
lastTime) / CLOCKS_PER_SEC;
66 double x =
static_cast<double>(clock() -
lastTime) / CLOCKS_PER_SEC;
103 template <
typename T>
111 this->centroids = std::vector<std::vector<std::vector<T>>>(
113 std::vector<std::vector<T>>(2, std::vector<T>(dim, 0.0)));
116 template <
typename T>
127 template <
typename T>
130 if (lhs.
x != rhs.
x) {
131 return lhs.
x < rhs.
x;
133 if (lhs.
y != rhs.
y) {
134 return lhs.
y < rhs.
y;
137 return lhs.
z < rhs.
z;
@ L2
Definition: Common.h:27
normal_z x
Definition: my_point_types.h:165
std::size_t comp1
Definition: Common.h:88
T y
Definition: Common.h:119
bool operator()(const ComponentsFusion< T > lhs, const ComponentsFusion< T > rhs) const
Definition: Common.h:97
double tocDouble() const
Definition: Common.h:65
std::string base_name
Definition: Common.h:48
T z
Definition: Common.h:119
std::vector< std::vector< std::vector< T > > > centroids
Definition: Common.h:109
Point3D(T x=0., T y=0., T z=0.)
Definition: Common.h:120
GenericParameter(std::string inName="in_name", double reg_strength=0, double fidelity=0)
Definition: Common.h:30
@ KL
Definition: Common.h:27
fidelityType fidelity
Definition: Common.h:50
bool operator()(const Point3D< T > lhs, const Point3D< T > rhs) const
Definition: Common.h:129
std::size_t comp2
Definition: Common.h:88
std::string toc() const
Definition: Common.h:59
TimeStack()
Definition: Common.h:55
std::string extension
Definition: Common.h:48
void tic()
Definition: Common.h:57
clock_t lastTime
Definition: Common.h:71
int natureOfData
Definition: Common.h:49
std::size_t border_index
Definition: Common.h:89
std::vector< T > merged_value
Definition: Common.h:92
std::string in_name
Definition: Common.h:48
@ SPG
Definition: Common.h:27
VectorOfCentroids(std::size_t nb_comp, std::size_t dim)
Definition: Common.h:110
fidelityType
Definition: Common.h:27
std::string out_name
Definition: Common.h:48
T merge_gain
Definition: Common.h:90
@ linear
Definition: Common.h:27
ComponentsFusion(std::size_t c1, std::size_t c2, std::size_t ind=0, T gain=0.)
Definition: Common.h:78
T x
Definition: Common.h:119
std::string to_string(const T &n)
Definition: Common.h:20