MCPcopy Create free account
hub / github.com/ImageEngine/cortex / __fromNukeCrop

Method __fromNukeCrop

test/IECoreImage/ImageCropOpTest.py:47–50  ·  view source on GitHub ↗
( self, x, y, r, t, h = 1556 )

Source from the content-addressed store, hash-verified

45class 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

Callers 1

testCropMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected