w2img::PixelValueCorrelogram Class Reference

Inheritance diagram for w2img::PixelValueCorrelogram:

w2img::Correlogram List of all members.

Detailed Description

Create a correlogram from an image or sequence of images.

Author:
Lakshman
Version:
Id
w2img_Correlogram.h,v 1.5 2009/06/02 20:17:57 lakshman Exp


Public Member Functions

 PixelValueCorrelogram (size_t maxRangeInPixels=10)
 The correlogram is estimated as a function of range.
void update (const code::Image< float > &image)
 create or update a correlogram based on the data in this image
virtual ~PixelValueCorrelogram ()
virtual size_t getAverageDistance () const
 What is the average distance between samples?
bool write (const std::string &filename) const
 Write the correlogram values in a format fit to be easily plotted.
const Sample & operator[] (size_t dist) const
 get the correlation between two samples separated by dist pixels in an euclidean framework.
size_t size () const
 Distance to which we have samples available.

Protected Member Functions

Sample & operator[] (size_t dist)

Protected Attributes

std::vector< Sample > func


Constructor & Destructor Documentation

w2img::PixelValueCorrelogram::PixelValueCorrelogram ( size_t  maxRangeInPixels = 10  ) 

The correlogram is estimated as a function of range.

So, provide the maximum range that we should consider (in pixels).

virtual w2img::PixelValueCorrelogram::~PixelValueCorrelogram (  )  [inline, virtual]


Member Function Documentation

virtual size_t w2img::PixelValueCorrelogram::getAverageDistance (  )  const [inline, virtual]

What is the average distance between samples?

Implements w2img::Correlogram.

Sample& w2img::Correlogram::operator[] ( size_t  dist  )  [inline, protected, inherited]

const Sample& w2img::Correlogram::operator[] ( size_t  dist  )  const [inline, inherited]

get the correlation between two samples separated by dist pixels in an euclidean framework.

dist has to be less than getMaxDistanceInPixels()

size_t w2img::Correlogram::size (  )  const [inline, inherited]

Distance to which we have samples available.

void w2img::PixelValueCorrelogram::update ( const code::Image< float > &  image  ) 

create or update a correlogram based on the data in this image

bool w2img::Correlogram::write ( const std::string &  filename  )  const [inherited]

Write the correlogram values in a format fit to be easily plotted.

Returns:
true on success.


Member Data Documentation

std::vector< Sample > w2img::Correlogram::func [protected, inherited]


Generated on Fri May 4 13:40:23 2012 for WDSS-IIw2algs by  doxygen 1.4.7