Commit 7053b7c8 authored by André Anjos's avatar André Anjos 💬

Add Cepstral class

parent 00b5e74a
This diff is collapsed.
......@@ -40,6 +40,9 @@ static PyObject* create_module (void) {
PyBobApSpectrogram_Type.tp_base = &PyBobApEnergy_Type;
if (PyType_Ready(&PyBobApSpectrogram_Type) < 0) return 0;
PyBobApCeps_Type.tp_base = &PyBobApSpectrogram_Type;
if (PyType_Ready(&PyBobApCeps_Type) < 0) return 0;
# if PY_VERSION_HEX >= 0x03000000
PyObject* m = PyModule_Create(&module_definition);
# else
......@@ -61,6 +64,9 @@ static PyObject* create_module (void) {
Py_INCREF(&PyBobApSpectrogram_Type);
if (PyModule_AddObject(m, "Spectrogram", (PyObject *)&PyBobApSpectrogram_Type) < 0) return 0;
Py_INCREF(&PyBobApCeps_Type);
if (PyModule_AddObject(m, "Ceps", (PyObject *)&PyBobApCeps_Type) < 0) return 0;
/* imports xbob.blitz C-API + dependencies */
if (import_xbob_blitz() < 0) return 0;
......
......@@ -11,6 +11,7 @@
#include <bob/ap/FrameExtractor.h>
#include <bob/ap/Energy.h>
#include <bob/ap/Spectrogram.h>
#include <bob/ap/Ceps.h>
/**
* Represents either an FrameExtractor
......@@ -42,4 +43,14 @@ typedef struct {
extern PyTypeObject PyBobApSpectrogram_Type; //forward declaration
/**
* Represents either the Ceps extractor
*/
typedef struct {
PyBobApSpectrogramObject parent;
bob::ap::Ceps* cxx;
} PyBobApCepsObject;
extern PyTypeObject PyBobApCeps_Type; //forward declaration
#endif /* XBOB_AP_TYPES_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment