"src/test/git@gitlab.utu.fi:maoksa/vko3_harj3.git" did not exist on "db95c0b86cd575342f171d8e225d78601572c81a"
Newer
Older
/**
* @file channelUtils.hpp
* @copyright Copyright (c) 2020 University of Turku, MIT License
* @author Nicolas Pope
*/
#include <ftl/protocol/channels.hpp>
namespace ftl {
namespace protocol {
inline bool isVideo(Channel c) { return static_cast<int>(c) < 32; }
inline bool isAudio(Channel c) { return static_cast<int>(c) >= 32 && static_cast<int>(c) < 64; }
inline bool isData(Channel c) { return static_cast<int>(c) >= 64; }
/** Obtain a string name for channel. */
std::string name(Channel c);
/** Obtain OpenCV type for channel. */
int type(Channel c);
/** @deprecated */
inline bool isFloatChannel(ftl::protocol::Channel chan) {
case Channel::kGroundTruth :
case Channel::kDepth :
case Channel::kConfidence :
case Channel::kFlow :
case Channel::kDensity :
case Channel::kEnergy : return true;
} // namespace protocol
} // namespace ftl