Skip to content

Commit 1a947bb

Browse files
committed
Final push for the first minor update
1 parent 51e3e82 commit 1a947bb

File tree

3 files changed

+29
-16
lines changed

3 files changed

+29
-16
lines changed

.idea/workspace.xml

Lines changed: 22 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
The purpose of this repository is to create a tutorial for the application of a Sobel filter.
2-
It is currently under construction.
2+
This repository is currently under construction.

sobel_main.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
55
The same concepts explained in this code can be used for other types of filters.
66
7-
For grayscale transformation of images there are a ton of references on the web. A straightforward one would be to go
8-
to our old friend Wikipedia:
9-
https://en.wikipedia.org/wiki/Grayscale
7+
I'll not go into much detail in how to transform a colored image (an array of dimension N x M x 3 where N (height) and M
8+
(width) defines the frame of the image while the 3 dimensions gives us the colors (RedGreenBlue)) but the formulas to do
9+
such transformation can be found easily in Google.
10+
11+
There are lots of information about colored to grayscale image transformation out there on the web. I use one that takes
12+
the RGB values of the image and weighs them based on predefined parameters (https://en.wikipedia.org/wiki/Grayscale).
1013
"""
1114

1215
from matplotlib.image import imread

0 commit comments

Comments
 (0)