Skip to content

Commit

Permalink
HW7 - image pyramid fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Nov 18, 2019
1 parent 66c213b commit f553e82
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions hw7_release/detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,19 @@ def pyramid(image, scale=0.9, minSize=(200, 100)):
images.append((current_scale, image))

while True:
# Use "break" to exit this loop if the next image will be smaller than
# the supplied minimium size
### YOUR CODE HERE
pass
### END YOUR CODE

# Compute the new dimensions of the image and resize it
current_scale *= scale
image = rescale(image, scale)

# Yield the next image in the pyramid
images.append((current_scale, image))

# Use "break" to exit this loop if the next image will be smaller than
# the supplied minimium size
### YOUR CODE HERE
pass
### END YOUR CODE

return images


Expand Down

0 comments on commit f553e82

Please sign in to comment.