Time-frequency spectrogram QWidget rendering an Eigen matrix as a colour image.
More...
#include <tfplot.h>
|
| | TFplot (Eigen::MatrixXd tf_matrix, qreal sample_rate, qreal lower_frq, qreal upper_frq, ColorMaps cmap) |
| | TFplot (Eigen::MatrixXd tf_matrix, qreal sample_rate, ColorMaps cmap) |
|
| void | calc_plot (Eigen::MatrixXd tf_matrix, qreal sample_rate, ColorMaps cmap, qreal lower_frq, qreal upper_frq) |
| virtual void | resizeEvent (QResizeEvent *event) |
Time-frequency spectrogram QWidget rendering an Eigen matrix as a colour image.
Two constructors accept either a full or a frequency-cropped MatrixXd spectrogram together with a sample rate and a DISPLIB::ColorMaps "ColorMaps" enum entry; calc_plot() builds the cached QImage that subsequent paintEvents draw.
Definition at line 82 of file tfplot.h.
◆ ConstSPtr
Const shared pointer type for TFplot class.
Definition at line 88 of file tfplot.h.
◆ SPtr
◆ TFplot() [1/2]
| TFplot::TFplot |
( |
Eigen::MatrixXd | tf_matrix, |
|
|
qreal | sample_rate, |
|
|
qreal | lower_frq, |
|
|
qreal | upper_frq, |
|
|
ColorMaps | cmap = Jet ) |
Constructs TFplot class
- Parameters
-
| [in] | tf_matrix | given spectrogram. |
| [in] | sample_rate | given sample rate of signal related to th spectrogram. |
| [in] | lower_frq | lower bound frequency, that should be plotted. |
| [in] | upper_frq | upper bound frequency, that should be plotted. |
| [in] | cmap | colormap used to plot the spectrogram. |
Definition at line 46 of file tfplot.cpp.
◆ TFplot() [2/2]
| TFplot::TFplot |
( |
Eigen::MatrixXd | tf_matrix, |
|
|
qreal | sample_rate, |
|
|
ColorMaps | cmap = Jet ) |
Constructs TFplot class
- Parameters
-
| [in] | tf_matrix | given spectrogram. |
| [in] | sample_rate | given sample rate of signal related to th spectrogram. |
| [in] | cmap | colormap used to plot the spectrogram. |
Definition at line 85 of file tfplot.cpp.
◆ calc_plot()
| void TFplot::calc_plot |
( |
Eigen::MatrixXd | tf_matrix, |
|
|
qreal | sample_rate, |
|
|
ColorMaps | cmap, |
|
|
qreal | lower_frq = 0, |
|
|
qreal | upper_frq = 0 ) |
|
protected |
Calculates a image to plot the tf_matrix
- Parameters
-
| [in] | tf_matrix | given spectrogram. |
| [in] | sample_rate | given sample rate of signal related to th spectrogram. |
| [in] | cmap | colormap used to plot the spectrogram. |
| [in] | lower_frq | lower bound frequency, that should be plotted. |
| [in] | upper_frq | upper bound frequency, that should be plotted. |
Definition at line 94 of file tfplot.cpp.
◆ resizeEvent()
| void TFplot::resizeEvent |
( |
QResizeEvent * | event | ) |
|
|
protectedvirtual |
The documentation for this class was generated from the following files: