Classes | Namespaces | Defines | Typedefs | Functions

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

#include <ntk/core.h>

Go to the source code of this file.

Classes

class  ntk::Rect3_< T >

Namespaces

namespace  ntk

Defines

#define for_all_rc(im)
#define for_all_drc(im)

Typedefs

typedef Rect3_< float > ntk::Rect3f

Functions

bool operator< (const cv::Point2i &p1, const cv::Point2i &p2)
ntk::Rect3f ntk::bounding_box (const std::vector< cv::Point3f > &points)
cv::Point2f ntk::box_center (const cv::Rect_< float > &bbox)
template<class ScalarType >
cv::Vec3d ntk::toVec3d (const cv::Mat_< ScalarType > &m)
template<class ScalarType >
cv::Vec2f ntk::toVec2f (const cv::Mat_< ScalarType > &m)
template<class ScalarType1 , class ScalarType2 >
void ntk::copyMatWithCast (cv::Mat_< ScalarType1 > &dest, const cv::Mat_< ScalarType2 > &src)
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, cv::Vec3f &v)
void ntk::write_to_yaml (cv::FileStorage &output_file, const std::string &name, const cv::Vec3f &v)
void ntk::read_from_yaml (cv::FileNode node, cv::Rect &v)
void ntk::write_to_yaml (cv::FileStorage &output_file, const std::string &name, const cv::Rect &v)
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::read_from_yaml (cv::FileNode node, cv::Mat &matrix)
void ntk::write_to_yaml (cv::FileStorage &output_file, const std::string &name, const cv::Mat &matrix)
void ntk::writeMatrix (cv::FileStorage &output_file, const std::string &name, const cv::Mat &matrix)
void ntk::readMatrix (cv::FileStorage &input_file, const std::string &name, cv::Mat &matrix)
cv::Mat1b ntk::normalize_toMat1b (const cv::Mat1f &image)
cv::Mat3b ntk::toMat3b (const cv::Mat1b &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)
void ntk::imwrite_yml (const std::string &filename, const cv::Mat &image)
cv::Mat ntk::imread_yml (const std::string &filename)
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::getCvByteImage (int width, int height)
cv::Mat ntk::getCvFloatImage (int width, int height)
cv::Mat ntk::getCvColorByteImage (int width, int height)
cv::Mat ntk::getCvColorFloatImage (int width, int height)
double ntk::overlap_ratio (const cv::Rect_< float > &r1, const cv::Rect_< float > &r2)
bool ntk::is_yx_in_range (const cv::Mat &image, int y, int x)
void ntk::normalize (cv::Vec3f &v)
cv::Vec3b ntk::bgr_to_rgb (const cv::Vec3b &v)
void ntk::adjustRectToImage (cv::Rect &rect, const cv::Size &image_size)

Define Documentation

#define for_all_drc (   im  ) 
Value:
for (int d = 0; d < (im).size[0]; ++d) \
  for (int r = 0; r < (im).size[1]; ++r) \
  for (int c = 0; c < (im).size[2]; ++c)
#define for_all_rc (   im  ) 
Value:
for (int r = 0; r < (im).rows; ++r) \
  for (int c = 0; c < (im).cols; ++c)

This file is part of the nestk library.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Author: Nicolas Burrus <nicolas.burrus@uc3m.es>, (C) 2010


Function Documentation

bool operator< ( const cv::Point2i &  p1,
const cv::Point2i &  p2 
) [inline]