Skip to content

Commit

Permalink
Resample : Add new perf test to illustrate support size issue
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldresser-ie committed Sep 5, 2023
1 parent 62d6ad1 commit c019138
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions python/GafferImageTest/ResampleTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,26 @@ def testPerfInseparableDisk( self ) :
with GafferTest.TestRunner.PerformanceScope() :
GafferImageTest.processTiles( resample["out"] )

@GafferTest.TestRunner.PerformanceTestMethod( repeat = 1 )
def testPerfInseparableAwkwardSize( self ) :

imageReader = GafferImage.ImageReader()
imageReader["fileName"].setValue( self.imagesPath() / 'deepMergeReference.exr' )

resize = GafferImage.Resize()
resize["in"].setInput( imageReader["out"] )
resize["format"].setValue( GafferImage.Format( 6000, 6000 ) )

resample = GafferImage.Resample()
resample["in"].setInput( resize["out"] )
resample["filter"].setValue( 'disk' )
resample["filterScale"].setValue( imath.V2f( 1.1 ) )

GafferImageTest.processTiles( resize["out"] )

with GafferTest.TestRunner.PerformanceScope() :
GafferImageTest.processTiles( resample["out"] )


if __name__ == "__main__":
unittest.main()

0 comments on commit c019138

Please sign in to comment.