Surface
detect surface points in an image stack
|
Surface detector. More...
#include <config.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <inttypes.h>
#include <string.h>
#include <jwsc/base/error.h>
#include <jwsc/base/option.h>
#include <jwsc/matblock/matblock.h>
#include <jwsc/imgblock/imgblock.h>
#include <jwsc/imgblock/imgblock_io.h>
#include <jwsc/imgblock/imgblock_util.h>
#include <jwsc/imgblock/surface.h>
Go to the source code of this file.
Defines | |
#define | DEFAULT_BEGIN_THRESH 0.06f |
#define | DEFAULT_END_THRESH 0.025f |
#define | DEFAULT_SIGMA 1.0f |
#define | DEFAULT_SAMPLE_RATE 1.0f |
#define | DEFAULT_GRAD_IMG_WEIGHT 1.0f |
#define | DEFAULT_GRAD_ROW_WEIGHT 1.0f |
#define | DEFAULT_GRAD_COL_WEIGHT 1.0f |
#define | DEFAULT_RES_IMG 1.0f |
#define | DEFAULT_RES_ROW 1.0f |
#define | DEFAULT_RES_COL 1.0f |
#define | NUM_OPTS_NO_ARG 3 |
#define | NUM_OPTS_WITH_ARG 9 |
Functions | |
static void | print_usage (void) |
Prints the usage of the program. | |
static Error * | process_help_opt (void) |
Processes the 'help' program options. | |
static Error * | process_version_opt (void) |
Processes the 'version' program options. | |
static Error * | process_named_opt (void) |
Processes the 'named' program options. | |
static Error * | process_colored_out_opt (Option_arg arg) |
Processes the 'colored-out' program options. | |
static Error * | process_map_out_opt (Option_arg arg) |
Processes the 'map-out' program options. | |
static Error * | process_pts_out_opt (Option_arg arg) |
Processes the 'pts-out' program options. | |
static Error * | process_begin_thresh_opt (Option_arg arg) |
Processes the 'begin-thresh' program options. | |
static Error * | process_end_thresh_opt (Option_arg arg) |
Processes the 'end-thresh' program options. | |
static Error * | process_sigma_opt (Option_arg arg) |
Processes the 'sigma' program options. | |
static Error * | process_sample_rate_opt (Option_arg arg) |
Processes the 'sample-rate' program options. | |
static Error * | process_grad_weight_opt (Option_arg arg) |
Processes the 'grad-weight' program options. | |
static Error * | process_resolution_opt (Option_arg arg) |
Processes the 'resolution' program options. | |
int | main (int argc, const char **argv) |
Main function for the surface program. | |
Variables | |
static Option_no_arg | opts_no_arg [NUM_OPTS_NO_ARG] |
Program options taking no argument. | |
static Option_with_arg | opts_with_arg [NUM_OPTS_WITH_ARG] |
Program options taking an argument. | |
static const char * | pts_fname |
Name of the file to write the surface points to in ASCII. | |
static const char * | map_fname |
Name of the surface map image block to output. | |
static const char * | colored_fname |
Name of the image block with surfaces colored to output. | |
static float | begin_thresh |
Gradient magnitude surface detection threshold for beginning hysterisis. | |
static float | end_thresh |
Gradient magnitude surface detection threshold for ending hysterisis. | |
static float | sigma |
Sigma for smoothing the image block. | |
static float | sample_rate |
Percentage of detected surface points to randomly sample from. | |
static float | grad_img_weight |
Weight along the image gradient at a Surface_point. | |
static float | grad_row_weight |
Weight along the row gradient at a Surface_point. | |
static float | grad_col_weight |
Weight along the column gradient at a Surface_point. | |
static uint8_t | images_named |
Boolean indicating whether the images to read are a named sequence in argv, or a printf numbered sequence. | |
static float | res_img |
Resolution for the images in the input stack. | |
static float | res_row |
Resolution for the rows in the input stack. | |
static float | res_col |
Resolution for the columns in the input stack. |
static void print_usage | ( | void | ) | [static] |
static Error* process_help_opt | ( | void | ) | [static] |
static Error* process_version_opt | ( | void | ) | [static] |
static Error* process_named_opt | ( | void | ) | [static] |
static Error* process_colored_out_opt | ( | Option_arg | arg | ) | [static] |
static Error* process_map_out_opt | ( | Option_arg | arg | ) | [static] |
static Error* process_pts_out_opt | ( | Option_arg | arg | ) | [static] |
static Error* process_begin_thresh_opt | ( | Option_arg | arg | ) | [static] |
static Error* process_end_thresh_opt | ( | Option_arg | arg | ) | [static] |
static Error* process_sigma_opt | ( | Option_arg | arg | ) | [static] |
static Error* process_sample_rate_opt | ( | Option_arg | arg | ) | [static] |
static Error* process_grad_weight_opt | ( | Option_arg | arg | ) | [static] |
static Error* process_resolution_opt | ( | Option_arg | arg | ) | [static] |
int main | ( | int | argc, |
const char ** | argv | ||
) |
Option_no_arg opts_no_arg[NUM_OPTS_NO_ARG] [static] |
Option_with_arg opts_with_arg[NUM_OPTS_WITH_ARG] [static] |
const char* pts_fname [static] |
const char* map_fname [static] |
const char* colored_fname [static] |
float begin_thresh [static] |
float end_thresh [static] |
float sample_rate [static] |
float grad_img_weight [static] |
float grad_row_weight [static] |
float grad_col_weight [static] |
uint8_t images_named [static] |
float res_img [static] |
float res_row [static] |