PImageFilter.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 <PPluginInstance.h>
17 
18 PAPILLON_BEGIN_NAMESPACE
19 
22 
23 class PFrame;
24 class PImage;
25 class PPlugin;
26 class PProperties;
27 
34 class PAPILLON_API_CORE PImageFilter : public PPluginInstance
35 {
36 public:
42  static PResult Create(const PString& productName, const PProperties& parameters, PImageFilter& imageFilter);
43 
49  static PResult Create(const PPlugin& plugin, const PProperties& parameters, PImageFilter& imageFilter);
50 
54  PImageFilter();
55 
59  PImageFilter(const PImageFilter& other);
60 
64  virtual ~PImageFilter();
65 
69  PImageFilter& operator=(const PImageFilter& other);
70 
75  PResult Apply(const PImage& source, PImage& destination);
76 
82  PResult Apply(PFrame& frame);
83 };
84 
86 
87 
88 PAPILLON_END_NAMESPACE
PPluginInstance & operator=(const PPluginInstance &other)
Performs a shared copy of other to this object.
The PString class provides an Unicode character strings.
Definition: PString.h:37
The PFrame class represents any 2D-image (RGB, gray-scale, ...) with a container of additional data p...
Definition: PFrame.h:50
The PImage class represents a 2D-image; several pixel format and number of channels are supported (BG...
Definition: PImage.h:57
The PResult class represents the result returned by most of Papillon functions; this class is used to...
Definition: PResult.h:159
The PProperties class represents a container of properties; each property has a name (PString) and a ...
Definition: PProperties.h:38
The PPlugin class represents a Papillon plugin (input video source, detector, describer, ...); thread-safe.
Definition: PPlugin.h:45
The PImageFilter class represents an image filter.
Definition: PImageFilter.h:34
Class PPluginInstance: super class for PAnalytics, PDetector, PDescriber, etc.
The PPluginInstance class is the super class for PAnalytics, PDetector, PDescriber which handle the d...
PResult Create(const PPlugin &plugin, const PProperties &parameters, const PString &parametersPrefix)
Create an instance from the specified plugin with the specified parameters.