fix compute_diff() and subpixel ydir bugs
Merge pull request #28 from gcbower/bugfix/compDiffSubpixel

fix compute_diff() and subpixel ydir bugs