Tif Library

Class to allow for Zeiss/FEI-ThermoFischer TIF image loading and enhancing using python

  • Unit: all sizes are in um: pixel-size, image-width

  • All images have an image, pixelsize, width, height

class micromechanics.tif.Tif(fileName: str, fileType: str = '', pixelSize: float = 1)

Bases: TifInputMixin, TifScaleBarMixin, TifDisplayMixin, TifProcessingMixin, TifTransformMixin

Tif class to read SEM images

__init__(fileName: str, fileType: str = '', pixelSize: float = 1)

Read input file, initialize things

Parameters:
  • fileName (str) – file name in the present directory

  • fileType (str) – type of Tif file (“Zeiss”, “NPVE”, “Void”, “NoQuestion”)
    if no type is given, the type will be identified (which takes time)
    NoQuestion does not ask for non-Zeiss,NPVE file type

  • pixelSize (float) – pixel size for conventional tif-files