Defines | Functions
core/vil/algo/vil_abs_shuffle_distance.txx File Reference

Compute shuffle distance between two images. More...

#include "vil_abs_shuffle_distance.h"
#include <vcl_cassert.h>

Go to the source code of this file.

Defines

#define vil_abs_shuffle_distance_txx_
#define VIL_ABS_SHUFFLE_DISTANCE_INSTANTIATE(T1, T2)

Functions

template<class T1 , class T2 >
double vil_abs_shuffle_distance (const vil_image_view< T1 > &image1, const vil_image_view< T2 > &image2, const vil_structuring_element &element, bool include_borders)
 Computes shuffle distance between image1 and image2.

Detailed Description

Compute shuffle distance between two images.

Author:
Tim Cootes

Definition in file vil_abs_shuffle_distance.txx.


Define Documentation

#define VIL_ABS_SHUFFLE_DISTANCE_INSTANTIATE (   T1,
  T2 
)
Value:
template double vil_abs_shuffle_distance(const vil_image_view< T1 >& image1, \
                                         const vil_image_view< T2 >& image2, \
                                         const vil_structuring_element& element, \
                                         bool include_borders)

Definition at line 84 of file vil_abs_shuffle_distance.txx.

#define vil_abs_shuffle_distance_txx_

Definition at line 2 of file vil_abs_shuffle_distance.txx.


Function Documentation

template<class T1 , class T2 >
double vil_abs_shuffle_distance ( const vil_image_view< T1 > &  image1,
const vil_image_view< T2 > &  image2,
const vil_structuring_element element,
bool  include_borders 
)

Computes shuffle distance between image1 and image2.

For each pixel in image1 it finds the pixel in image2 with the closest value in an offset area defined by the element. Returns mean over all pixels of this minimum value.

Definition at line 18 of file vil_abs_shuffle_distance.txx.