Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

cpxfiddle.cc File Reference

#include <iostream>
#include <iomanip>
#include <fstream>
#include <cmath>
#include <cstring>
#include <unistd.h>
#include <cstdlib>
#include <netinet/in.h>

Go to the source code of this file.

Classes

struct  commandlineinput

Defines

#define SWVERSION   "v2.3 20-Jan-2004"
#define VERBOSE

Typedefs

typedef unsigned char uchar

Functions

void shortexpl ()
void usage (char *programname)
void synopsis (char *programname)
bool handleinput (int argc, char *argv[], commandlineinput &input)
template<class Type> void functie (Type, Type, const commandlineinput &input)
void rescale (uchar *OUT, float *IN, const int numin, const float MIN, const float MAX, const float NEWMIN, const float NEWMAX)
void rasterheader (unsigned long header[8], const int width, const int height)
void makecmap (unsigned char CMAP[3][256], const commandlineinput &input)
void makecmapmixed (unsigned char CMAP[3][256], const commandlineinput &input)
int main (int argc, char *argv[])

Variables

const int FORMATR8 = 108
const int FORMATR4 = 104
const int FORMATI2 = 102
const int FORMATUC1 = 101
const int SUNRASTER = 201
const int ASCII = 999
const int FORMATCUC1 = 1
const int FORMATCC1 = 11
const int FORMATCI2 = 12
const int FORMATCI4 = 14
const int FORMATCR4 = 24
const int FORMATCR8 = 28
const int MAGNITUDE = 51
const int PHASE = 52
const int REALPART = 53
const int IMAGPART = 54
const int NORMAL = 55
const int MIXED = 56
const int NOMIRROR = 1
const int DOMIRROR = -1


Define Documentation

#define SWVERSION   "v2.3 20-Jan-2004"
 

Definition at line 57 of file cpxfiddle.cc.

Referenced by handleinput(), initwrite(), and synopsis().

#define VERBOSE
 


Typedef Documentation

typedef unsigned char uchar
 

Definition at line 61 of file cpxfiddle.cc.


Function Documentation

template<class Type>
void functie Type  ,
Type  ,
const commandlineinput input
 

Definition at line 196 of file cpxfiddle.cc.

References commandlineinput::bytesperelement, commandlineinput::dooutput, commandlineinput::firstline, commandlineinput::firstpixel, commandlineinput::ifile, commandlineinput::lastline, commandlineinput::lastpixel, commandlineinput::mirrorX, commandlineinput::mirrorY, commandlineinput::multilookL, commandlineinput::multilookP, NOMIRROR, NORMAL, PI, commandlineinput::realinput, commandlineinput::sublines, commandlineinput::subpixels, and commandlineinput::verbose.

Referenced by main().

bool handleinput int  argc,
char *  argv[],
commandlineinput input
 

Definition at line 1448 of file cpxfiddle.cc.

References ASCII, commandlineinput::bytesperelement, commandlineinput::bytesperline, commandlineinput::bytesperpixel, commandlineinput::cmap, commandlineinput::dohtonx, DOMIRROR, commandlineinput::dontohx, commandlineinput::dooutput, commandlineinput::exponent, commandlineinput::firstline, commandlineinput::firstpixel, FORMATCC1, FORMATCI2, FORMATCI4, FORMATCR4, FORMATCR8, FORMATCUC1, FORMATI2, FORMATR4, FORMATR8, FORMATUC1, commandlineinput::headerlength, commandlineinput::ifile, commandlineinput::iformat, IMAGPART, commandlineinput::lastline, commandlineinput::lastpixel, commandlineinput::linelength, MAGNITUDE, commandlineinput::mirrorX, commandlineinput::mirrorY, MIXED, commandlineinput::multilookL, commandlineinput::multilookP, NOMIRROR, NORMAL, commandlineinput::numlines, commandlineinput::oformat, PHASE, commandlineinput::realinput, REALPART, commandlineinput::scale, commandlineinput::scalebar, commandlineinput::sublines, commandlineinput::subpixels, SUNRASTER, synopsis(), usage(), and commandlineinput::verbose.

int main int  argc,
char *  argv[]
 

Definition at line 143 of file cpxfiddle.cc.

References FORMATCC1, FORMATCI2, FORMATCI4, FORMATCR4, FORMATCR8, FORMATCUC1, FORMATI2, FORMATR4, FORMATR8, FORMATUC1, functie(), handleinput(), commandlineinput::iformat, synopsis(), and uchar.

void makecmap unsigned char  CMAP[3][256],
const commandlineinput input
 

Definition at line 955 of file cpxfiddle.cc.

References commandlineinput::cmap, commandlineinput::oformat, SUNRASTER, uchar, and commandlineinput::verbose.

Referenced by makecmapmixed().

void makecmapmixed unsigned char  CMAP[3][256],
const commandlineinput input
 

Definition at line 1392 of file cpxfiddle.cc.

References makecmap(), uchar, and commandlineinput::verbose.

void rasterheader unsigned long  header[8],
const int  width,
const int  height
 

Definition at line 933 of file cpxfiddle.cc.

void rescale uchar OUT,
float *  IN,
const int  numin,
const float  MIN,
const float  MAX,
const float  NEWMIN,
const float  NEWMAX
 

Definition at line 862 of file cpxfiddle.cc.

References uchar.

void shortexpl  ) 
 

Definition at line 1875 of file cpxfiddle.cc.

Referenced by synopsis().

void synopsis char *  programname  ) 
 

Definition at line 1895 of file cpxfiddle.cc.

References shortexpl(), and SWVERSION.

Referenced by handleinput(), and main().

void usage char *  programname  ) 
 

Definition at line 30 of file bkconvert.cc.


Variable Documentation

const int ASCII = 999
 

Definition at line 68 of file cpxfiddle.cc.

Referenced by handleinput().

const int DOMIRROR = -1
 

Definition at line 85 of file cpxfiddle.cc.

Referenced by handleinput().

const int FORMATCC1 = 11
 

Definition at line 71 of file cpxfiddle.cc.

Referenced by handleinput(), and main().

const int FORMATCI2 = 12
 

Definition at line 72 of file cpxfiddle.cc.

Referenced by azimuthfilter(), checkfiltazi(), checkfiltrange(), checkoversample(), checkresample(), productinfo::fillproductinfo(), handleinput(), main(), OversampleSLC(), preview(), rangefilter(), rangefiltporbits(), slcimage::readdata(), readinput(), resample(), slcimage::updateslcimage(), and slcimage::updateslcimageML().

const int FORMATCI4 = 14
 

Definition at line 73 of file cpxfiddle.cc.

Referenced by handleinput(), and main().

const int FORMATCR4 = 24
 

Definition at line 74 of file cpxfiddle.cc.

Referenced by azimuthfilter(), checkfiltazi(), checkfiltrange(), checkoversample(), checkresample(), dinsar(), productinfo::fillproductinfo(), handleinput(), main(), OversampleSLC(), phasefilter(), phasefilterspectral(), preview(), rangefilter(), rangefiltporbits(), slcimage::readdata(), readinput(), productinfo::readphase(), resample(), spatialphasefilt(), subtrrefdem(), subtrrefpha(), slcimage::updateslcimage(), and slcimage::updateslcimageML().

const int FORMATCR8 = 28
 

Definition at line 75 of file cpxfiddle.cc.

Referenced by handleinput(), and main().

const int FORMATCUC1 = 1
 

Definition at line 70 of file cpxfiddle.cc.

Referenced by handleinput(), and main().

const int FORMATI2 = 102
 

Definition at line 65 of file cpxfiddle.cc.

Referenced by checkcomprefdem(), productinfo::fillproductinfo(), handleinput(), main(), radarcodedem(), readinput(), slcimage::updateslcimage(), and slcimage::updateslcimageML().

const int FORMATR4 = 104
 

Definition at line 64 of file cpxfiddle.cc.

Referenced by checkcomprefdem(), productinfo::fillproductinfo(), geocode(), handleinput(), main(), preview(), radarcodedem(), readinput(), productinfo::readphase(), snaphu_unwrap(), subtrrefdem(), slcimage::updateslcimage(), and slcimage::updateslcimageML().

const int FORMATR8 = 108
 

Definition at line 63 of file cpxfiddle.cc.

Referenced by checkcomprefdem(), productinfo::fillproductinfo(), handleinput(), main(), radarcodedem(), readinput(), slcimage::updateslcimage(), and slcimage::updateslcimageML().

const int FORMATUC1 = 101
 

Definition at line 66 of file cpxfiddle.cc.

Referenced by handleinput(), and main().

const int IMAGPART = 54
 

Definition at line 80 of file cpxfiddle.cc.

Referenced by handleinput().

const int MAGNITUDE = 51
 

Definition at line 77 of file cpxfiddle.cc.

Referenced by handleinput().

const int MIXED = 56
 

Definition at line 82 of file cpxfiddle.cc.

Referenced by handleinput().

const int NOMIRROR = 1
 

Definition at line 84 of file cpxfiddle.cc.

Referenced by functie(), and handleinput().

const int NORMAL = 55
 

Definition at line 81 of file cpxfiddle.cc.

Referenced by functie(), and handleinput().

const int PHASE = 52
 

Definition at line 78 of file cpxfiddle.cc.

Referenced by handleinput(), slant2hschwabisch(), and unwraptreeframon().

const int REALPART = 53
 

Definition at line 79 of file cpxfiddle.cc.

Referenced by handleinput().

const int SUNRASTER = 201
 

Definition at line 67 of file cpxfiddle.cc.

Referenced by handleinput(), and makecmap().


Generated on Fri Apr 22 15:58:06 2005 for Doris by doxygen 1.3.6