Defines | Functions
contrib/oxl/osl/osl_canny_smooth.txx File Reference

Notes. More...

#include "osl_canny_smooth.h"
#include <vcl_cmath.h>
#include <vil1/vil1_rgb.h>
#include <vil1/vil1_memory_image_of.h>

Go to the source code of this file.

Defines

#define osl_canny_smooth_txx_
#define thePixel(b, x, y)   as_float(b[x][y])
 Convolves the image with the smoothing kernel.
#define OSL_CANNY_SMOOTH_INSTANTIATE(T)

Functions

template<class T >
float as_float (T const &v)
VCL_DEFINE_SPECIALIZATION float as_float (vil1_rgb< unsigned char > const &v)
template<class T >
void osl_canny_smooth_rothwell (T const *const *image_in, int xsize_, int ysize_, float const *kernel_, int width_, int k_size_, float *unpro_const *smooth_)
template<class T >
void osl_canny_smooth_rothwell_adaptive (T const *const *image_, int, int, int x0, int y0, int image_size, float const *kernel_, int width_, int k_size_, float *unpro_const *dx, float *unpro_const *dy, float *unpro_const *grad)
 Computes the gradient images with the origin at (x0,y0) and of square size image_size.
template<class T >
void osl_canny_smooth (T const *const *image_in, int xsize_, int ysize_, float const *kernel_, int width_, float const *sub_area_, float *unpro_const *image_out)

Detailed Description

Notes.

Author:
fsm

Definition in file osl_canny_smooth.txx.


Define Documentation

#define OSL_CANNY_SMOOTH_INSTANTIATE (   T)
Value:
template void osl_canny_smooth_rothwell(T const * const *image_in, int xsize_, int ysize_, \
                                        float const *kernel_, int width_, int k_size_, \
                                        float * unpro_const *smooth_); \
template void osl_canny_smooth_rothwell_adaptive(T const * const *in, int xsize_, int ysize_, \
                                                 int x0, int y0, int image_size,  \
                                                 float const *kernel_, int width_, int k_size_, \
                                                 float * unpro_const *dx, float * unpro_const *dy, float * unpro_const *grad); \
template void osl_canny_smooth(T const * const *image_in, int xsize_, int ysize_, \
                               float const *kernel_, int width_, float const *sub_area_, \
                               float * unpro_const * image_out)

Definition at line 210 of file osl_canny_smooth.txx.

#define osl_canny_smooth_txx_

Definition at line 2 of file osl_canny_smooth.txx.

#define thePixel (   b,
  x,
 
)    as_float(b[x][y])

Convolves the image with the smoothing kernel.

sub_area_ is used to smooth pixels lying in a border of size width_.

Meaning of sub_area_[x] : It is the probability that the variable will assume a value <= x in the distribution function. It is the hashed area under the distribution profile.

                       . .
                     . ### .
                   .  #####| .
                 . ########|   .
               . ##########|     .
           __ .############|      .__
         __________________|___________
                           x
   

Definition at line 127 of file osl_canny_smooth.txx.


Function Documentation

template<class T >
float as_float ( T const &  v) [inline]

Definition at line 21 of file osl_canny_smooth.txx.

VCL_DEFINE_SPECIALIZATION float as_float ( vil1_rgb< unsigned char > const &  v) [inline]

Definition at line 24 of file osl_canny_smooth.txx.

template<class T >
void osl_canny_smooth ( T const *const *  image_in,
int  xsize_,
int  ysize_,
float const *  kernel_,
int  width_,
float const *  sub_area_,
float *unpro_const *  image_out 
)

Definition at line 130 of file osl_canny_smooth.txx.

template<class T >
void osl_canny_smooth_rothwell ( T const *const *  image_in,
int  xsize_,
int  ysize_,
float const *  kernel_,
int  width_,
int  k_size_,
float *unpro_const *  smooth_ 
)

Definition at line 43 of file osl_canny_smooth.txx.

template<class T >
void osl_canny_smooth_rothwell_adaptive ( T const *const *  image_,
int  ,
int  ,
int  x0,
int  y0,
int  image_size,
float const *  kernel_,
int  width_,
int  k_size_,
float *unpro_const *  dx,
float *unpro_const *  dy,
float *unpro_const *  grad 
)

Computes the gradient images with the origin at (x0,y0) and of square size image_size.

Definition at line 68 of file osl_canny_smooth.txx.