DLPolar Class Reference

Cartesian-to-polar conversion. More...

#include <DLPolar.h>

List of all members.

Static Public Member Functions

static DLImage dlPolarImage (const DLImage &in, bool flag=true)


Detailed Description

Cartesian-to-polar conversion.

The algorithm is implemented as a static function, so no object of class DLPolar needs to be instantiated. See below for a usage example.

Definition at line 16 of file DLPolar.h.


Member Function Documentation

static DLImage DLPolar::dlPolarImage ( const DLImage in,
bool  flag = true 
) [static]

Compute the polar image of an image. The origin of the image is its centroid as computed by DLImage::dlCentroid(). The following code example will return the polar image for test.tif:

 DLImage i ("test.tif");
 DLImage polarImage = DLPolar::dlPolarImage(i, true);
Parameters:
in const DLImage &
flag 
  • true (the default) computes distances until the corners of the image
  • false computes distances until the farthest nonwhite pixel from the centroid
Returns:
polar coordinate image


The documentation for this class was generated from the following file:

DOCLIB is being developed under contract by a collaboration between:
The Laboratory for Language and Media Processing
Unviersity of Maryland, College Park
and
Booz | Allen | Hamilton

All Rights Reserved, 2003-2007