Image Reduction
- hugheslab.im_tools.radial_profile(img, centre)
Produce angular averaged radial profile through image img centred on centre, a tuple of (x_centre, y_centre)
Returns radial profile as 1D numpy array
- Arguments:
- imgndarray
input image as 2D numpy array
- centre(int, int)
centre point for radial profile, tuple of (x,y)
- Returns:
ndarray, 1D profile
- hugheslab.im_tools.average_channels(img)
Returns an image which is the the average pixel value across all channels of a colour image. It is safe to pass a 2D array which will be returned unchanged.
- Arguments:
- img: ndarray
image as 2D/3D numpy array
- Returns:
ndarray, averaged image
- hugheslab.im_tools.mean_channels(img)
Returns an image which is the the mean pixel value across all channels of a colour image. It is safe to pass a 2D array which will be returned unchanged.
- Arguments:
- img: ndarray
image as 2D/3D numpy array
- Returns:
ndarray, mean value image