Defines | Functions | Variables
compare.c File Reference
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
Include dependency graph for compare.c:

Go to the source code of this file.

Defines

#define BLANKS   " "
#define FW_CLASSIFS   14 /* measures columns and classif.s col */
#define FW_LABELS   19 /* field widths, in characters, used */
#define FW_MEASURES   12 /* in output file, for labels columns,*/
#define MAX_ANGLES   100 /* max number of angles in GT */
#define MAX_LABELS   256 /* restricted by data structure types */
#define MAX_REGIONS   246 /* max number of surface regions */
#define RAS_MAGIC   0x59a66a95 /* rasterfile magic number */

Functions

double AngleBetweenVectors ()
double AngleBetweenVectors (Vector1, Vector2)
void ClassifyRegions ()
void ClassifyRegions (OverlapTable, GTRegionSizes, MSRegionSizes, int TotalRegionsInGT, int TotalRegionsInMS, GTRegionClassifications, GTRegionMappings, GTMappingMeasures, MSRegionClassifications, MSRegionMappings, MSMappingMeasures, int *TotalCorrectPixelCount, int *TotalGTPixelCount, int *TotalNotCorrectMSPixels)
void ComputeTables ()
void ComputeTables (unsigned char *GTImage, unsigned char *MSImage, OverlapTable, GTRegionSizes, MSRegionSizes, int TotalRegionsInGT, int TotalRegionsInMS)
int GoodSpot (unsigned char *InImage, int ROWS, int COLS, int Label, int r, int c, int height, int width)
int LoadFiles ()
int LoadFiles (FilePrefix, int *ROWS, int *COLS, unsigned char **GTImage, int *TotalRegionsInGT, int *TotalAnglesInGT, GTAngleRegions, GTAngleValues, unsigned char **MSImage, int *TotalRegionsInMS, MSRegionNormals, int *NoNormals)
int main (int argc, argv)
void OutputImage ()
void OutputImage (Filename, unsigned char *InImage, int TotalRegions, RegionClassifications)
void OutputTable ()
void OutputTable (FilePrefix, int TotalRegionsInGT, int TotalRegionsInMS, int TotalAnglesInGT, GTAngleRegions, GTAngleValues, MSRegionNormals, GTRegionClassifications, GTRegionMappings, GTMappingMeasures, MSRegionClassifications, MSRegionMappings, MSMappingMeasures, int PrintFile, int *TotalCorrectClassifications, double *C_Avg_m1, double *C_Avg_m2, int *TotalAnglesCompared, double *AvgAngDiff, double *stddev, int *TotalOversegClassifications, double *O_Avg_m1, double *O_Avg_m2, int *TotalUndersegClassifications, double *U_Avg_m1, double *U_Avg_m2, int *TotalMissedClassifications, int *TotalNoiseClassifications, int *NoNormals)

Variables

unsigned char color_numbers [24]
int COLS
char digits [10][5][4]
int NOISE_DEFINED [10] = {1,1,1,1,0,0,0,0,0,0 }
char * PATHS []
int ROWS
double T_SEG

Define Documentation

#define BLANKS   " "

Definition at line 16 of file compare.c.

#define FW_CLASSIFS   14 /* measures columns and classif.s col */

Definition at line 15 of file compare.c.

#define FW_LABELS   19 /* field widths, in characters, used */

Definition at line 13 of file compare.c.

#define FW_MEASURES   12 /* in output file, for labels columns,*/

Definition at line 14 of file compare.c.

#define MAX_ANGLES   100 /* max number of angles in GT */

Definition at line 12 of file compare.c.

#define MAX_LABELS   256 /* restricted by data structure types */

Definition at line 11 of file compare.c.

#define MAX_REGIONS   246 /* max number of surface regions */

Definition at line 10 of file compare.c.

#define RAS_MAGIC   0x59a66a95 /* rasterfile magic number */

Definition at line 8 of file compare.c.


Function Documentation

double AngleBetweenVectors ( )
double AngleBetweenVectors ( Vector1  ,
Vector2   
)

Definition at line 542 of file compare.c.

void ClassifyRegions ( )
void ClassifyRegions ( OverlapTable  ,
GTRegionSizes  ,
MSRegionSizes  ,
int  TotalRegionsInGT,
int  TotalRegionsInMS,
GTRegionClassifications  ,
GTRegionMappings  ,
GTMappingMeasures  ,
MSRegionClassifications  ,
MSRegionMappings  ,
MSMappingMeasures  ,
int *  TotalCorrectPixelCount,
int *  TotalGTPixelCount,
int *  TotalNotCorrectMSPixels 
)

Definition at line 360 of file compare.c.

void ComputeTables ( )
void ComputeTables ( unsigned char *  GTImage,
unsigned char *  MSImage,
OverlapTable  ,
GTRegionSizes  ,
MSRegionSizes  ,
int  TotalRegionsInGT,
int  TotalRegionsInMS 
)

Definition at line 327 of file compare.c.

int GoodSpot ( unsigned char *  InImage,
int  ROWS,
int  COLS,
int  Label,
int  r,
int  c,
int  height,
int  width 
)

Definition at line 1501 of file compare.c.

int LoadFiles ( )
int LoadFiles ( FilePrefix  ,
int *  ROWS,
int*  COLS,
unsigned char **  GTImage,
int *  TotalRegionsInGT,
int *  TotalAnglesInGT,
GTAngleRegions  ,
GTAngleValues  ,
unsigned char**  MSImage,
int*  TotalRegionsInMS,
MSRegionNormals  ,
int *  NoNormals 
)

Definition at line 994 of file compare.c.

int main ( int  argc,
argv   
)

Definition at line 45 of file compare.c.

void OutputImage ( )
void OutputImage ( Filename  ,
unsigned char *  InImage,
int  TotalRegions,
RegionClassifications   
)

Definition at line 1318 of file compare.c.

void OutputTable ( )
void OutputTable ( FilePrefix  ,
int  TotalRegionsInGT,
int  TotalRegionsInMS,
int  TotalAnglesInGT,
GTAngleRegions  ,
GTAngleValues  ,
MSRegionNormals  ,
GTRegionClassifications  ,
GTRegionMappings  ,
GTMappingMeasures  ,
MSRegionClassifications  ,
MSRegionMappings  ,
MSMappingMeasures  ,
int  PrintFile,
int *  TotalCorrectClassifications,
double *  C_Avg_m1,
double*  C_Avg_m2,
int *  TotalAnglesCompared,
double *  AvgAngDiff,
double*  stddev,
int*  TotalOversegClassifications,
double*  O_Avg_m1,
double*  O_Avg_m2,
int *  TotalUndersegClassifications,
double*  U_Avg_m1,
double*  U_Avg_m2,
int *  TotalMissedClassifications,
int*  TotalNoiseClassifications,
int *  NoNormals 
)

Definition at line 568 of file compare.c.


Variable Documentation

unsigned char color_numbers[24]
Initial value:
{0,0,0,103,102,135,46,169,103,60,89,234,
                                215,134,29,218,2,121,86,19,123,255,255,255}

Definition at line 1315 of file compare.c.

int COLS

Definition at line 27 of file compare.c.

char digits[10][5][4]

Definition at line 1252 of file compare.c.

int NOISE_DEFINED[10] = {1,1,1,1,0,0,0,0,0,0 }

Definition at line 25 of file compare.c.

char* PATHS[]
Initial value:
{"./",  
                        NULL }

Definition at line 21 of file compare.c.

int ROWS

Definition at line 27 of file compare.c.

double T_SEG

Definition at line 29 of file compare.c.



structure_coloring_fkie
Author(s): Bastian Gaspers
autogenerated on Sun Jan 5 2014 11:38:09