parameters: (md, H, fout)
docstring: Write a single homography in ASCII KRTD format to the file object.
docstring_summary: Write a single homography in ASCII KRTD format to the file object.
docstring_tokens: Write a single homography in ASCII KRTD format to the file object .
function: def write_homography(md, H, fout):
      """Write a single homography in ASCII KRTD format to the file object.
      """
      if md:
          fout.write("%s\n" % md)
      fout.write("%.12g %.12g %.12g\n" % tuple(H.tolist()[0]))
      fout.write("%.12g %.12g %.12g\n" % tuple(H.tolist()[1]))
      fout.write("%.12g %.12g %.12g\n\n" % tuple(H.tolist()[2]))
function_tokens: def write_homography ( md , H , fout ) : if md : fout . write ( "%s\n" % md ) fout . write ( "%.12g %.12g %.12g\n" % tuple ( H . tolist ( ) [ 0 ] ) ) fout . write ( "%.12g %.12g %.12g\n" % tuple ( H . tolist ( ) [ 1 ] ) ) fout . write ( "%.12g %.12g %.12g\n\n" % tuple ( H . tolist ( ) [ 2 ] ) )