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).

Parameters
image2D ndarray

the image to extract from

x0, y0int

coordinates of start of profile

x1, y1int

coordinates of profile end

widthint

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

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