|
Volume Cartographer 2.28.0
|
Mesh parameterizations/UV maps. More...
Classes | |
| class | volcart::texturing::AngleBasedFlattening |
| Parameterize a mesh using ABF++. More... | |
| struct | volcart::texturing::LStretchMetrics |
| L stretch error metric output struct. More... | |
| class | volcart::texturing::OrthographicProjectionFlattening |
| Computes a 2D parameterization of a triangular mesh using orthographic projection. More... | |
Functions | |
| template<typename ErrContainer > | |
| cv::Mat | volcart::texturing::PlotPerFaceError (const cv::Mat &cellMap, const ErrContainer &errorMap, float defaultValue=0) |
| Plot generic per-face error information into an image. More... | |
| LStretchMetrics | volcart::texturing::LStretch (const ITKMesh::Pointer &mesh3D, const ITKMesh::Pointer &mesh2D) |
| Calculate the L2 and LInf stretch between a 2D and 3D mesh. More... | |
| std::vector< cv::Mat > | volcart::texturing::PlotLStretchError (const LStretchMetrics &metrics, const cv::Mat &cellMap, ColorMap cm=ColorMap::Plasma, bool drawLegend=false) |
| Plot per-face L stretch error metrics. More... | |
Mesh parameterizations/UV maps.
| LStretchMetrics volcart::texturing::LStretch | ( | const ITKMesh::Pointer & | mesh3D, |
| const ITKMesh::Pointer & | mesh2D | ||
| ) |
Calculate the L2 and LInf stretch between a 2D and 3D mesh.
Calculates the L2 and LInf stretch norms from "Texture Mapping Progressive Meshes" by Sander et al. [sander2001texture]. See LStretchMetrics for more info on these metrics. Meshes are assumed to be pre-scaled to have the same surface area.
| std::vector< cv::Mat > volcart::texturing::PlotLStretchError | ( | const LStretchMetrics & | metrics, |
| const cv::Mat & | cellMap, | ||
| ColorMap | cm = ColorMap::Plasma, |
||
| bool | drawLegend = false |
||
| ) |
Plot per-face L stretch error metrics.
This function maps per-face LStretchMetrics to a 2D image using the provided cell map. If drawLegend is true, a legend bar will be appended to the bottom of the image showing the metric label, global metric, and color map scale bar.
| cv::Mat volcart::texturing::PlotPerFaceError | ( | const cv::Mat & | cellMap, |
| const ErrContainer & | errorMap, | ||
| float | defaultValue = 0 |
||
| ) |
Plot generic per-face error information into an image.
| ErrContainer | Container type supporting the .at() accessor. Return values must support static_cast to float. |
| cellMap | Cell map image produced by PPMGenerator or GenerateCellMap |
| errorMap | Container of per-face error values |
| defaultValue | Default pixel value if it doesn't have a cell mapping |
CV_32FC1 Definition at line 27 of file FlatteningError.hpp.