OPERA  1.0
Open source echelle spectrograph reduction pipeline
operaFITStoPNG.c File Reference

Create a PNG thumbnail of a FITS Image. More...

#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <float.h>
#include <math.h>
#include <getopt.h>
#include <errno.h>
#include <fitsio.h>
#include <png.h>
#include "tools/operaFITStoPNG.h"
Include dependency graph for operaFITStoPNG.c:

Namespaces

namespace  operaFITStoPNG

Defines

#define MEANSHRINK

Functions

int main (int argc, char *argv[])
 command line interface to create Libre-Esprit-compatible text files from packed FITS.
static void histogramEqualize (float *image, unsigned int width, unsigned int height, float z1, float z2)
static colour lingray (float val, float z1, float z2, char neg)
static colour lingrayupena (float val, float z1, float z2, char neg)
static colour lingrayupenalog (float val, float z1, float z2, char neg)
static colour lingraycutcol (float val, float z1, float z2, char neg)
static colour irafloggray (float val, float z1, float z2, char neg)
static colour irafloggraycutcol (float val, float z1, float z2, char neg)
static colour plinlog (float val, float z1, float z2, char neg)
static colour logcontours (float val, float z1, float z2, char neg)
static colour loghsv (float val, float z1, float z2, char neg)
static colour lincol1 (float val, float z1, float z2, char neg)
static colour HSVtoRGB (float h, float s, float v)
static colour rainbow (float x)
static void GetMinAndMax (const float *inarr, unsigned int n, float *min, float *max)
static void GetMedian (const float *inarr, unsigned int n, float *a1, float *a2)
static float * shrink (const float *image, const int dimx, const int dimy, const int ratio, const float bias, float *smallimage)
static void printUsageSyntax ()

Detailed Description

Create a PNG thumbnail of a FITS Image.


Define Documentation

#define MEANSHRINK

Function Documentation

static void GetMedian ( const float *  inarr,
unsigned int  n,
float *  a1,
float *  a2 
) [static]
static void GetMinAndMax ( const float *  inarr,
unsigned int  n,
float *  min,
float *  max 
) [static]
static void histogramEqualize ( float *  image,
unsigned int  width,
unsigned int  height,
float  z1,
float  z2 
) [static]
static colour HSVtoRGB ( float  h,
float  s,
float  v 
) [static]
static colour irafloggray ( float  val,
float  z1,
float  z2,
char  neg 
) [static]
static colour irafloggraycutcol ( float  val,
float  z1,
float  z2,
char  neg 
) [static]
static colour lincol1 ( float  val,
float  z1,
float  z2,
char  neg 
) [static]

Here is the call graph for this function:

static colour lingray ( float  val,
float  z1,
float  z2,
char  neg 
) [static]
static colour lingraycutcol ( float  val,
float  z1,
float  z2,
char  neg 
) [static]
static colour lingrayupena ( float  val,
float  z1,
float  z2,
char  neg 
) [static]
static colour lingrayupenalog ( float  val,
float  z1,
float  z2,
char  neg 
) [static]
static colour logcontours ( float  val,
float  z1,
float  z2,
char  neg 
) [static]
static colour loghsv ( float  val,
float  z1,
float  z2,
char  neg 
) [static]

Here is the call graph for this function:

static colour plinlog ( float  val,
float  z1,
float  z2,
char  neg 
) [static]
static void printUsageSyntax ( ) [static]
static colour rainbow ( float  x) [static]
static float* shrink ( const float *  image,
const int  dimx,
const int  dimy,
const int  ratio,
const float  bias,
float *  smallimage 
) [static]