Namespaces | Functions

/home/hauberg/Dokumenter/Capture/humim-tracker-0.1/src/ntk/utils/opencv_utils.cpp File Reference

#include "opencv_utils.h"
#include <opencv/highgui.h>
#include <opencv/cv.h>
#include <fstream>
#include <iostream>

Namespaces

namespace  ntk

Functions

cv::Mat4b ntk::toMat4b (const cv::Mat3b &im)
cv::Mat3b ntk::toMat3b (const cv::Mat4b &im)
void ntk::apply_mask (cv::Mat1b &im, const cv::Mat1b &mask)
void ntk::apply_mask (cv::Mat3b &im, const cv::Mat1b &mask)
void ntk::apply_mask (cv::Mat1f &im, const cv::Mat1b &mask)
void ntk::read_from_yaml (cv::FileNode node, bool &b)
void ntk::write_to_yaml (cv::FileStorage &output_file, const std::string &name, bool b)
void ntk::read_from_yaml (cv::FileNode node, int &i)
void ntk::write_to_yaml (cv::FileStorage &output_file, const std::string &name, int i)
void ntk::read_from_yaml (cv::FileNode node, double &b)
void ntk::write_to_yaml (cv::FileStorage &output_file, const std::string &name, double b)
void ntk::write_to_yaml (FileStorage &output_file, const std::string &name, const cv::Rect &r)
void ntk::read_from_yaml (FileNode node, cv::Rect &r)
void ntk::write_to_yaml (FileStorage &output_file, const std::string &name, const cv::Vec3f &v)
void ntk::write_to_yaml (FileStorage &output_file, const std::string &name, const cv::Vec2f &v)
void ntk::read_from_yaml (FileNode node, cv::Vec3f &v)
void ntk::read_from_yaml (FileNode node, cv::Vec2f &v)
void ntk::write_to_yaml (cv::FileStorage &output_file, const std::string &name, const cv::Mat &matrix)
void ntk::read_from_yaml (cv::FileNode node, cv::Mat &matrix)
void ntk::writeMatrix (FileStorage &output_file, const std::string &name, const cv::Mat &matrix)
void ntk::readMatrix (FileStorage &input_file, const std::string &name, cv::Mat &matrix)
void ntk::imwrite_yml (const std::string &filename, const cv::Mat &image)
cv::Mat1f ntk::imread_Mat1f_raw (const std::string &filename)
void ntk::imwrite_Mat1f_raw (const std::string &filename, const cv::Mat1f &m)
cv::Mat ntk::imread_yml (const std::string &filename)
cv::Mat3b ntk::toMat3b (const cv::Mat1b &image)
cv::Mat1b ntk::normalize_toMat1b (const cv::Mat1f &image)
void ntk::imwrite_normalized (const std::string &filename, const cv::Mat1f &image)
void ntk::imshow_normalized (const std::string &window_name, const cv::Mat1f &image)
double ntk::overlap_ratio (const cv::Rect_< float > &r1, const cv::Rect_< float > &r2)
void ntk::adjustRectToImage (cv::Rect &rect, const cv::Size &image_size)
ntk::Rect3f ntk::bounding_box (const std::vector< cv::Point3f > &points)