PFeatureRectangle.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2018 Digital Barriers plc. All rights reserved.
3  * Contact: http://www.digitalbarriers.com/
4  *
5  * This file is part of the Papillon SDK.
6  *
7  * You can't use, modify or distribute any part of this file without
8  * the explicit written agreements of Digital Barriers.
9  */
10 
15 #pragma once
16 #include <PObject.h>
17 
18 PAPILLON_BEGIN_NAMESPACE
19 
20 class PRectanglef;
21 
27 class PAPILLON_API_CORE PFeatureRectangle : public PObject
28 {
29 public:
34 
39 
44  PFeatureRectangle(const PRectanglef& rectangle, const PString& description, float confidence);
45 
49  virtual ~PFeatureRectangle();
50 
55 
60  bool operator==(const PFeatureRectangle& other) const;
61 
66  bool operator!=(const PFeatureRectangle& other) const;
67 
71  bool IsValid() const;
72 
77  const PRectanglef& GetRectangle() const;
78 
82  PString GetDescription() const;
83 
87  float GetConfidence() const;
88 };
89 
90 PAPILLON_END_NAMESPACE
The PString class provides an Unicode character strings.
Definition: PString.h:37
The PObject class is the root class of all Papillon classes; all PObject behaves like shared referenc...
Definition: PObject.h:27
The PFeatureRectangle class represents a sub-pixel accurate 2D area on an image; PFeatureRectangle in...
The PRectanglef class represents an axis-aligned rectangle with float coordinates; PRectanglef instan...
Definition: PRectanglef.h:34
Class PObject: the root class of all Papillon classes.
PObject & operator=(const PObject &obj)
Performs a shared copy of other to this object.
Definition: PObject.h:45