TestCenter Reference
Image.py File Reference

Go to the source code of this file.

Namespaces

 TestSupport.Image
 Support functions regarding image handling.
 

Functions

def TestSupport.Image.calculateHashFromImage (fileName, hashMethod='SHA256', encoder='Hex')
 Calculate the hash of the given image. More...
 
def TestSupport.Image.getVoxelValue (outFieldName, position, coordinateType="Voxel", useStoredValue=False)
 Get the voxel value of the given field at the given position. More...
 
def TestSupport.Image.compareImages (outFieldA, outFieldB)
 Compare the two given images (excluding the extention properties). More...
 
def TestSupport.Image.compareImagesProperties (outFieldA, outFieldB)
 Compare just the properties of the two given images (excluding page extent, the extension properties, and of course the image data). More...
 
def TestSupport.Image.compareImagesData (outFieldA, outFieldB)
 Compare the two given images (only verifying data). More...
 
def TestSupport.Image.compareImagesAllProps (outFieldA, outFieldB)
 Compare the two given images. More...
 
def TestSupport.Image.getTrueMinMaxValues (outFieldName)
 Returns the true min/max range of the image data, which is therefore scanned entirely using a MinMaxScan module. More...
 
def TestSupport.Image.verifyMinMaxPropertyValues (outFieldName, expectedMin=None, expectedMax=None, requireExactMin=False, requireExactMax=False, logOnSuccess=True)
 Verifies the min/max image property values. More...