You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							32 lines
						
					
					
						
							768 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							32 lines
						
					
					
						
							768 B
						
					
					
				| #ifndef REJECTION_H | |
| #define REJECTION_H | |
|  | |
| #include <QObject> | |
| #include <QMetaType> | |
| #include "header/IProcessStrategy.h" | |
| #include "header/OpenCLHelper.h" | |
|  | |
| typedef struct Rejection_t | |
| { | |
| 	cl_int rejectThr; | |
| }Rejection_t; | |
| 
 | |
| class Rejection : public IProcessStrategy | |
| { | |
| 	Q_OBJECT | |
| public: | |
|    Q_INVOKABLE Rejection(const Context context, const QString kernelPath); | |
|    virtual void cpuProcess(ScenGenOutput_t parameters) override; | |
|    virtual void finalize() override; | |
|    virtual void ReadParams(QString path, ScenGenOutput_t *params) override; | |
| 
 | |
| 
 | |
| private: | |
|    KernelFunctor<Image2D, Image2D, Rejection_t> _kernelFunctor; | |
|    virtual Image* processKernel(Image *frames, Buffer* scratchPad) override; | |
|    Rejection_t _kernelParameters; | |
| 
 | |
|    double _rejectionThr; | |
| }; | |
| 
 | |
| #endif // REJECTION_H
 | |
| 
 |