parameters: (camera, fout)
docstring: Write a single camera in ASCII KRTD format to the file object.
docstring_summary: Write a single camera in ASCII KRTD format to the file object.
docstring_tokens: Write a single camera in ASCII KRTD format to the file object .
function: def write_camera_krtd(camera, fout):
      """Write a single camera in ASCII KRTD format to the file object.
      """
      K, R, t, d = camera
      t = np.reshape(np.array(t), 3)
      fout.write('%.12g %.12g %.12g\n' % tuple(K.tolist()[0]))
      fout.write('%.12g %.12g %.12g\n' % tuple(K.tolist()[1]))
      fout.write('%.12g %.12g %.12g\n\n' % tuple(K.tolist()[2]))
      fout.write('%.12g %.12g %.12g\n' % tuple(R.tolist()[0]))
      fout.write('%.12g %.12g %.12g\n' % tuple(R.tolist()[1]))
      fout.write('%.12g %.12g %.12g\n\n' % tuple(R.tolist()[2]))
      fout.write('%.12g %.12g %.12g\n\n' % tuple(t.tolist()))
      for v in d:
          fout.write('%.12g ' % v)
function_tokens: def write_camera_krtd ( camera , fout ) : K , R , t , d = camera t = np . reshape ( np . array ( t ) , 3 ) fout . write ( '%.12g %.12g %.12g\n' % tuple ( K . tolist ( ) [ 0 ] ) ) fout . write ( '%.12g %.12g %.12g\n' % tuple ( K . tolist ( ) [ 1 ] ) ) fout . write ( '%.12g %.12g %.12g\n\n' % tuple ( K . tolist ( ) [ 2 ] ) ) fout . write ( '%.12g %.12g %.12g\n' % tuple ( R . tolist ( ) [ 0 ] ) ) fout . write ( '%.12g %.12g %.12g\n' % tuple ( R . tolist ( ) [ 1 ] ) ) fout . write ( '%.12g %.12g %.12g\n\n' % tuple ( R . tolist ( ) [ 2 ] ) ) fout . write ( '%.12g %.12g %.12g\n\n' % tuple ( t . tolist ( ) ) ) for v in d : fout . write ( '%.12g ' % v )