Functions
contrib/mul/vil3d/algo/vil3d_locally_z_normalise.h File Reference

Locally apply z-normalisation to images. More...

#include <vil/vil_convert.h>
#include <vil3d/vil3d_image_view.h>
#include <vil3d/vil3d_math.h>
#include <vil3d/algo/vil3d_exp_filter.h>
#include <vcl_cassert.h>

Go to the source code of this file.

Functions

template<class T >
void vil3d_locally_z_normalise (const vil3d_image_view< T > &input, double half_width_i, double half_width_j, double half_width_k, vil3d_image_view< T > &output)
 Locally apply z-normalisation to images.

Detailed Description

Locally apply z-normalisation to images.

Author:
Tim Cootes

Definition in file vil3d_locally_z_normalise.h.


Function Documentation

template<class T >
void vil3d_locally_z_normalise ( const vil3d_image_view< T > &  input,
double  half_width_i,
double  half_width_j,
double  half_width_k,
vil3d_image_view< T > &  output 
) [inline]

Locally apply z-normalisation to images.

The mean and standard deviation over a window around each voxel. The voxel_value is modified v_new = (v_old - mean)/max(min_var, stdev) For integer types min_var is 1. For floating point min_var is the larger of 0.001 of the image wide stdev, or sqrt_eps.

Workspace.

Definition at line 20 of file vil3d_locally_z_normalise.h.