licornea_tools
Namespaces | Typedefs | Functions
json.h File Reference
#include <json.hpp>
#include <string>
#include "common.h"
#include "args.h"

Go to the source code of this file.

Namespaces

 tlz
 

Typedefs

using tlz::json = nlohmann::json
 

Functions

void tlz::export_json_file (const json &j, const std::string &filename, bool compact)
 
json tlz::import_json_file (const std::string &filename)
 
cv::Mat_< real > tlz::decode_mat (const json &j)
 
json tlz::encode_mat_ (const cv::Mat_< real > &mat)
 
template<typename Mat >
json tlz::encode_mat (const Mat &mat)
 
bool tlz::has (const json &j, const std::string &key)
 
template<typename T >
tlz::get_or (const json &j, const std::string &key, const T &default_value)
 
json tlz::json_arg ()