PYME.Analysis.profile_extraction module

PYME.Analysis.profile_extraction.extract_profile(image, x0, y0, x1, y1, width=1)

Extract a line profile from (x0, y0) to (x1, y1).


image : 2D ndarray

the image to extract from

x0, y0 : int

coordinates of start of profile

x1, y1 : int

coordinates of profile end

width : int

profile width in pixels (number of parallel profiles to average over)


a line profile of the image, interpolated to match the pixel spacing