Sha256: 8749a9e6256fe9cfa8d5ebde435fa281dad0ff757bf020baa315a52cd60cbd26

Contents?: true

Size: 1.02 KB

Versions: 13

Compression:

Stored size: 1.02 KB

Contents

// Copyright (C) 2012  Davis E. King (davis@dlib.net)
// License: Boost Software License   See LICENSE.txt for the full license.
#undef DLIB_TO_OPEN_Cv_ABSTRACTh_
#ifdef DLIB_TO_OPEN_Cv_ABSTRACTh_

#include <opencv2/core/core.hpp>
#include "../pixel.h"

namespace dlib
{
    template <
        typename image_type
        >
    cv::Mat toMat (
        image_type& img
    );
    /*!
        requires
            - image_type == an image object that implements the interface defined in
              dlib/image_processing/generic_image.h or a dlib::matrix object which uses a
              row_major_layout.
            - pixel_traits is defined for the contents of img.
        ensures
            - returns an OpenCV Mat object which represents the same image as img.  This
              is done by setting up the Mat object to point to the same memory as img.
              Therefore, the returned Mat object is valid only as long as pointers
              to the pixels in img remain valid.
    !*/
}

#endif // DLIB_TO_OPEN_Cv_ABSTRACTh_



Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
dlib-1.2.2 ext/dlib-19.4/dlib/opencv/to_open_cv_abstract.h
dlib-1.2.1 ext/dlib-19.4/dlib/opencv/to_open_cv_abstract.h
dlib-1.2.0 ext/dlib-19.4/dlib/opencv/to_open_cv_abstract.h
dlib-1.1.5 ext/dlib-19.4/dlib/opencv/to_open_cv_abstract.h
dlib-1.1.4 ext/dlib-19.4/dlib/opencv/to_open_cv_abstract.h
dlib-1.1.3 ext/dlib-19.4/dlib/opencv/to_open_cv_abstract.h
dlib-1.1.2 ext/dlib-19.4/dlib/opencv/to_open_cv_abstract.h
dlib-1.1.1 ext/dlib-19.4/dlib/opencv/to_open_cv_abstract.h
dlib-1.1.0 ext/dlib-19.4/dlib/opencv/to_open_cv_abstract.h
dlib-1.0.3 ext/dlib-18.13/dlib/opencv/to_open_cv_abstract.h
dlib-1.0.2 ext/dlib-18.13/dlib/opencv/to_open_cv_abstract.h
dlib-1.0.1 ext/dlib-18.13/dlib/opencv/to_open_cv_abstract.h
dlib-1.0.0 ext/dlib-18.13/dlib/opencv/to_open_cv_abstract.h