Functions
contrib/mul/vimt3d/vimt3d_sample_transformed_blob.h File Reference

Sample transformed irregular region. More...

#include <vil3d/vil3d_image_view.h>
#include <vil3d/vil3d_chord.h>
#include <vimt3d/vimt3d_transform_3d.h>
#include <vil3d/vil3d_trilin_interp.h>
#include <vnl/vnl_vector.h>

Go to the source code of this file.

Functions

template<class T >
void vimt3d_sample_transformed_blob (const vil3d_image_view< T > &image, const vimt3d_transform_3d &i2i, const vcl_vector< vil3d_chord > &chords, vnl_vector< double > &sample)
 Samples irregular region described by chords.
template<class T >
void vimt3d_sample_transformed_blob_safe (const vil3d_image_view< T > &image, const vimt3d_transform_3d &i2i, const vcl_vector< vil3d_chord > &chords, vnl_vector< double > &sample, T outval=0)
 Samples irregular region described by chords.

Detailed Description

Sample transformed irregular region.

Author:
Tim Cootes

Definition in file vimt3d_sample_transformed_blob.h.


Function Documentation

template<class T >
void vimt3d_sample_transformed_blob ( const vil3d_image_view< T > &  image,
const vimt3d_transform_3d i2i,
const vcl_vector< vil3d_chord > &  chords,
vnl_vector< double > &  sample 
) [inline]

Samples irregular region described by chords.

Region described by chords in an integer grid frame. If pi is the i-th (integer) point in this, then on exit sample[i]=trilin_interp(image,i2i(pi)). Assumes that sample has already been resized correctly. WARNING: This uses no bound checks, so the transformed points must be completely within the image.

Definition at line 23 of file vimt3d_sample_transformed_blob.h.

template<class T >
void vimt3d_sample_transformed_blob_safe ( const vil3d_image_view< T > &  image,
const vimt3d_transform_3d i2i,
const vcl_vector< vil3d_chord > &  chords,
vnl_vector< double > &  sample,
outval = 0 
) [inline]

Samples irregular region described by chords.

Region described by chords in an integer grid frame. If pi is the i-th (integer) point in this, then on exit sample[i]=trilin_interp(image,i2i(pi)). Assumes that sample has already been resized correctly. This uses safe interpolation, so any transformed points outside the image will be evaluated as outval.

Definition at line 60 of file vimt3d_sample_transformed_blob.h.