
Go to the source code of this file.
Functions | |
| void | make_overlay (double theta, int npixx, int npixy, float *overlay, char *coordfile) |
| Make an overlay containing N-E axes. | |
| void | scaleasinh (float *buffer, int npixx, int npixy, float median, float minval, float maxval, float sdev, double theta, int neoverlay, float contrast, char *coordfile) |
| Apply asinh scaling to the image. | |
| float | get_binned (int ix, int iy, int binsize, int npixx, float *buffer) |
| void | get_maxmin (float *buffer, long long npixels, float *z1, float *z2, float *median, float *mean, float *sdev) |
| Calculate max and min from a subset of the fits image pixels. | |
| void | get_zscales (float contrast, int n1, int n2, float *buffer, float *z1, float *z2) |
| int | compare (const float *v1, const float *v2) |
| void | lsfit (int ndata, float *xdata, float *ydata, float *a, float *b) |
| float | quick_select (float *a, long long n) |
| Calculate median value of an array a of size n. | |
| int compare | ( | const float * | v1, | |
| const float * | v2 | |||
| ) |
Comparison operation that is used in conjunction with the standard C library qsort function.
Referenced by get_zscales().
| float get_binned | ( | int | ix, | |
| int | iy, | |||
| int | binsize, | |||
| int | npixx, | |||
| float * | buffer | |||
| ) |
Bin the image buffer data at the given pixel (ix, iy) and given binsize
Referenced by get_jbuffer().
| void get_maxmin | ( | float * | buffer, | |
| long long | npixels, | |||
| float * | z1, | |||
| float * | z2, | |||
| float * | median, | |||
| float * | mean, | |||
| float * | sdev | |||
| ) |
Calculate max and min from a subset of the fits image pixels.
References MAX, and quick_select().
Referenced by mef2jpeg().
| void get_zscales | ( | float | contrast, | |
| int | n1, | |||
| int | n2, | |||
| float * | buffer, | |||
| float * | z1, | |||
| float * | z2 | |||
| ) |
| void lsfit | ( | int | ndata, | |
| float * | xdata, | |||
| float * | ydata, | |||
| float * | a, | |||
| float * | b | |||
| ) |
Implement the least squares formula on the two arrays of a and y data. Here we have y = a + bx.
Referenced by get_zscales().
| void make_overlay | ( | double | theta, | |
| int | npixx, | |||
| int | npixy, | |||
| float * | overlay, | |||
| char * | coordfile | |||
| ) |
| float quick_select | ( | float * | a, | |
| long long | n | |||
| ) |
Calculate median value of an array a of size n.
| void scaleasinh | ( | float * | buffer, | |
| int | npixx, | |||
| int | npixy, | |||
| float | median, | |||
| float | minval, | |||
| float | maxval, | |||
| float | sdev, | |||
| double | theta, | |||
| int | neoverlay, | |||
| float | contrast, | |||
| char * | coordfile | |||
| ) |
Apply asinh scaling to the image.
References make_overlay(), MAX, and MIN.
Referenced by mef2jpeg().
1.6.3