Defines | Functions
contrib/mul/vil3d/algo/vil3d_abs_shuffle_distance.txx File Reference

Compute shuffle distance between two images. More...

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

Go to the source code of this file.

Defines

#define vil3d_abs_shuffle_distance_txx_
#define VIL3D_ABS_SHUFFLE_DISTANCE_INSTANTIATE(T1, T2)
#define VIL3D_ABS_SHUFFLE_DISTANCE_INSTANTIATE2(T1, T2)

Functions

template<class T1 , class T2 >
double vil3d_abs_shuffle_distance (const vil3d_image_view< T1 > &image1, const vil3d_image_view< T2 > &image2, const vil3d_structuring_element &element, bool include_borders)
 Computes shuffle distance between image1 and image2.
template<class T1 , class T2 >
void vil3d_abs_shuffle_distance (const vil3d_image_view< T1 > &image1, const vil3d_image_view< T2 > &image2, const vil3d_structuring_element &element, vil3d_image_view< T1 > &image3)
 Computes shuffle distance between image1 and image2.

Detailed Description

Compute shuffle distance between two images.

Author:
Vlad Petrovic and Tim Cootes

Definition in file vil3d_abs_shuffle_distance.txx.


Define Documentation

#define VIL3D_ABS_SHUFFLE_DISTANCE_INSTANTIATE (   T1,
  T2 
)
Value:
template double vil3d_abs_shuffle_distance(const vil3d_image_view< T1 >& image1, \
                                           const vil3d_image_view< T2 >& image2, \
                                           const vil3d_structuring_element& element, \
                                           bool include_borders)

Definition at line 206 of file vil3d_abs_shuffle_distance.txx.

#define VIL3D_ABS_SHUFFLE_DISTANCE_INSTANTIATE2 (   T1,
  T2 
)
Value:
template void vil3d_abs_shuffle_distance(const vil3d_image_view< T1 >& image1, \
                                         const vil3d_image_view< T2 >& image2, \
                                         const vil3d_structuring_element& element, \
                                         vil3d_image_view< T1 >& image3)

Definition at line 213 of file vil3d_abs_shuffle_distance.txx.

#define vil3d_abs_shuffle_distance_txx_

Definition at line 2 of file vil3d_abs_shuffle_distance.txx.


Function Documentation

template<class T1 , class T2 >
double vil3d_abs_shuffle_distance ( const vil3d_image_view< T1 > &  image1,
const vil3d_image_view< T2 > &  image2,
const vil3d_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 vil3d_abs_shuffle_distance.txx.

template<class T1 , class T2 >
void vil3d_abs_shuffle_distance ( const vil3d_image_view< T1 > &  image1,
const vil3d_image_view< T2 > &  image2,
const vil3d_structuring_element element,
vil3d_image_view< T1 > &  image3 
)

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.

Definition at line 113 of file vil3d_abs_shuffle_distance.txx.