Functions
contrib/brl/bseg/brip/brip_blobwise_mutual_info.h File Reference

Calculate patchwise mutual info between two images. More...

#include <vil/vil_image_view.h>
#include <vcl_vector.h>
#include <vcl_cmath.h>
#include <vnl/vnl_math.h>

Go to the source code of this file.

Functions

template<class T >
void brip_blobwise_mutual_info (const vil_image_view< T > &img1, const vil_image_view< T > &img2, const vil_image_view< T > &weights, const vil_image_view< bool > &mask, vil_image_view< T > &mi_img)
 Calculate the Mutual Information between the images.
template<class T >
void brip_blobwise_kl_div (const vil_image_view< T > &img1, const vil_image_view< T > &img2, const vil_image_view< bool > &mask, vil_image_view< T > &mi_img)
double brip_hist_kl_div (const vcl_vector< double > &P, double magP, const vcl_vector< double > &Q, double magQ)
 calculates the kl divergeance D_kl ( P || Q );.

Detailed Description

Calculate patchwise mutual info between two images.

Author:
Matt Leotta

Definition in file brip_blobwise_mutual_info.h.


Function Documentation

template<class T >
void brip_blobwise_kl_div ( const vil_image_view< T > &  img1,
const vil_image_view< T > &  img2,
const vil_image_view< bool > &  mask,
vil_image_view< T > &  mi_img 
)

Definition at line 130 of file brip_blobwise_mutual_info.txx.

template<class T >
void brip_blobwise_mutual_info ( const vil_image_view< T > &  img1,
const vil_image_view< T > &  img2,
const vil_image_view< T > &  weights,
const vil_image_view< bool > &  mask,
vil_image_view< T > &  mi_img 
)

Calculate the Mutual Information between the images.

Definition at line 22 of file brip_blobwise_mutual_info.txx.

double brip_hist_kl_div ( const vcl_vector< double > &  P,
double  magP,
const vcl_vector< double > &  Q,
double  magQ 
) [inline]

calculates the kl divergeance D_kl ( P || Q );.

Definition at line 32 of file brip_blobwise_mutual_info.h.