Volume Cartographer 2.27.0
|
Add 2D alignment markers to textured meshes. More...
#include <vc/texturing/AlignmentMarkerGenerator.hpp>
Classes | |
struct | LineSegment |
Defines a marker intersection line segment. More... | |
Public Member Functions | |
void | setInputMeshes (std::vector< TexturedMesh > m) |
Set the input textured meshes. | |
void | setLineSegments (std::vector< LineSegment > r) |
Set the marker intersection line segments. | |
void | setMarkerRadius (int r) |
Set the radius, in pixels, of the drawn markers. More... | |
void | setMarkerUseRandomColor (bool b) |
If true , randomly assign a color to each marker. More... | |
std::vector< cv::Mat > | compute () |
Compute the marked images. | |
std::vector< cv::Mat > | getMarkedImages () const |
Get the computed marked images. | |
Private Attributes | |
std::vector< volcart::TexturedMesh > | input_ |
std::vector< LineSegment > | lineSegments_ |
int | markerRadius_ {5} |
bool | markerRandomColor_ {true} |
std::vector< cv::Mat > | output_ |
Add 2D alignment markers to textured meshes.
Takes as input a list of textured meshes and a list of alignment line segments. The line segments are assumed to pass through one or more of the textured meshes. The intersection points between all segments and meshes are computed, and a colored circle is drawn on the texture images at the point of each intersection. Returns a new set of texture images, modified with the colored alignment markers.
Definition at line 28 of file AlignmentMarkerGenerator.hpp.
void volcart::texturing::AlignmentMarkerGenerator::setMarkerRadius | ( | int | r | ) |
Set the radius, in pixels, of the drawn markers.
Default value: 5
void volcart::texturing::AlignmentMarkerGenerator::setMarkerUseRandomColor | ( | bool | b | ) |
If true
, randomly assign a color to each marker.
Default: true
|
private |
Input meshes
Definition at line 74 of file AlignmentMarkerGenerator.hpp.
|
private |
Intersection line segments
Definition at line 76 of file AlignmentMarkerGenerator.hpp.
|
private |
Marker radius
Definition at line 78 of file AlignmentMarkerGenerator.hpp.
|
private |
Generate random colors
Definition at line 80 of file AlignmentMarkerGenerator.hpp.
|
private |
Output images
Definition at line 82 of file AlignmentMarkerGenerator.hpp.