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

Method test

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

Source from the content-addressed store, hash-verified

44class LuminanceTextureTest( 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
51 t = IECoreGL.LuminanceTexture( i, False )
52
53 ii = t.imagePrimitive()
54
55 res = IECoreImage.ImageDiffOp()(
56 imageA = i,
57 imageB = ii,
58 maxError = 0.1,
59 skipMissingChannels = False
60 )
61
62 self.assertFalse( res.value )
63
64if __name__ == "__main__":
65 unittest.main()

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected