Main Page | Data Structures | File List | Data Fields | Globals

toneadjust.h File Reference

header file for toneadjust.c, has function for tone mapping for contrast enhancement using a bezier curve More...

#include "allheaders.h"
#include "gelinfo.h"

Go to the source code of this file.

Defines

#define LARGE_ZONESIZE_CUTOFF_FACTOR   1.5
 size cutoff for determining large zone as multiple of the size of the smallest zone
#define BEZIER_NUMPOINTS   100
 number of points sampled on the Bezier curve
#define BEZIER_P1X_FACTOR   2.2
 magic number used to determine p1 for the Bezier curve

Functions

PIX * adjustTone (PIX *pixGel, INT32 **ZoneProjection, struct GelInfo *GelInfo, int *ZoneID, int *ToneAdjusted, int Verbose)
 tone adjust a PIX in large zones to bring up contrast of faint bands


Detailed Description

header file for toneadjust.c, has function for tone mapping for contrast enhancement using a bezier curve


Function Documentation

PIX* adjustTone PIX *  pixGel,
INT32 **  ZoneProjection,
struct GelInfo GelInfo,
int *  ZoneID,
int *  ToneAdjusted,
int  Verbose
 

tone adjust a PIX in large zones to bring up contrast of faint bands

The bezier curve is adjusted using the mean intensity of the zone

Parameters:
pixGel pix of gel image
ZoneProjection points to 1D y-projection in each of the zone, to be replaced in tone adjusted zones
GelInfo holds various gel parameters
ZoneID array noting the zone number for each column
ToneAdjusted array to note which zone has been tone adjusted
Verbose turn on text output to screen
Returns:
version of pixGel that has been toneadjusted in large zones


Generated on Fri Apr 20 16:43:08 2007 for LaneRuler by  doxygen 1.3.9.1