( self )
| 44 | class 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 | |
| 64 | if __name__ == "__main__": |
| 65 | unittest.main() |
nothing calls this directly
no test coverage detected