Skip to content

Commit 74331ed

Browse files
committed
New README.md changes
1 parent 1bf2d57 commit 74331ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Let's create a tool to detect edges of an image! To do so we'll use the Sobel op
44

55
<img src="https://latex.codecogs.com/gif.latex?G_x=\begin{bmatrix}&space;1&space;&&space;0&space;&&space;-1&space;\\&space;2&space;&&space;0&space;&&space;-2&space;\\&space;1&space;&&space;0&space;&&space;-1&space;\end{bmatrix}\quad\text{and}\quad&space;G_y=\begin{bmatrix}&space;1&space;&&space;2&space;&&space;1&space;\\&space;0&space;&&space;0&space;&&space;0&space;\\&space;-1&space;&&space;-2&space;&&space;-1&space;\end{bmatrix}" title="G_x=\begin{bmatrix} 1 & 0 & -1 \\ 2 & 0 & -2 \\ 1 & 0 & -1 \end{bmatrix}\quad\text{and}\quad G_y=\begin{bmatrix} 1 & 2 & 1 \\ 0 & 0 & 0 \\ -1 & -2 & -1 \end{bmatrix}" />
66

7-
Think of Gx and Gy as maps of the form <img src="https://latex.codecogs.com/gif.latex?\mathbb{R}^{3\,\times\,3}\rightarrow\mathbb{R}" />, where we take in a 3 by 3 patch of image (denoted by <img src="https://latex.codecogs.com/gif.latex?$$A\in\mathbb{R}^{3\,\times\,3$$" />), do some operation (using matrices associated with Gx and Gy), and returns a real number (the pixel value of the output).
7+
Think of Gx and Gy as maps of the form <img src="https://latex.codecogs.com/gif.latex?\mathbb{R}^{3\,\times\,3}\rightarrow\mathbb{R}" />, where we take in a 3 by 3 patch of image (denoted by <img src="https://latex.codecogs.com/gif.latex?$$A\in\mathbb{R}^{3\,\times\,3$$" />), do some operation on it (using the matrices shown above), and return a real number (the value of the pixel for the output image).
88

99
So, for example, if we are given the following patch of grayscale image:
1010

@@ -29,7 +29,7 @@ To apply the Sobel operation to that patch of image we want to calculate:
2929

3030
<img src="https://latex.codecogs.com/gif.latex?\sqrt{\big[G_x(A)\big]^2+\big[G_y(A)\big]^2}\quad\text{which&space;in&space;the&space;case&space;of&space;this&space;example&space;is&space;equal&space;to&space;}\,174.917" />
3131

32-
For now it's ok to have values which are out of the [0,255] range because at the very end we will normalized the image values.
32+
This number will be the pixel contained in the output image. For now it's ok to have values which are out of the [0,255] range because at the very end we will normalized the image values. Notice that the output will be always greater than or equal to zero.
3333

3434
We do this operation for the entire input image and create a new image based on these outputs just describe above.
3535

0 commit comments

Comments
 (0)