BRL-CAD
icv_filter.c File Reference
#include "common.h"
#include <stdlib.h>
#include "bio.h"
#include "bu/log.h"
#include "bu/getopt.h"
#include "bu/str.h"
#include "icv.h"
Include dependency graph for icv_filter.c:

Go to the source code of this file.

Data Structures

struct  kernels_info
 

Macros

#define TOTAL_FILTERS   6
 

Functions

void usage ()
 
ICV_FILTER select_filter (char *uname)
 
int main (int argc, char *argv[])
 

Variables

struct kernels_info kernel []
 

Detailed Description

tester function for icv_api.

Definition in file icv_filter.c.

Macro Definition Documentation

#define TOTAL_FILTERS   6

Definition at line 36 of file icv_filter.c.

Referenced by select_filter(), and usage().

Function Documentation

void usage ( )

Definition at line 53 of file icv_filter.c.

References bu_log(), kernel, and TOTAL_FILTERS.

Referenced by main().

Here is the call graph for this function:

ICV_FILTER select_filter ( char *  uname)

Definition at line 75 of file icv_filter.c.

References bu_log(), BU_STR_EQUAL, kernels_info::filter, ICV_FILTER_LOW_PASS, kernel, and TOTAL_FILTERS.

Referenced by main().

Here is the call graph for this function:

int main ( int  argc,
char *  argv[] 
)

Definition at line 86 of file icv_filter.c.

References bu_getopt(), bu_optarg, bu_optind, icv_destroy(), icv_filter(), ICV_FILTER_LOW_PASS, ICV_IMAGE_AUTO, ICV_IMAGE_BW, ICV_IMAGE_DPIX, ICV_IMAGE_PIX, ICV_IMAGE_PPM, icv_read(), icv_write(), select_filter(), and usage().

Here is the call graph for this function:

Variable Documentation

struct kernels_info kernel[]
Initial value:
= {
{ "LOW PASS", "lo", ICV_FILTER_LOW_PASS },
{ "LAPLACIAN", "la", ICV_FILTER_LAPLACIAN },
{ "HIGH PASS", "hi", ICV_FILTER_HIGH_PASS },
{ "HORIZONTAL GRAD", "hg", ICV_FILTER_HORIZONTAL_GRAD },
{ "VERTICAL GRAD", "vg", ICV_FILTER_VERTICAL_GRAD },
{ "BOXCAR AVERAGE", "b", ICV_FILTER_BOXCAR_AVERAGE },
{ NULL, NULL, ICV_FILTER_NULL },
}

Referenced by select_filter(), and usage().