PYME.Analysis.composite module¶
- PYME.Analysis.composite.common_prefix(strings)¶
Find the longest string that is a prefix of all the strings.
- PYME.Analysis.composite.make_composite(images, ignoreZ=True, interp=True, shape=None, origin=None, voxelsize=None)¶
Make a composite image from multiple ImageStacks, interpolating if necessary
- Parameters
- imageslist-like
ImageStack objects to combine, potentially as a list of tuples with the second element being the channel to use, and the third element being a chromatic shift field to apply
- ignoreZbool, optional
ignore z origin when combining, by default True
- interpbool, optional
whether to interpolate with a cubic spline (True) or linear (False), by default True
- shapelist-like, optional
xyztc shape of the composite, if different than the shape of the first image (default, None)
- originlist-like, optional
XYZ origin of the composite image, if different than the origin of the first image (default, None)
- voxelsizeMetaDataHandler.VoxelSize, optional
voxelsize to construct the composite image, if different than that of the first image (default, None)
- Returns
- PYME.IO.image.ImageStack
composite image
- PYME.Analysis.composite.remap_data_2d(image, chan, shape, voxelsize, origin, shiftField=None, ignoreZ=True, order=3)¶
apply a vectorial correction for chromatic shift to an image - this is a generic vectorial shift compensation, rather than the secial case correction used with the splitter.