stereo-vision
All Data Structures Namespaces Functions Modules Pages
descriptor.h
1 /*
2 Copyright 2011. All rights reserved.
3 Institute of Measurement and Control Systems
4 Karlsruhe Institute of Technology, Germany
5 
6 This file is part of libelas.
7 Authors: Andreas Geiger
8 
9 libelas is free software; you can redistribute it and/or modify it under the
10 terms of the GNU General Public License as published by the Free Software
11 Foundation; either version 3 of the License, or any later version.
12 
13 libelas is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
15 PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 
17 You should have received a copy of the GNU General Public License along with
18 libelas; if not, write to the Free Software Foundation, Inc., 51 Franklin
19 Street, Fifth Floor, Boston, MA 02110-1301, USA
20 */
21 
22 // NOTE: This descripter is a sparse approximation to the 50-dimensional
23 // descriptor described in the paper. It produces similar results, but
24 // is faster to compute.
25 
26 #ifndef __DESCRIPTOR_H__
27 #define __DESCRIPTOR_H__
28 
29 #include <iostream>
30 #include <stdio.h>
31 #include <string.h>
32 #include <stdlib.h>
33 #include <math.h>
34 #include <stdint.h>
35 
36 class Descriptor {
37 
38 public:
39 
40  // constructor creates filters
41  Descriptor(uint8_t* I,int32_t width,int32_t height,int32_t bpl,bool half_resolution);
42 
43  // deconstructor releases memory
44  ~Descriptor();
45 
46  // descriptors accessible from outside
47  uint8_t* I_desc;
48 
49 private:
50 
51  // build descriptor I_desc from I_du and I_dv
52  void createDescriptor(uint8_t* I_du,uint8_t* I_dv,int32_t width,int32_t height,int32_t bpl,bool half_resolution);
53 
54 };
55 
56 #endif