Commit 21039104 authored by Jayke Meijer's avatar Jayke Meijer

Added reading of the image to code.

parent c7782ee0
from pylab import imread, figure, show, imshow
# Divide the examined window to cells (e.g. 16x16 pixels for each cell). # Divide the examined window to cells (e.g. 16x16 pixels for each cell).
# For each pixel in a cell, compare the pixel to each of its 8 neighbors # For each pixel in a cell, compare the pixel to each of its 8 neighbors
...@@ -14,3 +16,9 @@ ...@@ -14,3 +16,9 @@
# Optionally normalize the histogram. Concatenate normalized histograms of all # Optionally normalize the histogram. Concatenate normalized histograms of all
# cells. This gives the feature vector for the window. # cells. This gives the feature vector for the window.
image = imread("../images/test.png")
figure()
imshow(image)
show()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment