Hugin trunk 0.1
Loading...
Searching...
No Matches
Namespaces | Macros | Typedefs | Functions
Utils.h File Reference
#include <sys/time.h>
Include dependency graph for Utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  utils
 

Macros

#define TIMETRACE(TEXT, CODE)
 

Typedefs

typedef struct timeval utils::os_TIME
 

Functions

void utils::os_GetTime (os_TIME *time)
 
int utils::os_TimeDiff (os_TIME *time1, os_TIME *time2)
 
unsigned long long utils::getTotalMemory ()
 returns the total memory in byte
 
unsigned int utils::GetPhysicalCPUCount ()
 return the number of physical cpu cores
 

Macro Definition Documentation

◆ TIMETRACE

#define TIMETRACE (   TEXT,
  CODE 
)
Value:
{ std::ostringstream buf; utils::os_TIME t1,t2; utils::os_GetTime(&t1); CODE; \
utils::os_GetTime(&t2); buf << TEXT << " took " << utils::os_TimeDiff(&t2,&t1)/1000.0 << " seconds." << std::endl; std::cout << buf.str(); }
void os_GetTime(os_TIME *time)
Definition Utils.h:47
struct timeval os_TIME
Definition Utils.h:44
int os_TimeDiff(os_TIME *time1, os_TIME *time2)
Definition Utils.h:57
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.
Definition threshold.h:41

Definition at line 32 of file Utils.h.