Oh my gosh it kind of works now!!!!!!!!! I fixed a few bugs (1) I was determining the orientation incorrectly (2) I wasn't casting the images as doubles when reading them in (I used to do this, then in a moment of ignorance and anger, got rid of it.)
Merge branch 'master' of https://github.com/lizzyburl/RoombaHOG