ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
render_view.hpp File Reference
#include <array>
#include <optional>
#include <stdexcept>
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for render_view.hpp:

Go to the source code of this file.

Classes

struct  reusex::visualize::CameraSpec
 An explicit camera: rigid pose plus pinhole intrinsics. More...
struct  reusex::visualize::RenderOptions
 Everything render_view() can be told to do. More...
class  reusex::visualize::OffscreenGlUnavailable
 This machine cannot create an offscreen OpenGL context (#313). More...

Namespaces

namespace  cv
namespace  reusex
namespace  reusex::visualize

Enumerations

enum class  reusex::visualize::Layer {
  reusex::visualize::cloud , reusex::visualize::labels , reusex::visualize::planes , reusex::visualize::rooms ,
  reusex::visualize::instances , reusex::visualize::mesh , reusex::visualize::components
}
 One drawable body of content in a rendered view. More...
enum class  reusex::visualize::ViewPreset {
  reusex::visualize::top , reusex::visualize::plan , reusex::visualize::front , reusex::visualize::orbit ,
  reusex::visualize::explicit_camera
}
 How the camera is placed. More...

Functions

std::optional< Layerreusex::visualize::layer_from_string (std::string_view name)
 Parse a layer name as accepted by rux render --layers.
std::string_view reusex::visualize::to_string (Layer layer)
 The canonical name of layer (the inverse of layer_from_string).
const std::vector< Layer > & reusex::visualize::all_layers ()
 Every layer, in draw order — the vocabulary --layers accepts.
std::string_view reusex::visualize::to_string (ViewPreset view)
 The canonical name of view, as accepted by rux render --view.
std::optional< ViewPresetreusex::visualize::view_preset_from_string (std::string_view name)
 Parse a bare view-preset name.
cv::Mat reusex::visualize::render_view (const ProjectDB &db, const RenderOptions &opts)
 Render one view of db to an image.
CameraSpec reusex::visualize::camera_from_sensor_frame (const ProjectDB &db, int node_id, int width, int height)
 Build the camera that reproduces a stored sensor frame's viewpoint.

Variables

constexpr double reusex::visualize::kDefaultCutHeightM = 1.2
 Default height of the plan cut above the detected floor, in metres.
constexpr double reusex::visualize::kDefaultCutBboxFraction = 0.45
 Fallback cut height when no floor plane is available, as a fraction of the scene's vertical extent.
constexpr double reusex::visualize::kHorizontalNormalZ = 0.95
 |n_z| above which a segmented plane counts as horizontal when looking for the floor.