MCPcopy Create free account

hub / github.com/FuxiCV/pt_mesh_renderer / functions

Functions79 in github.com/FuxiCV/pt_mesh_renderer

↓ 17 callersFunctionexpect_image_file_and_render_are_near
Compares the output of mesh_renderer with an image on disk. The comparison is soft: the images are considered identical if at most max_outlie
pt_mesh_renderer/pt_mesh_renderer_test.py:115
↓ 8 callersFunctionhighlight_print
(string)
pt_mesh_renderer/pt_mesh_renderer_test.py:176
↓ 6 callersMethodexpectIsCovered
Expects that a pixel is covered by verifying that its barycentric coordinates sum to one.
pt_mesh_renderer/pt_mesh_renderer_test.py:710
↓ 6 callersMethodexpectIsCovered
Expects that a pixel is covered by verifying that its barycentric coordinates sum to one.
pt_mesh_renderer/pt_mesh_renderer_test.py:890
↓ 4 callersMethodrunOnMultiDevice
(self, func)
pt_mesh_renderer/pt_mesh_renderer_test.py:206
↓ 3 callersFunctionsimple_gradcheck
(test_instance, func, inputs, eps, outlier_relative_error_threshold,
pt_mesh_renderer/pt_mesh_renderer_test.py:87
↓ 2 callersFunctionClampedIntegerMax
Takes the maximum of a, b, and c, rounds up, and converts to an integer in the range [low, high].
pt_mesh_renderer/kernels/rasterize_triangles_impl.cc:39
↓ 2 callersFunctionClampedIntegerMin
Takes the minimum of a, b, and c, rounds down, and converts to an integer in the range [low, high].
pt_mesh_renderer/kernels/rasterize_triangles_impl.cc:30
↓ 2 callersMethodbackward
(ctx, grad_barycentric, grad_triangle_ids, grad_z_buffer)
pt_mesh_renderer/RasterizeTriangles.py:77
↓ 2 callersMethodexpectBarycentricSumIsNear
Expects that the sum of barycentric weights at a pixel is close to a given value.
pt_mesh_renderer/pt_mesh_renderer_test.py:702
↓ 2 callersMethodexpectBarycentricSumIsNear
Expects that the sum of barycentric weights at a pixel is close to a given value.
pt_mesh_renderer/pt_mesh_renderer_test.py:882
↓ 2 callersFunctionrasterize_clip_space
Rasterizes the input mesh expressed in clip-space (xyzw) coordinates. Interpolates vertex attributes using perspective-correct interpolation and
pt_mesh_renderer/rasterizer.py:62
↓ 2 callersMethodrun_triangleTest
Directly renders a rasterized triangle's barycentric coordinates. Tests only the kernel (rasterize_triangles_module). Args:
pt_mesh_renderer/pt_mesh_renderer_test.py:481
↓ 2 callersFunctiontransform_homogeneous
Applies batched 4x4 homogenous matrix transformations to 3-D vertices. The vertices are input and output as as row-major, but are interpreted as
pt_mesh_renderer/camera_utils.py:148
↓ 1 callersFunctionComputeEdgeFunctions
Computes the edge functions from M^-1 as described by Olano and Greer, "Triangle Scan Conversion using 2D Homogeneous Coordinates." This function com
pt_mesh_renderer/kernels/rasterize_triangles_impl.cc:125
↓ 1 callersFunctionComputeUnnormalizedMatrixInverse
Computes a 3x3 matrix inverse without dividing by the determinant. Instead, makes an unnormalized matrix inverse with the correct sign by flipping the
pt_mesh_renderer/kernels/rasterize_triangles_impl.cc:57
↓ 1 callersFunctionPixelIsInsideTriangle
Determines whether the point p lies inside a front-facing triangle. Counts pixels exactly on an edge as inside the triangle, as long as the triangle i
pt_mesh_renderer/kernels/rasterize_triangles_impl.cc:154
↓ 1 callersMethodRGB2RGBA
(self, src)
pt_mesh_renderer/pt_mesh_renderer_test.py:610
↓ 1 callersMethodRGB2RGBA
(self, src)
pt_mesh_renderer/pt_mesh_renderer_test.py:790
↓ 1 callersFunctionRasterizeTrianglesBackward
pt_mesh_renderer/kernels/rasterize_triangles_impl.cc:277
↓ 1 callersFunctionRasterizeTrianglesForward
pt_mesh_renderer/kernels/rasterize_triangles_impl.cc:170
↓ 1 callersFunctioncheck_jacobians_are_nearly_equal
Compares two Jacobian matrices, allowing for some fraction of outliers. Args: theoretical: 2D numpy array containing a Jacobian matrix wi
pt_mesh_renderer/pt_mesh_renderer_test.py:42
↓ 1 callersMethodexpectIsNotCovered
Expects that a pixel is not covered by verifying that its barycentric coordinates sum to zero.
pt_mesh_renderer/pt_mesh_renderer_test.py:714
↓ 1 callersMethodexpectIsNotCovered
Expects that a pixel is not covered by verifying that its barycentric coordinates sum to zero.
pt_mesh_renderer/pt_mesh_renderer_test.py:894
↓ 1 callersFunctionlook_at
Computes camera viewing matrices. Functionality mimes gluLookAt (third_party/GL/glu/include/GLU/glu.h). Args: eye: 2-D float32 tenso
pt_mesh_renderer/camera_utils.py:96
↓ 1 callersFunctionnormalize_homogeneous
Transform the homogeneous coords of vertices to the image space
pt_mesh_renderer/camera_utils.py:178
↓ 1 callersFunctionperspective
Computes perspective transformation matrices. Functionality mimes gluPerspective (third_party/GL/glu/include/GLU/glu.h). Args: aspec
pt_mesh_renderer/camera_utils.py:57
↓ 1 callersFunctionphong_shader
Computes pixelwise lighting from rasterized buffers with the Phong model. Args: normals: a 4D float32 tensor with shape [batch_size, imag
pt_mesh_renderer/mesh_renderer.py:25
FunctionPYBIND11_MODULE
pt_mesh_renderer/kernels/rasterize_triangles_cuda.cc:76
FunctionPYBIND11_MODULE
pt_mesh_renderer/kernels/rasterize_triangles.cc:75
Method__init__
(self)
example/toy.py:31
Functionbackward_rasterize_triangles
pt_mesh_renderer/kernels/rasterize_triangles.cc:52
Functionbackward_rasterize_triangles_cuda
pt_mesh_renderer/kernels/rasterize_triangles_cuda.cc:52
Functioneuler_matrices
Computes a XYZ Tait-Bryan (improper Euler angle) rotation. Returns 4x4 matrices for convenient multiplication with other transformations. Ar
pt_mesh_renderer/camera_utils.py:23
Functionfn
(input)
pt_mesh_renderer/pt_mesh_renderer_test.py:99
Methodforward
(self, euler_angles)
example/toy.py:66
Methodforward
Rasterizes the single input mesh expressed in clip-space (xyzw) coordinates. Args: vertices: 2-D float32 tensor of homogenous ver
pt_mesh_renderer/RasterizeTriangles.py:29
Functionforward_rasterize_triangles
pt_mesh_renderer/kernels/rasterize_triangles.cc:32
Functionforward_rasterize_triangles_cuda
pt_mesh_renderer/kernels/rasterize_triangles_cuda.cc:32
Functionmesh_renderer
Renders an input scene using phong shading, and returns an output image. Args: vertices: 3-D float32 tensor with shape [batch_size, verte
pt_mesh_renderer/mesh_renderer.py:185
Functionrasterize
Rasterizes a mesh and computes interpolated vertex attributes. Applies projection matrices and then calls rasterize_clip_space(). Args:
pt_mesh_renderer/rasterizer.py:24
Methodrender
(euler_angles)
pt_mesh_renderer/pt_mesh_renderer_test.py:408
Methodrenderer
(cube_vertices)
pt_mesh_renderer/pt_mesh_renderer_test.py:368
MethodrunOnDevice
(device)
pt_mesh_renderer/pt_mesh_renderer_test.py:237
MethodsetUpClass
(cls)
pt_mesh_renderer/pt_mesh_renderer_test.py:187
MethodsetUpClass
(cls)
pt_mesh_renderer/pt_mesh_renderer_test.py:455
MethodsetUpClass
(cls)
pt_mesh_renderer/pt_mesh_renderer_test.py:600
MethodsetUpClass
(cls)
pt_mesh_renderer/pt_mesh_renderer_test.py:780
MethodtearDownClass
(cls)
pt_mesh_renderer/pt_mesh_renderer_test.py:202
MethodtearDownClass
(cls)
pt_mesh_renderer/pt_mesh_renderer_test.py:478
MethodtearDownClass
(cls)
pt_mesh_renderer/pt_mesh_renderer_test.py:607
MethodtearDownClass
(cls)
pt_mesh_renderer/pt_mesh_renderer_test.py:787
MethodtestRendersTwoCubesInBatch
Renders a simple cube in two viewpoints to test the python wrapper.
pt_mesh_renderer/pt_mesh_renderer_test.py:516
Methodtest_canRasterizeCameraInsideBox
(self)
pt_mesh_renderer/pt_mesh_renderer_test.py:639
Methodtest_canRasterizeCameraInsideBoxCuda
(self)
pt_mesh_renderer/pt_mesh_renderer_test.py:819
Methodtest_canRasterizeCube
Vertex values were obtained by dumping the clip-space vertex values from the test_renderSimpleCube test in RenderTest.
pt_mesh_renderer/pt_mesh_renderer_test.py:675
Methodtest_canRasterizeCubeCuda
Vertex values were obtained by dumping the clip-space vertex values from the test_renderSimpleCube test in RenderTest.
pt_mesh_renderer/pt_mesh_renderer_test.py:855
Methodtest_canRasterizeExternalTriangle
(self)
pt_mesh_renderer/pt_mesh_renderer_test.py:627
Methodtest_canRasterizeExternalTriangleCuda
(self)
pt_mesh_renderer/pt_mesh_renderer_test.py:807
Methodtest_canRasterizeTetrahedron
(self)
pt_mesh_renderer/pt_mesh_renderer_test.py:658
Methodtest_canRasterizeTetrahedronCuda
(self)
pt_mesh_renderer/pt_mesh_renderer_test.py:838
Methodtest_canRasterizeTriangle
(self)
pt_mesh_renderer/pt_mesh_renderer_test.py:615
Methodtest_canRasterizeTriangleCuda
(self)
pt_mesh_renderer/pt_mesh_renderer_test.py:795
Methodtest_complexShading
Tests specular highlights, colors, and multiple lights per image.
pt_mesh_renderer/pt_mesh_renderer_test.py:252
Methodtest_coversEdgePixelsOfImage
Verifies that the pixels along image edges are correct covered.
pt_mesh_renderer/pt_mesh_renderer_test.py:741
Methodtest_coversEdgePixelsOfImageCuda
Verifies that the pixels along image edges are correct covered.
pt_mesh_renderer/pt_mesh_renderer_test.py:923
Methodtest_fullRenderGradientComputation
Verifies the Jacobian matrix for the entire renderer. This ensures correct gradients are propagated backwards through the entire proc
pt_mesh_renderer/pt_mesh_renderer_test.py:343
Methodtest_internalRenderGradientComputation
Isolates and verifies the Jacobian matrix for the custom kernel.
pt_mesh_renderer/pt_mesh_renderer_test.py:571
Methodtest_pixelOnDegenerateTriangleIsNotInside
Verifies that the pixels along image edges are correct covered.
pt_mesh_renderer/pt_mesh_renderer_test.py:760
Methodtest_pixelOnDegenerateTriangleIsNotInsideCuda
Verifies that the pixels along image edges are correct covered.
pt_mesh_renderer/pt_mesh_renderer_test.py:943
Methodtest_renderSimpleCube
Renders a simple cube to test the full forward pass. Verifies the functionality of both the custom kernel and the python wrapper.
pt_mesh_renderer/pt_mesh_renderer_test.py:212
Methodtest_rendersPerspectiveCorrectTriangle
(self)
pt_mesh_renderer/pt_mesh_renderer_test.py:512
Methodtest_rendersSimpleTriangle
(self)
pt_mesh_renderer/pt_mesh_renderer_test.py:508
Methodtest_simpleTriangleGradientComputation
Verifies the Jacobian matrix for a single pixel. The pixel is in the center of a triangle facing the camera. This makes it easy to ch
pt_mesh_renderer/pt_mesh_renderer_test.py:544
Methodtest_thatCubeRotates
Optimize a simple cube's rotation using pixel loss. The rotation is represented as static-basis euler angles. This test checks that t
pt_mesh_renderer/pt_mesh_renderer_test.py:389
Methodtest_worksWhenPixelIsOnTriangleEdge
(self)
pt_mesh_renderer/pt_mesh_renderer_test.py:719
Methodtest_worksWhenPixelIsOnTriangleEdgeCuda
(self)
pt_mesh_renderer/pt_mesh_renderer_test.py:899
Functiontone_mapper
Applies gamma correction to the input image. Tone maps the input image batch in order to make scenes with a high dynamic range viewable. The
pt_mesh_renderer/mesh_renderer.py:155
Methodtriangle_rasterizer
(clip_coordinates)
pt_mesh_renderer/pt_mesh_renderer_test.py:556