add more commit

This commit is contained in:
Jianshun Gao 2023-09-28 17:03:50 +02:00
parent fde33c3648
commit f6c6688d6e

View File

@ -386,8 +386,25 @@ class ImageAnalyser():
"""
self._fringeRemoval.span = value
def load_fringe_removal_background_from_hdf5(self, img_dir, SequenceName, data, shotNum, group, crop=False, load=False, **kwargs):
folderPath = img_dir + SequenceName + "/" + data
def load_fringe_removal_background_from_hdf5(self, img_dir, SequenceName, date, shotNum, group, crop=False, load=False, **kwargs):
"""Load the reference background images from hdf5 files of one single shot.
:param img_dir: The path of the folder storing data.
:type img_dir: str
:param SequenceName: The name of the sequence
:type SequenceName: str
:param date: The date when the shot was taken in 'YYYY/MM/DD'.
:type date: str
:param shotNum: The number of the shot
:type shotNum: str
:param group: The name of the group storing the imgaes
:type group: str
:param crop: If crop the data, defaults to False
:type crop: bool, optional
:param load: If load the data into RAM, defaults to False
:type load: bool, optional
"""
folderPath = img_dir + SequenceName + "/" + date
filePath = folderPath + "/" + shotNum + "/*.h5"
dataSet = read_hdf5_file(filePath, group, **kwargs)