parameters: (self,
          source_pixel_2d:(float, float),
          depth:Image)
return_statement: return target_point
docstring: ! Transform a 2D pixel coordinate from color camera into a 2D pixel
              coordinate of the depth camera.
  
          @param source_pixel_2d (float, float): The 2D pixel in color camera 
              coordinates.
  
          @param depth (Image): A depth image.
  
          @returns (float, float): The 2D pixel in @p depth camera coordinates.
              If an error occurs, then (None, None) is returned.
  
          @remarks
          - This function represents an alternative to pixel_2d_to_pixel_2d() if
              the number of pixels that need to be transformed is small. This 
              function searches along an epipolar line in the depth image to find
              the corresponding depth pixel. If a larger number of pixels need to
              be transformed, it might be computationally cheaper to call
              depth_image_to_color_camera() to get correspondence depth values
              for these color pixels, then call the function pixel_2d_to_pixel_2d().
docstring_summary: ! Transform a 2D pixel coordinate from color camera into a 2D pixel
              coordinate of the depth camera.
docstring_tokens: ! Transform a 2D pixel coordinate from color camera into a 2D pixel coordinate of the depth camera .
function: def color_2d_to_depth_2d(self,
          source_pixel_2d:(float, float),
          depth:Image)->(float, float):
          '''! Transform a 2D pixel coordinate from color camera into a 2D pixel
              coordinate of the depth camera.
  
          @param source_pixel_2d (float, float): The 2D pixel in color camera 
              coordinates.
  
          @param depth (Image): A depth image.
  
          @returns (float, float): The 2D pixel in @p depth camera coordinates.
              If an error occurs, then (None, None) is returned.
  
          @remarks
          - This function represents an alternative to pixel_2d_to_pixel_2d() if
              the number of pixels that need to be transformed is small. This 
              function searches along an epipolar line in the depth image to find
              the corresponding depth pixel. If a larger number of pixels need to
              be transformed, it might be computationally cheaper to call
              depth_image_to_color_camera() to get correspondence depth values
              for these color pixels, then call the function pixel_2d_to_pixel_2d().
          '''
  
          target_point = (None, None)
  
          src_pt = _Float2(
              x = source_pixel_2d[0],
              y = source_pixel_2d[1])
          tgt_pt = _Float2()
          valid_int_flag = _ctypes.c_int(0)
  
          status = k4a_calibration_color_2d_to_depth_2d(
              self._calibration._calibration,
              _ctypes.byref(src_pt),
              depth._image_handle,
              _ctypes.byref(tgt_pt),
              _ctypes.byref(valid_int_flag))
  
          if (status == EStatus.SUCCEEDED and valid_int_flag.value == 1):
              target_point = (tgt_pt.xy.x, tgt_pt.xy.y)
  
          return target_point
function_tokens: def color_2d_to_depth_2d ( self , source_pixel_2d : ( float , float ) , depth : Image ) -> ( float , float ) : target_point = ( None , None ) src_pt = _Float2 ( x = source_pixel_2d [ 0 ] , y = source_pixel_2d [ 1 ] ) tgt_pt = _Float2 ( ) valid_int_flag = _ctypes . c_int ( 0 ) status = k4a_calibration_color_2d_to_depth_2d ( self . _calibration . _calibration , _ctypes . byref ( src_pt ) , depth . _image_handle , _ctypes . byref ( tgt_pt ) , _ctypes . byref ( valid_int_flag ) ) if ( status == EStatus . SUCCEEDED and valid_int_flag . value == 1 ) : target_point = ( tgt_pt . xy . x , tgt_pt . xy . y ) return target_point