Classes | Defines | Functions | Variables
contrib/oxl/osl/osl_edge_detector.cxx File Reference
#include "osl_edge_detector.h"
#include <vcl_cmath.h>
#include <vcl_cstdlib.h>
#include <vcl_cassert.h>
#include <vcl_list.h>
#include <vcl_iostream.h>
#include <vcl_algorithm.h>
#include <osl/osl_canny_base.h>
#include <osl/osl_kernel.h>
#include <osl/osl_canny_smooth.h>
#include <osl/osl_canny_gradient.h>
#include <osl/osl_chamfer.h>
#include <osl/internals/osl_reorder_chain.h>
#include <vnl/vnl_math.h>

Go to the source code of this file.

Classes

struct  osl_edge_detector_xyfloat

Defines

#define FAR   65535
#define Make_float_image(w, h)   osl_canny_base_make_raw_image(w, h, (float*)0)
#define Make_int_image(w, h)   osl_canny_base_make_raw_image(w, h, (int*)0)
#define Free_float_image(i, dummy)   osl_canny_base_free_raw_image(i)
#define Free_int_image(i, dummy)   osl_canny_base_free_raw_image(i)
#define smoo(a, b)
#define smoo(a, b)
#define smoo(a, b)   if ( junction_[a][b] ) Follow_junctions(a,b, xc,yc);

Functions

osl_Vertexosl_find (vcl_list< osl_Vertex * > const *l, osl_Vertex const &v)
 Returns the first osl_Vertex* in l which matches (i.e. compares equal to) v.

Variables

const float DUMMYTHETA = 10000.0f
const float ALPHA = 0.9f

Detailed Description

Definition in file osl_edge_detector.cxx.


Define Documentation

#define FAR   65535

Definition at line 24 of file osl_edge_detector.cxx.

#define Free_float_image (   i,
  dummy 
)    osl_canny_base_free_raw_image(i)

Definition at line 28 of file osl_edge_detector.cxx.

#define Free_int_image (   i,
  dummy 
)    osl_canny_base_free_raw_image(i)

Definition at line 29 of file osl_edge_detector.cxx.

#define Make_float_image (   w,
 
)    osl_canny_base_make_raw_image(w, h, (float*)0)

Definition at line 26 of file osl_edge_detector.cxx.

#define Make_int_image (   w,
 
)    osl_canny_base_make_raw_image(w, h, (int*)0)

Definition at line 27 of file osl_edge_detector.cxx.

#define smoo (   a,
 
)
Value:
else if ( (thin_[a][b]>thresh_[a][b]) && (junction_[a][b]==0) ) \
    Follow(a, b, xc,yc, grad, 0);
#define smoo (   a,
 
)
Value:
else if ( junction_[a][b] && ((xc->size()>2) || (junction_[a][b]!=chain_no_)) ) { \
    xc->push_front(jx_[a][b]); \
    yc->push_front(jy_[a][b]); \
    grad->push_front(jval_); \
    junction_[a][b] = chain_no_; \
  }
#define smoo (   a,
 
)    if ( junction_[a][b] ) Follow_junctions(a,b, xc,yc);

Function Documentation

osl_Vertex* osl_find ( vcl_list< osl_Vertex * > const *  l,
osl_Vertex const &  v 
)

Returns the first osl_Vertex* in l which matches (i.e. compares equal to) v.

returns 0 if none found.

Definition at line 556 of file osl_canny_ox.cxx.


Variable Documentation

const float ALPHA = 0.9f

Definition at line 22 of file osl_edge_detector.cxx.

const float DUMMYTHETA = 10000.0f

Definition at line 21 of file osl_edge_detector.cxx.