Lynkeos  1.2
Classes | Functions
MyListProcessing.m File Reference
#include <stdlib.h>
#include <assert.h>
#include "MyListProcessing.h"
#include "fourier.h"
#include "corelation.h"
#include "stack.h"
Include dependency graph for MyListProcessing.m:

Classes

class  MyListProcessing(Private)

Functions

static void getImageSample (MyImageListItem *item, RGB *dark, RGB *flat, MyIntegerRect rect, REAL *spectrum, RGB *pixels, short expand)
static void cutoffSpectrum (SPECTRUM spectrum, u_short width, u_short height, u_short cutoff)
static double quality (SPECTRUM spectrum, u_short width, u_short height, u_short down, u_short up)
static double entropy (REAL *image, u_short width, u_short height)
void normalize_rgb (RGB *rgb, u_long length, double scale, BOOL mono)
 Multiply the pixels by a scalar.

Function Documentation

static void cutoffSpectrum ( SPECTRUM  spectrum,
u_short  width,
u_short  height,
u_short  cutoff 
) [static]
static double entropy ( REAL image,
u_short  width,
u_short  height 
) [static]
static void getImageSample ( MyImageListItem item,
RGB dark,
RGB flat,
MyIntegerRect  rect,
REAL spectrum,
RGB pixels,
short  expand 
) [static]
void normalize_rgb ( RGB rgb,
u_long  length,
double  scale,
BOOL  mono 
)

Multiply the pixels by a scalar.

Parameters:
rgbThe sarray of rgb value to normalize
lengthThe array length
scaleThe scale by wich the pixels will be multiplied. If 0, they will be multiplied by 1/max(rgb)

This function is used for dark frames or flat fields, to normalize the stacking result according to its use (ie: dark frame stack shall be a mean value, and flat fields stack shall have its maximum equals to one).

References RGB::blue, RGB::green, max, RGB::red, and scale().

static double quality ( SPECTRUM  spectrum,
u_short  width,
u_short  height,
u_short  down,
u_short  up 
) [static]