From 27a17f3bf78f9902378a58b047a8d5e6d3bde587 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Fri, 6 Jun 2014 01:01:47 +0200 Subject: [PATCH] minor documentation improvements --- doc/gpl-v3.tex | 2 +- doc/python.tex | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/gpl-v3.tex b/doc/gpl-v3.tex index d5a64851..3d055623 100644 --- a/doc/gpl-v3.tex +++ b/doc/gpl-v3.tex @@ -673,7 +673,7 @@ under certain conditions; type `show c' for details. \end{verbatim} } -The hypothetical commands {\tt show w} and {\tt show c} should show +The hypothetical commands \texttt{show w} and \texttt{show c} should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an ``about box''. diff --git a/doc/python.tex b/doc/python.tex index 8436e2bf..db4ac8f3 100644 --- a/doc/python.tex +++ b/doc/python.tex @@ -999,10 +999,11 @@ if __name__ == '__main__': \subsubsection{Mitsuba interaction with NumPy} -Suppose that \code{bitmap} contains a \code{mitsuba.core.Bitmap} instance (e.g. a rendering). Then the following snippet efficiently turns the image into a NumPy array: +Suppose that \code{bitmap} contains a \code{mitsuba.core.Bitmap} instance (e.g. a rendering). Then the following snippet efficiently turns the image into a NumPy array (and back): \begin{python} import numpy as np array = np.array(bitmap.buffer()) +bitmap = Bitmap(array) \end{python} The next snippet shows how to extract an individual image from the channels of a larger multi-channel EXR image (e.g. channels named \code{albedo.r}, \code{albedo.g}, \code{albedo.b})