pwspy.dataTypes.FluorescenceImage

class pwspy.dataTypes.FluorescenceImage(data, md)[source]

Bases: object

Represents a fluorescence image taken by the PWS acquisition software.

Parameters
  • data (ndarray) – A 2D array of image data.

  • md (FluorMetaData) – The metadata object associated with this image.

classmethod fromMetadata(md, lock=None)[source]

Load an image from the metadata object.

Parameters
  • md (FluorMetaData) – The metadata object to load the image from.

  • lock (Optional[Lock]) – An optional multiprocessing Lock object to synchronize file access in multiprocessing contexts

Return type

FluorescenceImage

Returns

A new instance of FluorescenceImage.

classmethod fromTiff(directory, acquisitionDirectory=None)[source]

Load an image from a TIFF file.

Parameters
  • directory (str) – The path to the folder containing the TIFF file.

  • acquisitionDirectory (Optional[Acquisition]) – The Acquisition object associated with this acquisition.

Return type

FluorescenceImage

Returns

A new instanse of FluorescenceImage.

toTiff(directory)[source]

Save this object to a TIFF file.

Parameters

directory (str) – The path to the folder to save the new file to.