Fix build errors.
[platform/framework/native/vision.git] / src / FUixVision_ImageRecognizerImpl.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2013 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18
19 /**
20  * @file     FUixVision_ImageRecognizerImpl.h
21  * @brief    This is the header file for the %Tizen::Uix::_ImageRecognizerImpl class.
22  */
23
24
25 #ifndef _FUIX_VISION_INTERNAL_IMAGE_RECOGNIZER_IMPL_H_
26 #define _FUIX_VISION_INTERNAL_IMAGE_RECOGNIZER_IMPL_H_
27
28 #include <FUixVisionImageObject.h>
29 #include <FUixVisionImageRecognizer.h>
30 #include "ImageRecognizer.h"
31 #include "ImageFeatureManager.h"
32 #include <cstring>
33
34 namespace Tizen { namespace Uix { namespace Vision
35 {
36
37 static const int MAX_TRACKABLE_OBJECTS = 10;
38
39 class _ImageRecognizerImpl
40 {
41 public:
42     _ImageRecognizerImpl(void);
43     ~_ImageRecognizerImpl(void);
44
45     static        _ImageRecognizerImpl* GetInstance(ImageRecognizer& imageRecognizer);
46     static const _ImageRecognizerImpl* GetInstance(const ImageRecognizer& imageRecognizer);
47
48     void SetMultiTracking(bool useMultiTracking);
49     bool SetImageSize(unsigned int width, unsigned int height);
50     void SetSceneTransform(const float* left, const float* right);
51     bool SetImageDatabase(const Tizen::Uix::Vision::ImageFeatureManager* imgFMan);
52     int ProcessImage(const unsigned char* frame);
53     void FillObjectStorage(void);
54
55     const ImageObject* GetRecognizedObjectBegin(void) const;
56     const ImageObject* GetRecognizedObjectEnd(void) const;
57
58     int GetRecognizedObjectsCount(void);
59     const ImageObject* GetRecognizedObject(int index);
60
61 private:
62     _ImageRecognizerImpl(const _ImageRecognizerImpl&);
63     _ImageRecognizerImpl& operator=(const _ImageRecognizerImpl&);
64     ImageObject* __objectStorage;//[MAX_TRACKABLE_OBJECTS];
65     int __objectStorageSize;
66     sari2::ImageRecognizer      __imageRecognizer;
67     sari2::ImageFeatureManager  __featureManager;
68 };
69
70 } } } //Tizen::Uix::Vision
71
72 #endif //_FUIX_VISION_INTERNAL_IMAGE_RECOGNIZER_IMPL_H_