Time-frequency spectrogram QWidget rendering an Eigen matrix as a colour image. More...
#include <tfplot.h>
Public Types | |
| typedef QSharedPointer< TFplot > | SPtr |
| typedef QSharedPointer< const TFplot > | ConstSPtr |
Public Member Functions | |
| 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) | |
Protected Member Functions | |
| 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 ColorMaps enum entry; calc_plot() builds the cached QImage that subsequent paintEvents draw.

| typedef QSharedPointer<const TFplot> DISPLIB::TFplot::ConstSPtr |
| typedef QSharedPointer<TFplot> DISPLIB::TFplot::SPtr |
| TFplot::TFplot | ( | Eigen::MatrixXd | tf_matrix, |
| qreal | sample_rate, | ||
| qreal | lower_frq, | ||
| qreal | upper_frq, | ||
| ColorMaps | cmap = Jet ) |
Constructs TFplot class
| [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.
Constructs TFplot class
| [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 83 of file tfplot.cpp.
|
protected |
Calculates a image to plot the tf_matrix
| [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 92 of file tfplot.cpp.
|
protectedvirtual |
Definition at line 285 of file tfplot.cpp.