Gatan | AMETEKSkip to Main Content
No options found

Find image by label

Python Script

Example use of FindImage by label.

Preview

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

searchStr = 'B'	# the label is not case-sensitive
img = DM.FindImageByLabel( searchStr )

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