next up previous contents
Next: Function: get_lines() Up: GRASP Routines: Time-Frequency Methods Previous: Function: plottf()   Contents


Function: get_line_lens()

int get_line_lens(double sigma, double high, double low, int rows, int cols, float **pic, char *file)

This function detects one dimensional structures in the TF map. The arguments are:

double sigma: Input. The width of the line to be detected in pixels.
double high: Input. The upper threshhold on the second directional derivative.
double low: Input. The lower threshhold on the second directional derivative.
int rows: Input. The number of rows in the TF map.
int cols: Input. The number of columns. in the TF map.
float **pic: Input. The pointer to the TF map.
char *file: Input. The name of the file to which the output is to be written. The file is written to disk only if at least one line is detected in the map. The first entry in the file is the number of lines detected. Then for each line detected the number of pixels in the line and the sum of the TF map pixel values along the line is recorded. A typical output file looks as shown below:

3
57 44.564186
24 10.698793
20 9.513889

Author: Warren G. Anderson, warren@ricci.phys.uwm.edu This routine is an interface to the routines by Carsten Steger to detect one dimensional structures in two dimensional images, [34,35].


next up previous contents
Next: Function: get_lines() Up: GRASP Routines: Time-Frequency Methods Previous: Function: plottf()   Contents
Bruce Allen 2000-11-19