31 image_to_cameras_map_ = other.image_to_cameras_map_;
32 points_ = other.points_;
38 image_to_cameras_map_ = other.image_to_cameras_map_;
39 points_ = other.points_;
47 LG <<
"InsertCamera " << image <<
":\nR:\n" <<
R <<
"\nt:\n" << t;
54 image_to_cameras_map_.insert(make_pair(image, camera));
58 LG <<
"InsertPoint " << track <<
":\n" <<
X;
59 if (track >= points_.size()) {
60 points_.resize(track + 1);
62 points_[track].track = track;
73 ImageToCameraMap::const_iterator it = image_to_cameras_map_.find(image);
74 if (it == image_to_cameras_map_.end()) {
82 for (
const ImageToCameraMap::value_type& image_and_camera :
83 image_to_cameras_map_) {
84 cameras.push_back(image_and_camera.second);
95 if (track < 0 || track >= points_.size()) {
99 if (point->track == -1) {
107 for (
int i = 0; i < points_.size(); ++i) {
108 if (points_[i].track != -1) {
109 points.push_back(points_[i]);
116 LG <<
"InsertCamera " << image <<
":\nP:\n" <<
P;
119 camera.image =
image;
122 image_to_cameras_map_.insert(make_pair(image, camera));
126 LG <<
"InsertPoint " << track <<
":\n" <<
X;
127 if (track >= points_.size()) {
128 points_.resize(track + 1);
130 points_[track].track = track;
131 points_[track].X =
X;
142 ImageToCameraMap::const_iterator it = image_to_cameras_map_.find(image);
143 if (it == image_to_cameras_map_.end()) {
151 for (
const ImageToCameraMap::value_type& image_and_camera :
152 image_to_cameras_map_) {
153 cameras.push_back(image_and_camera.second);
165 if (track < 0 || track >= points_.size()) {
169 if (point->track == -1) {
177 for (
int i = 0; i < points_.size(); ++i) {
178 if (points_[i].track != -1) {
179 points.push_back(points_[i]);
in reality light always falls off quadratically Particle Retrieve the data of the particle that spawned the object for example to give variation to multiple instances of an object Point Retrieve information about points in a point cloud Retrieve the edges of an object as it appears to Cycles topology will always appear triangulated Convert a blackbody temperature to an RGB value Normal Generate a perturbed normal from an RGB normal map image Typically used for faking highly detailed surfaces Generate an OSL shader from a file or text data block Image Sample an image file as a texture Gabor Generate Gabor noise Gradient Generate interpolated color and intensity values based on the input vector Magic Generate a psychedelic color texture Voronoi Generate Worley noise based on the distance to random points Typically used to generate textures such as or biological cells Brick Generate a procedural texture producing bricks Texture Retrieve multiple types of texture coordinates nTypically used as inputs for texture nodes Vector Convert a or normal between camera
in reality light always falls off quadratically Particle Retrieve the data of the particle that spawned the object for example to give variation to multiple instances of an object Point Retrieve information about points in a point cloud Retrieve the edges of an object as it appears to Cycles topology will always appear triangulated Convert a blackbody temperature to an RGB value Normal Generate a perturbed normal from an RGB normal map image Typically used for faking highly detailed surfaces Generate an OSL shader from a file or text data block Image Sample an image file as a texture Gabor Generate Gabor noise Gradient Generate interpolated color and intensity values based on the input vector Magic Generate a psychedelic color texture Voronoi Generate Worley noise based on the distance to random points Typically used to generate textures such as or biological cells Brick Generate a procedural texture producing bricks Texture Retrieve multiple types of texture coordinates nTypically used as inputs for texture nodes Vector Convert a point
EuclideanReconstruction()
vector< EuclideanCamera > AllCameras() const
Returns all cameras.
EuclideanPoint * PointForTrack(int track)
Returns a pointer to the point corresponding to track.
void InsertCamera(int image, const Mat3 &R, const Vec3 &t)
void InsertPoint(int track, const Vec3 &X)
EuclideanReconstruction & operator=(const EuclideanReconstruction &other)
EuclideanCamera * CameraForImage(int image)
Returns a pointer to the camera corresponding to image.
vector< EuclideanPoint > AllPoints() const
Returns all points.
void InsertPoint(int track, const Vec4 &X)
vector< ProjectivePoint > AllPoints() const
Returns all points.
vector< ProjectiveCamera > AllCameras() const
Returns all cameras.
ProjectivePoint * PointForTrack(int track)
Returns a pointer to the point corresponding to track.
ProjectiveCamera * CameraForImage(int image)
Returns a pointer to the camera corresponding to image.
void InsertCamera(int image, const Mat34 &P)
input_tx image(0, GPU_RGBA16F, Qualifier::WRITE, ImageType::FLOAT_2D, "preview_img") .compute_source("compositor_compute_preview.glsl") .do_static_compilation(true)
Eigen::Matrix< double, 3, 3 > Mat3
Eigen::Matrix< double, 3, 4 > Mat34