Open3D (C++ API)  0.18.0
ImageWarpingField.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - Open3D: www.open3d.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2023 www.open3d.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
11 
12 namespace open3d {
13 namespace pipelines {
14 namespace color_map {
15 
17 public:
19  ImageWarpingField(int width, int height, int number_of_vertical_anchors);
21  int height,
22  int number_of_vertical_anchors);
23  Eigen::Vector2d QueryFlow(int i, int j) const;
24  Eigen::Vector2d GetImageWarpingField(double u, double v) const;
25 
26 public:
27  bool ConvertToJsonValue(Json::Value &value) const override;
28  bool ConvertFromJsonValue(const Json::Value &value) override;
29 
30 public:
31  Eigen::VectorXd flow_;
32  int anchor_w_;
33  int anchor_h_;
34  double anchor_step_;
35 };
36 
37 } // namespace color_map
38 } // namespace pipelines
39 } // namespace open3d
Definition: ImageWarpingField.h:16
void InitializeWarpingFields(int width, int height, int number_of_vertical_anchors)
Definition: ImageWarpingField.cpp:26
int anchor_w_
Definition: ImageWarpingField.h:32
bool ConvertFromJsonValue(const Json::Value &value) override
Definition: ImageWarpingField.cpp:76
double anchor_step_
Definition: ImageWarpingField.h:34
Eigen::Vector2d GetImageWarpingField(double u, double v) const
Definition: ImageWarpingField.cpp:50
int anchor_h_
Definition: ImageWarpingField.h:33
ImageWarpingField()
Definition: ImageWarpingField.cpp:18
Eigen::VectorXd flow_
Definition: ImageWarpingField.h:31
bool ConvertToJsonValue(Json::Value &value) const override
Definition: ImageWarpingField.cpp:62
Eigen::Vector2d QueryFlow(int i, int j) const
Definition: ImageWarpingField.cpp:41
Definition: IJsonConvertible.h:40
int width
Definition: FilePCD.cpp:52
int height
Definition: FilePCD.cpp:53
Definition: PinholeCameraIntrinsic.cpp:16