class_docstr: Test Cases for Camera FeatureConnector.
class_docstr_tok: ["Test","Cases","for","Camera","FeatureConnector","."]
docstr: Tests camera parameters with different focal length per camera axis and skew.
docstr_tok: ["Tests","camera","parameters","with","different","focal","length","per","camera","axis","and","skew","."]
code: def test_full_camera_calibration_matrix(self):
      """Tests camera parameters with different focal length per camera axis and skew."""
  
      (
          expected_pose,
          _,
          expected_optical_center,
      ) = self.__get_camera_params()
      expected_skew = 0.6
      expected_f = (35.0, 40.0)
      expected_intrinsics = np.array(
          [
              [
                  expected_f[0],
                  expected_skew,
                  expected_optical_center[0],
              ],
              [0, expected_f[1], expected_optical_center[1]],
              [0, 0, 1],
          ],
          dtype=np.float32,
      )
  
      expected_camera = {
          "pose": expected_pose,
          "intrinsics": expected_intrinsics,
      }
      inputs = {
          "f": expected_f,
          "optical_center": expected_optical_center,
          "skew": expected_skew,
          "pose": expected_pose,
      }
  
      raising_inputs = {
          "f": expected_f,
          "aspect_ratio": 1.5,
          "optical_center": expected_optical_center,
          "skew": expected_skew,
          "pose": expected_pose,
      }
      self.assertFeature(
          feature=camera_feature.Camera(),
          shape={
              "pose": {"R": (3, 3), "t": (3,)},
              "intrinsics": (3, 3),
          },
          dtype={
              "pose": {"R": tf.float32, "t": tf.float32},
              "intrinsics": tf.float32,
          },
          tests=[
              tfds.testing.FeatureExpectationItem(
                  value=inputs,
                  expected=expected_camera,
              ),
              tfds.testing.FeatureExpectationItem(
                  value=raising_inputs,
                  raise_cls=ValueError,
                  raise_msg="If aspect ratio is provided, f needs to "
                  "be a single float",
              ),
          ],
      )
  
file_path: graphics/tensorflow_graphics/datasets/features/camera_feature_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import tensorflow
  import tensorflow_datasets
  from tensorflow_graphics.datasets.features import camera_feature
label_desc: Use image node_id 4 for calling the CameraFeatureTest obj's underlying member method code with example usage: obj.test_full_camera_calibration_matrix() without return types