ThreeB 1.1
Typedefs | Functions
utility.h File Reference

Utility bits. More...

#include <cvd/image.h>
#include <vector>
#include <string>
#include <cstring>
#include <cerrno>
#include <cstdlib>
#include <utility>

Go to the source code of this file.

Typedefs

typedef std::pair
< CVD::ImageRef, CVD::ImageRef > 
BBox

Functions

double sign (double x)
float sq (float f)
double sq (double f)
const std::vector
< CVD::SubImage< float > > 
sub_images (const std::vector< CVD::Image< float > > &im, CVD::ImageRef pos, CVD::ImageRef size)
std::pair< CVD::ImageRef,
CVD::ImageRef > 
boundingbox (const std::vector< CVD::ImageRef > &all_spots)
template<class Stream >
void open_or_die (Stream &save_spots, const std::string &save_spots_file)

Detailed Description

Utility bits.

Definition in file utility.h.


Function Documentation

double sq ( double  f) [inline]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 34 of file utility.h.

{ return f*f; }