25#include <vigra/windows.h>
32#define TIMETRACE(TEXT, CODE) { std::ostringstream buf; utils::os_TIME t1,t2; utils::os_GetTime(&t1); CODE; \
33 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)
unsigned long long getTotalMemory()
returns the total memory in byte
unsigned int GetPhysicalCPUCount()
return the number of physical cpu cores
int os_TimeDiff(os_TIME *time1, os_TIME *time2)
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.