Gatan | AMETEKSkip to Main Content
No options found

Find image by name

Python Script

Example use of FindImage by name.

Preview

'''
Example use of FindImage by name.
'''
import DigitalMicrograph as DM

searchName = 'untitled'	# Use any exact name here
img = DM.FindImageByName( searchName )

if ( img is None ):
	print( 'No image "', searchName, '"was found' )
else:
	img.ShowImage()
	img.SetName( 'Found image!' )
	
del img 	# Always explicitly delete Py_Image variables