Fix improper gutter offset in camera computation

This commit is contained in:
Steven Robertson 2011-06-11 17:58:08 -04:00
parent 38fbc391e8
commit 7ff0b65d81

View File

@ -53,7 +53,7 @@ class Genome(object):
and height. Assumes that width and height are constant. and height. Assumes that width and height are constant.
""" """
g = Features.gutter g = Features.gutter
return ( affine.translate(0.5 * cp.width + g, 0.5 * cp.height + g) return ( affine.translate(0.5 * (cp.width + g), 0.5 * (cp.height + g))
* affine.scale(cp.ppu, cp.ppu) * affine.scale(cp.ppu, cp.ppu)
* affine.translate(-cp._center[0], -cp._center[1]) * affine.translate(-cp._center[0], -cp._center[1])
* affine.rotate(cp.rotate * 2 * np.pi / 360, * affine.rotate(cp.rotate * 2 * np.pi / 360,