saltimagetools

Module for working with image data.

saltimagetools.find_centroid(image)

Find the centroid (cx,cy) of image where:

cx=\sum f\cdot x/\sum f

cy=\sum f\cdot y/\sum f

saltimagetools.find_object(image, x, y, distance=5)

Returns image pixel coordinates of centroid in box of size:

2*distance+1

around coordinates (x,y) in image.

saltimagetools.zscale(image, contrast=1.0)

Implementation of the IRAF zscale algorithm to find vmin and vmax parameters for the dynamic range of a display. It finds the image values near the median image value without the time consuming process of computing a full image histogram.

Previous topic

saltgui

Next topic

saltkey

This Page