MCPcopy Create free account
hub / github.com/colmap/colmap / BitmapColorCast

Function BitmapColorCast

src/colmap/sensor/bitmap.h:219–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217
218template <typename T1, typename T2>
219T2 BitmapColorCast(const T1 value) {
220 return std::min(static_cast<T1>(std::numeric_limits<T2>::max()),
221 std::max(static_cast<T1>(std::numeric_limits<T2>::min()),
222 std::round(value)));
223}
224
225} // namespace internal
226

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected