( self, x, y, r, t, h = 1556 )
| 45 | class ImageCropOpTest(unittest.TestCase): |
| 46 | |
| 47 | def __fromNukeCrop( self, x, y, r, t, h = 1556 ) : |
| 48 | |
| 49 | # Nuke is flipped in the vertical, and would use a bound of ((0,2),(0,2)) for a 2x2 image. |
| 50 | return imath.Box2i( imath.V2i( x , h - t ), imath.V2i( r - 1, h - y - 1 ) ) |
| 51 | |
| 52 | def testCrop(self): |
| 53 |