riCOM_cpp
This repository contains the C++ implementation of the riCOM (Real Time Centre Of Mass) algorithm for 4D Scanning electron microscopy.
Loading...
Searching...
No Matches
Functions
ImGuiImageWindow.cpp File Reference
#include "ImGuiImageWindow.h"
Include dependency graph for ImGuiImageWindow.cpp:

Go to the source code of this file.

Functions

template<typename T >
pw (T val, T power)
 
GIM_Flags operator| (GIM_Flags lhs, GIM_Flags rhs)
 
GIM_Flags operator& (GIM_Flags lhs, GIM_Flags rhs)
 

Function Documentation

◆ operator&()

GIM_Flags operator& ( GIM_Flags  lhs,
GIM_Flags  rhs 
)

Definition at line 49 of file ImGuiImageWindow.cpp.

50{
51 return static_cast<GIM_Flags>(
52 static_cast<std::underlying_type_t<GIM_Flags>>(lhs) &
53 static_cast<std::underlying_type_t<GIM_Flags>>(rhs));
54}
GIM_Flags

◆ operator|()

GIM_Flags operator| ( GIM_Flags  lhs,
GIM_Flags  rhs 
)

Definition at line 42 of file ImGuiImageWindow.cpp.

43{
44 return static_cast<GIM_Flags>(
45 static_cast<std::underlying_type_t<GIM_Flags>>(lhs) |
46 static_cast<std::underlying_type_t<GIM_Flags>>(rhs));
47}

◆ pw()

template<typename T >
T pw ( val,
power 
)
inline

Definition at line 35 of file ImGuiImageWindow.cpp.

36{
37 return copysign(1.0, val) * pow(abs(val), power);
38}