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

Method test

test/IECoreGL/AlphaTextureTest.py:46–63  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

44class AlphaTextureTest( unittest.TestCase ) :
45
46 def test( self ) :
47
48 i = IECore.Reader.create( os.path.join( os.path.dirname( __file__ ), "images", "a.tif" ) ).read()
49 i["A"] = i["Y"]
50 del i["Y"]
51
52 t = IECoreGL.AlphaTexture( i, False )
53
54 ii = t.imagePrimitive()
55
56 res = IECoreImage.ImageDiffOp()(
57 imageA = i,
58 imageB = ii,
59 maxError = 0.001,
60 skipMissingChannels = False
61 )
62
63 self.assertFalse( res.value )
64
65if __name__ == "__main__":
66 unittest.main()

Callers

nothing calls this directly

Calls 6

imagePrimitiveMethod · 0.95
joinMethod · 0.80
AlphaTextureMethod · 0.80
ImageDiffOpMethod · 0.80
readMethod · 0.45
createMethod · 0.45

Tested by

no test coverage detected