xyzvol_cmp.C File Reference

Compare xyz samples to a volume. Get the cdf desity %. More...

#include <cassert>
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <sstream>
#include "Density.H"
#include "VecAngle.H"
#include "xyzvol_cmp_cmd.h"
#include "debug.H"

Functions

float findmax (vector< size_t > &d, size_t &position)
 Get back the max value and the position from a vector<size_t>.
void find_best_zrot (const Density &d, const size_t search_steps, const float x, const float y, const float z, size_t &best_count, float &best_angle)
 Search for the best z axis rotation fit.
int main (int argc, char *argv[])

Variables

int debug_level
 The main program needs to define this as a non-extern.
static const UNUSED char * RCSid = "@(#) $Id: xyzvol_cmp.C,v 1.11 2004/11/27 20:54:25 schwehr Exp $"
 Let the debugger find out which version is being used.


Detailed Description

Compare xyz samples to a volume. Get the cdf desity %.


Function Documentation

void find_best_zrot const Density d,
const size_t  search_steps,
const float  x,
const float  y,
const float  z,
size_t &  best_count,
float &  best_angle
 

Search for the best z axis rotation fit.

Parameters:
d Volume density to search
search_steps How many chunks to break 360 degrees into
x,y,z Location of the point to rotation around
best_count Returns the number of counts at the best cell
best_angle Returns the angle to get the best count
Bug:
has a case where there is nothing foung by find max. What to do?

float findmax vector< size_t > &  d,
size_t &  position
 

Get back the max value and the position from a vector<size_t>.

Parameters:
d vector of size_t values to search through
position the index of the max value
Returns:
The value of the maximum that was found

int main int  argc,
char *  argv[]
 


Variable Documentation

int debug_level
 

The main program needs to define this as a non-extern.

const UNUSED char* RCSid = "@(#) $Id: xyzvol_cmp.C,v 1.11 2004/11/27 20:54:25 schwehr Exp $" [static]
 

Let the debugger find out which version is being used.


Generated on Thu Mar 2 17:55:25 2006 for density by  doxygen 1.4.6