Instrument Neutral Distributed Interface INDI  1.9.5
transforms.h
Go to the documentation of this file.
1 /*******************************************************************************
2  Copyright(c) 2017 Ilia Platone, Jasem Mutlaq. All rights reserved.
3 
4  DSP Transforms plugin
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License version 2 as published by the Free Software Foundation.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 *******************************************************************************/
20 
21 #pragma once
22 
23 #include "dspinterface.h"
24 #include "dsp.h"
25 
26 #include <string>
27 
28 namespace DSP
29 {
30 class FourierTransform : public Interface
31 {
32 public:
34 
35 protected:
37  uint8_t *Callback(uint8_t *out, uint32_t dims, int *sizes, int bits_per_sample) override;
38 };
39 
40 class InverseFourierTransform : public Interface
41 {
42 public:
44 
45 protected:
47  uint8_t *Callback(uint8_t *out, uint32_t dims, int *sizes, int bits_per_sample) override;
48 };
49 
50 class Spectrum : public Interface
51 {
52 public:
54 
55 protected:
56  ~Spectrum();
57  uint8_t *Callback(uint8_t *out, uint32_t dims, int *sizes, int bits_per_sample) override;
58 };
59 
60 class Histogram : public Interface
61 {
62 public:
64 
65 protected:
66  ~Histogram();
67  uint8_t *Callback(uint8_t *out, uint32_t dims, int *sizes, int bits_per_sample) override;
68 };
69 }
DSP::Interface
Definition: dspinterface.h:43
dsp.h
DSP::FourierTransform::FourierTransform
FourierTransform(INDI::DefaultDevice *dev)
Definition: transforms.cpp:51
DSP::FourierTransform::Callback
uint8_t * Callback(uint8_t *out, uint32_t dims, int *sizes, int bits_per_sample) override
Callback Called by processBLOB.
Definition: transforms.cpp:59
DSP::InverseFourierTransform::Callback
uint8_t * Callback(uint8_t *out, uint32_t dims, int *sizes, int bits_per_sample) override
Callback Called by processBLOB.
Definition: transforms.cpp:77
DSP::InverseFourierTransform::~InverseFourierTransform
~InverseFourierTransform()
Definition: transforms.cpp:73
dspinterface.h
DSP::Spectrum::~Spectrum
~Spectrum()
Definition: transforms.cpp:89
DSP::Histogram::~Histogram
~Histogram()
Definition: transforms.cpp:109
DSP::Histogram
Definition: transforms.h:78
DSP
The DSP Namespace adds signal processing to INDI drivers. Primarily written for sensors and detectors...
Definition: convolution.cpp:39
DSP::Histogram::Histogram
Histogram(INDI::DefaultDevice *dev)
Definition: transforms.cpp:105
DSP::FourierTransform::~FourierTransform
~FourierTransform()
Definition: transforms.cpp:55
DSP::Histogram::Callback
uint8_t * Callback(uint8_t *out, uint32_t dims, int *sizes, int bits_per_sample) override
Callback Called by processBLOB.
Definition: transforms.cpp:113
DSP::Spectrum::Callback
uint8_t * Callback(uint8_t *out, uint32_t dims, int *sizes, int bits_per_sample) override
Callback Called by processBLOB.
Definition: transforms.cpp:93
DSP::Spectrum::Spectrum
Spectrum(INDI::DefaultDevice *dev)
Definition: transforms.cpp:85
INDI::DefaultDevice
Class to provide extended functionality for devices in addition to the functionality provided by INDI...
Definition: defaultdevice.h:118
DSP::Spectrum
Definition: transforms.h:68
DSP::InverseFourierTransform::InverseFourierTransform
InverseFourierTransform(INDI::DefaultDevice *dev)
Definition: transforms.cpp:69