Commit ae48c0ec authored by Taddeus Kroes's avatar Taddeus Kroes

Renamed all test files to prefix 'test_'.

parent 8555e7c7
#!/usr/bin/python
from pylab import subplot, show, imshow, axis
from cPickle import load
chars = filter(lambda c: c.value == 'A', load(file('chars', 'r')))
for i in range(10):
for j in range(3):
index = j * 10 + i
subplot(10, 3, index + 1)
axis('off')
imshow(chars[index].image.data, cmap='gray')
show()
#!/usr/bin/python
from GrayscaleImage import GrayscaleImage from GrayscaleImage import GrayscaleImage
from NormalizedCharacterImage import NormalizedCharacterImage from NormalizedCharacterImage import NormalizedCharacterImage
......
#!/usr/bin/python
from GaussianFilter import GaussianFilter from GaussianFilter import GaussianFilter
from GrayscaleImage import GrayscaleImage from GrayscaleImage import GrayscaleImage
......
#!/usr/bin/python
from Histogram import Histogram from Histogram import Histogram
his = Histogram(10, 10, 110) his = Histogram(10, 10, 110)
...@@ -22,4 +23,4 @@ his.add(99) ...@@ -22,4 +23,4 @@ his.add(99)
his.add(100) his.add(100)
his.add(109) his.add(109)
print his.bins print his.bins
\ No newline at end of file
#!/usr/bin/python
from GrayscaleImage import GrayscaleImage from GrayscaleImage import GrayscaleImage
from LocalBinaryPatternizer import LocalBinaryPatternizer from LocalBinaryPatternizer import LocalBinaryPatternizer
......
#!/usr/bin/python
from LetterCropper import LetterCropper from LetterCropper import LetterCropper
from GrayscaleImage import GrayscaleImage from GrayscaleImage import GrayscaleImage
...@@ -7,4 +8,4 @@ cropper = LetterCropper(image) ...@@ -7,4 +8,4 @@ cropper = LetterCropper(image)
cropped_letter = cropper.get_cropped_letter() cropped_letter = cropper.get_cropped_letter()
cropped_letter.show() cropped_letter.show()
\ No newline at end of file
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