Skip to content

Fix testing when scaling factor != 2#37

Open
zhaoalex wants to merge 1 commit into
movehand:masterfrom
zhaoalex:zhaoalex/scaling-fix
Open

Fix testing when scaling factor != 2#37
zhaoalex wants to merge 1 commit into
movehand:masterfrom
zhaoalex:zhaoalex/scaling-fix

Conversation

@zhaoalex

Copy link
Copy Markdown

When R != 2, running test.py results in an error:

Traceback (most recent call last):
  File "test.py", line 91, in <module>
    predictHR[row-margin,col-margin] = patch.dot(h[angle,strength,coherence,pixeltype])
IndexError: index 4 is out of bounds for axis 3 with size 4

This PR fixes that behavior!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant