79
79
\section {I/O }
80
80
\begin {tabular }{@{}ll@{}}
81
81
\mintinline {python}{i = imread("name.png")} & Loads image as BGR (if grayscale, \texttt {B=G=R })\\
82
- \mintinline {python}{i = imread("name.png") , IMREAD_UNCHANGED)} & Loads image as is (inc.\ transparency if available)\\
82
+ \mintinline {python}{i = imread("name.png", IMREAD_UNCHANGED)} & Loads image as is (inc.\ transparency if available)\\
83
83
\mintinline {python}{i = imread("name.png", IMREAD_GRAYSCALE)} & Loads image as grayscale\\
84
84
\mintinline {python}{imshow("Title", i)} & Displays image $ I$ \\
85
85
\mintinline {python}{imwrite("name.png", i)} & Saves image $ I$ \\
@@ -338,8 +338,8 @@ \subsubsection{Numpy (\mintinline{python}{np.})}
338
338
\texttt {b = any(M > 5) } & Returns \mintinline {python}{True} if any element in array $ M$ is greater than 5\\
339
339
\texttt {b = all(M > 5) } & Returns \mintinline {python}{True} if all elements in array $ M$ are greater than 5\\
340
340
\texttt {rows, cols = where(M > 5) } & Returns indices of the rows and cols where elems in $ M$ are >5\\
341
- \mintinline {python}{coords = list(zip(rows, cols))} & Creates a list with with the elements of \texttt {rows } and \texttt {cols } paired\\
342
- \mintinline {python}{M_inv = linalg.inv(M)} & Inverse of of $ M$ \\
341
+ \mintinline {python}{coords = list(zip(rows, cols))} & Creates a list with the elements of \texttt {rows } and \texttt {cols } paired\\
342
+ \mintinline {python}{M_inv = linalg.inv(M)} & Inverse of $ M$ \\
343
343
\mintinline {python}{rad = deg2rad(deg)} & Converts degrees into radians\\
344
344
\end {tabular }
345
345
\subsubsection {Matplotlib.pyplot (\mintinline {python}{plt.}) }
@@ -362,4 +362,4 @@ \subsubsection{Matplotlib.pyplot (\mintinline{python}{plt.})}
362
362
363
363
364
364
\end {multicols }
365
- \end {document }
365
+ \end {document }
0 commit comments