Skip to content

Commit e2ffa78

Browse files
authored
Fix typos
1 parent af7a370 commit e2ffa78

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cv2cheatsheet.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
\section{I/O}
8080
\begin{tabular}{@{}ll@{}}
8181
\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)\\
8383
\mintinline{python}{i = imread("name.png", IMREAD_GRAYSCALE)} & Loads image as grayscale\\
8484
\mintinline{python}{imshow("Title", i)} & Displays image $I$\\
8585
\mintinline{python}{imwrite("name.png", i)} & Saves image $I$\\
@@ -338,8 +338,8 @@ \subsubsection{Numpy (\mintinline{python}{np.})}
338338
\texttt{b = any(M > 5)} & Returns \mintinline{python}{True} if any element in array $M$ is greater than 5\\
339339
\texttt{b = all(M > 5)} & Returns \mintinline{python}{True} if all elements in array $M$ are greater than 5\\
340340
\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$\\
343343
\mintinline{python}{rad = deg2rad(deg)} & Converts degrees into radians\\
344344
\end{tabular}
345345
\subsubsection{Matplotlib.pyplot (\mintinline{python}{plt.})}
@@ -362,4 +362,4 @@ \subsubsection{Matplotlib.pyplot (\mintinline{python}{plt.})}
362362

363363

364364
\end{multicols}
365-
\end{document}
365+
\end{document}

0 commit comments

Comments
 (0)