Skip to content

Commit

Permalink
Updating examples and paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
jesolem committed May 21, 2013
1 parent 33f7a12 commit bfcdea5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples/morphology.py → examples/ch1_morphology.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
from scipy.ndimage import measurements,morphology

"""
This is the morphology example in section 1.4.
This is the morphology counting objects example in Section 1.4.
"""

# load image and threshold to make sure it is binary
im = array(Image.open('houses.png').convert('L'))
im = array(Image.open('../data/houses.png').convert('L'))
im = 1*(im<128)

labels, nbr_objects = measurements.label(im)
Expand Down
6 changes: 3 additions & 3 deletions examples/match_features.py → examples/ch2_match_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
from PCV.localdescriptors import sift

"""
This is the twosided SIFT feature matching example from section 2.2 (p 44).
This is the twosided SIFT feature matching example from Section 2.2 (p 44).
"""

imname1 = 'climbing_1_small.jpg'
imname2 = 'climbing_2_small.jpg'
imname1 = '../data/climbing_1_small.jpg'
imname2 = '../data/climbing_2_small.jpg'

# process and save features to file
sift.process_image(imname1, imname1+'.sift')
Expand Down
3 changes: 3 additions & 0 deletions examples/searchdemo.py → examples/ch7_searchdemo.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

from PCV.imagesearch import imagesearch

"""
This is the image search demo in Section 7.6.
"""

class SearchDemo:

Expand Down

0 comments on commit bfcdea5

Please sign in to comment.