parameters: (self,
          depth:Image,
          custom:Image,
          interp_type:ETransformInterpolationType,
          invalid_value:int)
return_statement: return (transformed_depth_image, transformed_custom_image)
docstring: ! Transforms depth map and a custom image into the geometry of the
          color camera.
  
          @param depth (Image): The depth image.
  
          @param custom (Image): A custom image.
  
          @param interp_type (ETransformInterpolationType): Parameter that 
              controls how pixels in @p custom_image should be interpolated when 
              transformed to color camera space. 
              - ETransformInterpolationType.LINEAR if linear interpolation should
                  be used.
              - ETransformInterpolationType.NEAREST if nearest neighbor 
                  interpolation should be used.
  
          @param invalid_value (int): Defines the custom image pixel value that 
              should be written to the transformed images in case the corresponding
              depth pixel can not be transformed into the color camera space.
  
          @returns (Image, Image): The transformed depth image and transformed
              custom image in the color camera coordinates. If an error occurs, 
              then (None, None) is returned.
  
          @remarks
          - This produces a depth image and a corresponding custom image for 
              which each pixel matches the corresponding pixel coordinates of the
              color camera.
  
          @remarks
          - @p depth must be of format EImageFormat.DEPTH16 and the
          output transformed depth image will also have the same format.
  
           @remarks
          - @p custom must be of format EImageFormat.CUSTOM8 or 
              EImageFormat.CUSTOM16, and the output transformed custom image will
              also have the same format.
  
          @remarks
          - The output transformed depth image and transformed custom image will
              have a width and height matching the width and height of the color
              camera in the mode specified by the Calibration used to create the 
              Transformation.
docstring_summary: ! Transforms depth map and a custom image into the geometry of the
          color camera.
docstring_tokens: ! Transforms depth map and a custom image into the geometry of the color camera .
function: def depth_image_to_color_camera_custom(self,
          depth:Image,
          custom:Image,
          interp_type:ETransformInterpolationType,
          invalid_value:int)->(Image, Image):
          '''! Transforms depth map and a custom image into the geometry of the
          color camera.
  
          @param depth (Image): The depth image.
  
          @param custom (Image): A custom image.
  
          @param interp_type (ETransformInterpolationType): Parameter that 
              controls how pixels in @p custom_image should be interpolated when 
              transformed to color camera space. 
              - ETransformInterpolationType.LINEAR if linear interpolation should
                  be used.
              - ETransformInterpolationType.NEAREST if nearest neighbor 
                  interpolation should be used.
  
          @param invalid_value (int): Defines the custom image pixel value that 
              should be written to the transformed images in case the corresponding
              depth pixel can not be transformed into the color camera space.
  
          @returns (Image, Image): The transformed depth image and transformed
              custom image in the color camera coordinates. If an error occurs, 
              then (None, None) is returned.
  
          @remarks
          - This produces a depth image and a corresponding custom image for 
              which each pixel matches the corresponding pixel coordinates of the
              color camera.
  
          @remarks
          - @p depth must be of format EImageFormat.DEPTH16 and the
          output transformed depth image will also have the same format.
  
           @remarks
          - @p custom must be of format EImageFormat.CUSTOM8 or 
              EImageFormat.CUSTOM16, and the output transformed custom image will
              also have the same format.
  
          @remarks
          - The output transformed depth image and transformed custom image will
              have a width and height matching the width and height of the color
              camera in the mode specified by the Calibration used to create the 
              Transformation.
          '''
  
          width_pixels = self._calibration.color_cam_cal.resolution_width
          height_pixels = self._calibration.color_cam_cal.resolution_height
  
          custom_stride_bytes = width_pixels
          if custom.image_format == EImageFormat.CUSTOM16:
              custom_stride_bytes = width_pixels * 2
  
          # Create an output image.
          transformed_depth_image = Image.create(
              depth.image_format,
              width_pixels,
              height_pixels,
              width_pixels * 2)
  
          # Create an output image.
          transformed_custom_image = Image.create(
              custom.image_format,
              width_pixels,
              height_pixels,
              custom_stride_bytes)
  
          status = k4a_transformation_depth_image_to_color_camera_custom(
              self.__transform_handle,
              depth._image_handle,
              custom._image_handle,
              transformed_depth_image._image_handle,
              transformed_custom_image._image_handle,
              interp_type,
              _ctypes.c_uint32(invalid_value))
  
          if (status != EStatus.SUCCEEDED):
              transformed_depth_image = None
              transformed_custom_image = None
  
          return (transformed_depth_image, transformed_custom_image)
function_tokens: def depth_image_to_color_camera_custom ( self , depth : Image , custom : Image , interp_type : ETransformInterpolationType , invalid_value : int ) -> ( Image , Image ) : width_pixels = self . _calibration . color_cam_cal . resolution_width height_pixels = self . _calibration . color_cam_cal . resolution_height custom_stride_bytes = width_pixels if custom . image_format == EImageFormat . CUSTOM16 : custom_stride_bytes = width_pixels * 2 # Create an output image. transformed_depth_image = Image . create ( depth . image_format , width_pixels , height_pixels , width_pixels * 2 ) # Create an output image. transformed_custom_image = Image . create ( custom . image_format , width_pixels , height_pixels , custom_stride_bytes ) status = k4a_transformation_depth_image_to_color_camera_custom ( self . __transform_handle , depth . _image_handle , custom . _image_handle , transformed_depth_image . _image_handle , transformed_custom_image . _image_handle , interp_type , _ctypes . c_uint32 ( invalid_value ) ) if ( status != EStatus . SUCCEEDED ) : transformed_depth_image = None transformed_custom_image = None return ( transformed_depth_image , transformed_custom_image )