PDetectionList.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 <PList.h>
17 
18 PAPILLON_BEGIN_NAMESPACE
19 
20 class PDetection;
21 class PSizei;
22 class PRectanglef;
23 
30 class PAPILLON_API_CORE PDetectionList : public PList
31 {
32 public:
36  PDetectionList(papillon::int32 size = 0);
37 
41  PDetectionList(const PDetectionList& other);
42 
46  virtual ~PDetectionList();
47 
52 
57  PDetection Get(papillon::int32 n) const;
58 
63  PDetection GetLargest() const;
64 
69  void RemoveSmallest(papillon::int32 minWidthBBox, papillon::int32 minHeightBBox, const PString& objectType);
70 
74  PRectanglef GetBoundingBox() const;
75 
81  void Keep(const PSizei& minBoundingBox, const PSizei& maxBoundingBox, const PString& objectType, papillon::int32 maxNumber = 0);
82 
86  void Translate(float x, float y);
87 };
88 
89 PAPILLON_END_NAMESPACE
90 
Class PList: an ordered collection (also known as a sequence) of heterogeneous Papillon objects...
The PString class provides an Unicode character strings.
Definition: PString.h:37
The PSizei class represents the size of an image or a rectangle: width (int) and height (int); PSizei...
Definition: PSizei.h:27
The PDetectionList class represents nothing more than a collection of detections (PDetection), Typically PDetectionList&#39;s are returned from a PDetector.
The PList class represents a generic container which handle an ordered collection of PObject; NOT thr...
Definition: PList.h:46
The PDetection class represents something that has been detected by a PDetector.
Definition: PDetection.h:61
PList & operator=(const PList &other)
Performs a shared copy of other to this object.
The PRectanglef class represents an axis-aligned rectangle with float coordinates; PRectanglef instan...
Definition: PRectanglef.h:34
PResult Get(papillon::int32 index, PObject &element) const
Gets the element at the specified index; the index must be valid.