#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
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 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 */ |
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 | ||
) |
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 | ||
) |
unsigned char color_numbers[24] |
int NOISE_DEFINED[10] = {1,1,1,1,0,0,0,0,0,0 } |