Пример #1
0
    def test_render_jacobian_random(self):
        """Tests the Jacobian of render."""
        voxels_init = test_helpers.generate_random_test_voxels_render()
        absorption_factor_init = np.float64(
            np.random.uniform(low=0.1, high=2.0))
        cell_size_init = np.float64(np.random.uniform(low=0.1, high=2.0))

        self.assert_jacobian_is_correct_fn(
            emission_absorption.render,
            [voxels_init, absorption_factor_init, cell_size_init])
Пример #2
0
    def test_render_jacobian_random(self):
        """Tests the Jacobian of render."""
        voxels_init = test_helpers.generate_random_test_voxels_render()

        self.assert_jacobian_is_correct_fn(visual_hull.render, [voxels_init])