#include <math.h>
#include "junkmath.h"
#include "sadie_byte.h"
#include "chain.h"
#include "mosaic.h"
#include "trees_profile.h"
#include "boundary.h"
Defines | |
#define | crashandburn(e) {fprintf(stderr,"Panic: %s!\n",e) ;exit(-2) ;} \ |
Stopgap error handler. | |
Functions | |
void | initialize_mosaic_context (IMAGE_BYTE *im, MOSAIC_INDEX *imindex, IMAGE_CONTEXT *newcontext) |
void | initialize_image_context (IMAGE *im, IMAGE_CONTEXT *newcontext) |
void | initialize_chaincode_context (LIST_NODE *chain_boundary, BOUNDARY_CONTEXT *newcontext) |
make_rotator (left, make_rotator(right) | |
void | demolish_index (RBNODE *ix) |
void | discard_boundary (BOUNDER *bound) |
BOUNDER * | make_boundary (BOUNDARY_CONTEXT *bcon) |
void | build_index (BOUNDER *bound) |
double | find_width (BOUNDER *in, BOUNDER *out, IMAGE_CONTEXT *mosaic, PROFILE_LIST *last_ringprofile) |
void | CHAIN_RINGWIDTHS (IMAGE_BYTE *mimage, MOSAIC_INDEX *mindex, CHAIN *chainmap, PROFILE_LIST *profiles, int *numrings, double **ringwidths, BOUNDBOX_LIST *bound_box_list) |
We're assuming that all the previous phases of TREES are complete: that it has acquired images, assembled them into a mosaic, and identified the ring boundaries. This has one interface visible to the rest of TREES, the function CHAIN_RINGWIDTHS,
|
Stopgap error handler. This doesn't just abort the functions defined in this file, or the thread running them, but the entire process running TREES. |