httomolib.misc.blend#
Module for data blending functions
- httomolib.misc.blend.seam_blend_stitched_data(data: <np.ndarray>, overlap: int, seam_index: int = 2560, shift_seam_index: int | None = None) <np.ndarray>[source]#
Function blends the seam present in the stitched projection data using the overlap value provided. Used in HTTomo for seamless stitching of datasets coming from two different (PCO) cameras.
- Parameters:
data (np.ndarray) – 3d array of the stitched data, assuming the following axis [“angles”, “detY”, “detX”].
overlap (int) – Overlap between the LEFT and the RIGHT images of the stitched data. Usually known from the experiment.
seam_index (int) – The horizontal index of the seam in the stitched data. Normally equals to the width of one frame/projection before the stitching.
shift_seam_index (optional, int) – performs a shift of the ‘seam index’ that is introduced by the data cropping. This is an HTTomo related feature and should be ignored by users.
- Raises:
ValueError – When data is not 3D.:
- Returns:
np.ndarray
- Return type:
stitched data without the seam.