zmaxheap.hpp
Go to the documentation of this file.
1 // This file is part of OpenCV project.
2 // It is subject to the license terms in the LICENSE file found in the top-level directory
3 // of this distribution and at http://opencv.org/license.html.
4 //
5 // Copyright (C) 2013-2016, The Regents of The University of Michigan.
6 //
7 // This software was developed in the APRIL Robotics Lab under the
8 // direction of Edwin Olson, ebolson@umich.edu. This software may be
9 // available under alternative licensing terms; contact the address above.
10 //
11 // The views and conclusions contained in the software and documentation are those
12 // of the authors and should not be interpreted as representing official policies,
13 // either expressed or implied, of the Regents of The University of Michigan.
14 #ifndef _OPENCV_ZMAXHEAP_HPP_
15 #define _OPENCV_ZMAXHEAP_HPP_
16 
17 #include <stdlib.h>
18 #include <string.h>
19 #include <math.h>
20 
21 namespace cv {
22 namespace aruco {
23 typedef struct zmaxheap zmaxheap_t;
24 
28  int in, out;
29 };
30 
31 zmaxheap_t *zmaxheap_create(size_t el_sz);
32 
34 
35 void zmaxheap_add(zmaxheap_t *heap, void *p, float v);
36 
37 // returns 0 if the heap is empty, so you can do
38 // while (zmaxheap_remove_max(...)) { }
39 int zmaxheap_remove_max(zmaxheap_t *heap, void *p, float *v);
40 
41 }}
42 #endif
zmaxheap_t * zmaxheap_create(size_t el_sz)
Definition: zmaxheap.cpp:71
Definition: charuco.hpp:47
int zmaxheap_remove_max(zmaxheap_t *heap, void *p, float *v)
Definition: zmaxheap.cpp:203
void zmaxheap_add(zmaxheap_t *heap, void *p, float v)
Definition: zmaxheap.cpp:113
void zmaxheap_destroy(zmaxheap_t *heap)
Definition: zmaxheap.cpp:84


aruco_pose
Author(s): Oleg Kalachev
autogenerated on Mon Feb 28 2022 22:08:24