Mercurial > hg > svgui
comparison layer/Colour3DPlotExporter.h @ 1564:62b7699e5bfe spectrogram-export
Add option to export timestamp column
author | Chris Cannam |
---|---|
date | Fri, 10 Jan 2020 11:12:33 +0000 |
parents | d6f9fac336b3 |
children | a6a31908bd13 |
comparison
equal
deleted
inserted
replaced
1563:563bab925c9b | 1564:62b7699e5bfe |
---|---|
29 ModelId source; // always; a DenseThreeDimensionalModel | 29 ModelId source; // always; a DenseThreeDimensionalModel |
30 ModelId fft; // optionally; an FFTModel; used for phase/peak-freq modes | 30 ModelId fft; // optionally; an FFTModel; used for phase/peak-freq modes |
31 const LayerGeometryProvider *provider; // optionally | 31 const LayerGeometryProvider *provider; // optionally |
32 }; | 32 }; |
33 | 33 |
34 enum class TimestampFormat { | |
35 None, | |
36 Seconds, | |
37 Frames | |
38 }; | |
39 | |
34 struct Parameters { | 40 struct Parameters { |
35 Parameters() : | 41 Parameters() : |
36 binDisplay(BinDisplay::AllBins), | 42 binDisplay(BinDisplay::AllBins), |
37 scaleFactor(1.0), | 43 scaleFactor(1.0), |
38 threshold(0.0), | 44 threshold(0.0), |
39 gain(1.0), | 45 gain(1.0), |
40 normalization(ColumnNormalization::None) { } | 46 normalization(ColumnNormalization::None), |
47 timestampFormat(TimestampFormat::None) { } | |
41 | 48 |
42 /** Selection of bins to include in the export. */ | 49 /** Selection of bins to include in the export. */ |
43 BinDisplay binDisplay; | 50 BinDisplay binDisplay; |
44 | 51 |
45 /** Initial scale factor (e.g. for FFT scaling). This factor | 52 /** Initial scale factor (e.g. for FFT scaling). This factor |
61 | 68 |
62 /** Type of column normalization. Again, this is only used to | 69 /** Type of column normalization. Again, this is only used to |
63 * calculate thresholding level. The exported values are | 70 * calculate thresholding level. The exported values are |
64 * un-normalized. */ | 71 * un-normalized. */ |
65 ColumnNormalization normalization; | 72 ColumnNormalization normalization; |
73 | |
74 /** Format to use for the timestamp column. If None, no | |
75 * timestamp column will be included. */ | |
76 TimestampFormat timestampFormat; | |
66 }; | 77 }; |
67 | 78 |
68 Colour3DPlotExporter(Sources sources, Parameters parameters); | 79 Colour3DPlotExporter(Sources sources, Parameters parameters); |
69 ~Colour3DPlotExporter(); | 80 ~Colour3DPlotExporter(); |
70 | 81 |