Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Plot widget for TBSS Data This widget can plot regions of interest on TBSS projection data. The projection data is created by importing FSL TBSS subject data and completing it with patient data using the QmitkTractbasedSpatialStatisticsView. The region of interest is a vector of indices from which data for plotting should be obtained. More...
#include <QmitkTbssRoiAnalysisWidget.h>
Public Member Functions | |
QmitkTbssRoiAnalysisWidget (QWidget *parent) | |
virtual | ~QmitkTbssRoiAnalysisWidget () |
void | SetGroups (std::vector< std::pair< std::string, int > > groups) |
void | DrawProfiles () |
void | PlotFiber4D (mitk::TbssImage::Pointer tbssImage, mitk::FiberBundle *fib, mitk::DataNode *startRoi, mitk::DataNode *endRoi, int number) |
template<typename T > | |
void | PlotFiberBundles (const mitk::PixelType, TractContainerType tracts, mitk::Image *img, bool avg=false) |
void | SetProjections (VectorImageType::Pointer projections) |
void | SetRoi (RoiType roi) |
void | SetStructure (std::string structure) |
void | SetMeasure (std::string measure) |
void | drawBar (int x) |
std::vector< std::vector< double > > | GetVals () |
std::vector< std::vector< double > > | GetIndividualProfiles () |
std::vector< double > | GetAverageProfile () |
void | SetPlottingFiber (bool b) |
bool | IsPlottingFiber () |
void | PlotFiberBetweenRois (mitk::FiberBundle *fib, mitk::Image *img, mitk::DataNode *startRoi, mitk::DataNode *endRoi, bool avg=-1, int number=25) |
mitk::Point3D | GetPositionInWorld (int index) |
void | ModifyPlot (int number, bool avg) |
Public Member Functions inherited from QmitkPlotWidget | |
QmitkPlotWidget (QWidget *parent=nullptr, const char *title=nullptr, const char *name=nullptr, Qt::WindowFlags f=nullptr) | |
virtual | ~QmitkPlotWidget () |
QwtPlot * | GetPlot () |
void | SetPlotTitle (const QwtText &qwt_title) |
void | SetPlotTitle (const char *title) |
unsigned int | InsertCurve (const char *title, QColor color=QColor(Qt::black)) |
void | SetAxisTitle (int axis, const char *title) |
bool | SetCurveData (unsigned int curveId, const DataVector &xValues, const DataVector &yValues) |
bool | SetCurveData (unsigned int curveId, const DataVector &xValues, const DataVector &yValues, const DataVector &yLowerError, const DataVector &yUpperError) |
Sets the data with errors for a previously added curve. More... | |
bool | SetCurveData (unsigned int curveId, const DataVector &xValues, const DataVector &yValues, const DataVector &xLowerError, const DataVector &xUpperError, const DataVector &yLowerError, const DataVector &yUpperError) |
Sets the data with errors for a previously added curve. More... | |
bool | SetCurveData (unsigned int curveId, const XYDataVector &data) |
void | SetCurvePen (unsigned int curveId, const QPen &pen) |
void | SetCurveBrush (unsigned int curveId, const QBrush &brush) |
void | SetCurveStyle (unsigned int curveId, const QwtPlotCurve::CurveStyle style) |
void | SetCurveSymbol (unsigned int curveId, QwtSymbol *symbol) |
void | SetCurveAntialiasingOn (unsigned int curveId) |
void | SetCurveAntialiasingOff (unsigned int curveId) |
void | SetCurveTitle (unsigned int curveId, const char *title) |
void | SetErrorPen (unsigned int curveId, const QPen &pen) |
void | SetErrorStyleSymbols (unsigned int curveId, bool drawSmybols) |
void | SetLegend (QwtLegend *legend, QwtPlot::LegendPosition pos=QwtPlot::RightLegend, double ratio=-1) |
void | SetLegendAttribute (unsigned int curveId, const QwtPlotCurve::LegendAttribute &attribute) |
void | Replot () |
void | Clear () |
Public Attributes | |
QwtPlotPicker * | m_PlotPicker |
Protected Member Functions | |
std::vector< std::vector< double > > | CalculateGroupProfiles () |
std::vector< std::vector< double > > | CalculateGroupProfilesFibers (mitk::TbssImage::Pointer tbssImage, mitk::FiberBundle *fib, mitk::DataNode *startRoi, mitk::DataNode *endRoi, int number) |
void | Plot (std::vector< std::vector< double > > groupProfiles) |
void | Tokenize (const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters=" ") |
TractContainerType | ParameterizeTracts (TractContainerType tracts, int number) |
void | DoPlotFiberBundles (mitk::FiberBundle *fib, mitk::Image *img, mitk::DataNode *startRoi, mitk::DataNode *endRoi, bool avg=false, int number=25) |
TractContainerType | CreateTracts (mitk::FiberBundle *fib, mitk::DataNode *startRoi, mitk::DataNode *endRoi) |
Protected Member Functions inherited from QmitkPlotWidget | |
double * | ConvertToRawArray (const DataVector &values) |
double * | ConvertToRawArray (const XYDataVector &values, unsigned int component) |
bool | AddErrorIntervalCurve (unsigned int curveId, const DataVector &lessError, const DataVector &moreError, bool isXError) |
Protected Attributes | |
mitk::FiberBundle * | m_Fib |
std::vector< std::vector< double > > | m_Vals |
std::vector< std::vector< double > > | m_IndividualProfiles |
std::vector< double > | m_Average |
std::vector< std::pair< std::string, int > > | m_Groups |
VectorImageType::Pointer | m_Projections |
RoiType | m_Roi |
std::string | m_Structure |
std::string | m_Measure |
bool | m_PlottingFiberBundle |
TractContainerType | m_CurrentTracts |
mitk::Image * | m_CurrentImage |
mitk::TbssImage * | m_CurrentTbssImage |
mitk::DataNode * | m_CurrentStartRoi |
mitk::DataNode * | m_CurrentEndRoi |
Protected Attributes inherited from QmitkPlotWidget | |
QwtPlot * | m_Plot |
std::vector< std::tuple< QwtPlotCurve *, QwtPlotIntervalCurve *, QwtPlotIntervalCurve * > > | m_PlotCurveVector |
Additional Inherited Members | |
Public Types inherited from QmitkPlotWidget | |
typedef double | ScalarType |
typedef std::vector< ScalarType > | DataVector |
typedef std::vector< std::pair< double, double > > | XYDataVector |
Plot widget for TBSS Data This widget can plot regions of interest on TBSS projection data. The projection data is created by importing FSL TBSS subject data and completing it with patient data using the QmitkTractbasedSpatialStatisticsView. The region of interest is a vector of indices from which data for plotting should be obtained.
Definition at line 45 of file QmitkTbssRoiAnalysisWidget.h.
QmitkTbssRoiAnalysisWidget::QmitkTbssRoiAnalysisWidget | ( | QWidget * | parent | ) |
Definition at line 27 of file QmitkTbssRoiAnalysisWidget.cpp.
References QmitkPlotWidget::m_Plot, m_PlotPicker, and m_PlottingFiberBundle.
|
virtual |
Definition at line 959 of file QmitkTbssRoiAnalysisWidget.cpp.
References m_PlotPicker.
|
protected |
Definition at line 536 of file QmitkTbssRoiAnalysisWidget.cpp.
References m_Groups, m_IndividualProfiles, m_Projections, m_Roi, and MITK_INFO.
Referenced by DrawProfiles().
|
protected |
Definition at line 694 of file QmitkTbssRoiAnalysisWidget.cpp.
References QmitkPlotWidget::Clear(), CreateTracts(), m_Groups, m_IndividualProfiles, m_Projections, and ParameterizeTracts().
Referenced by PlotFiber4D().
|
protected |
Definition at line 56 of file QmitkTbssRoiAnalysisWidget.cpp.
References mitk::FiberBundle::ExtractFiberSubset(), mitk::DataNode::GetData(), mitk::PlaneGeometry::GetNormal(), mitk::PlaneGeometry::IsAbove(), and max().
Referenced by CalculateGroupProfilesFibers(), and DoPlotFiberBundles().
|
protected |
Definition at line 39 of file QmitkTbssRoiAnalysisWidget.cpp.
References CreateTracts(), mitk::Image::GetImageDescriptor(), m_CurrentTracts, mitkPixelTypeMultiplex3, ParameterizeTracts(), and PlotFiberBundles().
Referenced by ModifyPlot(), and PlotFiberBetweenRois().
void QmitkTbssRoiAnalysisWidget::drawBar | ( | int | x | ) |
Definition at line 939 of file QmitkTbssRoiAnalysisWidget.cpp.
References QmitkPlotWidget::m_Plot, and QmitkPlotWidget::Replot().
void QmitkTbssRoiAnalysisWidget::DrawProfiles | ( | ) |
Definition at line 613 of file QmitkTbssRoiAnalysisWidget.cpp.
References CalculateGroupProfiles(), and Plot().
|
inline |
Definition at line 121 of file QmitkTbssRoiAnalysisWidget.h.
|
inline |
Definition at line 115 of file QmitkTbssRoiAnalysisWidget.h.
mitk::Point3D QmitkTbssRoiAnalysisWidget::GetPositionInWorld | ( | int | index | ) |
Definition at line 503 of file QmitkTbssRoiAnalysisWidget.cpp.
References m_CurrentTracts.
|
inline |
Definition at line 108 of file QmitkTbssRoiAnalysisWidget.h.
|
inline |
Definition at line 132 of file QmitkTbssRoiAnalysisWidget.h.
void QmitkTbssRoiAnalysisWidget::ModifyPlot | ( | int | number, |
bool | avg | ||
) |
Definition at line 406 of file QmitkTbssRoiAnalysisWidget.cpp.
References DoPlotFiberBundles(), m_CurrentEndRoi, m_CurrentImage, m_CurrentStartRoi, m_CurrentTbssImage, m_Fib, m_PlottingFiberBundle, and PlotFiber4D().
|
protected |
Definition at line 423 of file QmitkTbssRoiAnalysisWidget.cpp.
Referenced by CalculateGroupProfilesFibers(), and DoPlotFiberBundles().
|
protected |
Definition at line 619 of file QmitkTbssRoiAnalysisWidget.cpp.
References QmitkPlotWidget::Clear(), QmitkPlotWidget::InsertCurve(), m_Groups, m_Measure, QmitkPlotWidget::m_Plot, m_Structure, m_Vals, QmitkPlotWidget::Replot(), QmitkPlotWidget::SetCurveData(), QmitkPlotWidget::SetCurvePen(), QmitkPlotWidget::SetLegend(), and QmitkPlotWidget::SetPlotTitle().
Referenced by DrawProfiles(), and PlotFiber4D().
void QmitkTbssRoiAnalysisWidget::PlotFiber4D | ( | mitk::TbssImage::Pointer | tbssImage, |
mitk::FiberBundle * | fib, | ||
mitk::DataNode * | startRoi, | ||
mitk::DataNode * | endRoi, | ||
int | number | ||
) |
Definition at line 796 of file QmitkTbssRoiAnalysisWidget.cpp.
References CalculateGroupProfilesFibers(), m_CurrentEndRoi, m_CurrentStartRoi, m_CurrentTbssImage, m_Fib, m_PlottingFiberBundle, and Plot().
Referenced by ModifyPlot().
void QmitkTbssRoiAnalysisWidget::PlotFiberBetweenRois | ( | mitk::FiberBundle * | fib, |
mitk::Image * | img, | ||
mitk::DataNode * | startRoi, | ||
mitk::DataNode * | endRoi, | ||
bool | avg = -1 , |
||
int | number = 25 |
||
) |
Definition at line 387 of file QmitkTbssRoiAnalysisWidget.cpp.
References DoPlotFiberBundles(), m_CurrentEndRoi, m_CurrentImage, m_CurrentStartRoi, and m_Fib.
void QmitkTbssRoiAnalysisWidget::PlotFiberBundles | ( | const mitk::PixelType | ptype, |
TractContainerType | tracts, | ||
mitk::Image * | img, | ||
bool | avg = false |
||
) |
Definition at line 814 of file QmitkTbssRoiAnalysisWidget.cpp.
References QmitkPlotWidget::Clear(), mitk::Image::GetVolumeData(), QmitkPlotWidget::InsertCurve(), m_Average, m_IndividualProfiles, m_PlottingFiberBundle, QmitkPlotWidget::Replot(), QmitkPlotWidget::SetCurveData(), QmitkPlotWidget::SetCurvePen(), and QmitkPlotWidget::SetPlotTitle().
Referenced by DoPlotFiberBundles().
|
inline |
Definition at line 58 of file QmitkTbssRoiAnalysisWidget.h.
|
inline |
Definition at line 97 of file QmitkTbssRoiAnalysisWidget.h.
|
inline |
Definition at line 127 of file QmitkTbssRoiAnalysisWidget.h.
|
inline |
Definition at line 79 of file QmitkTbssRoiAnalysisWidget.h.
|
inline |
Definition at line 85 of file QmitkTbssRoiAnalysisWidget.h.
|
inline |
Definition at line 91 of file QmitkTbssRoiAnalysisWidget.h.
|
inlineprotected |
Definition at line 174 of file QmitkTbssRoiAnalysisWidget.h.
|
protected |
Definition at line 160 of file QmitkTbssRoiAnalysisWidget.h.
Referenced by PlotFiberBundles().
|
protected |
Definition at line 215 of file QmitkTbssRoiAnalysisWidget.h.
Referenced by ModifyPlot(), PlotFiber4D(), and PlotFiberBetweenRois().
|
protected |
Definition at line 211 of file QmitkTbssRoiAnalysisWidget.h.
Referenced by ModifyPlot(), and PlotFiberBetweenRois().
|
protected |
Definition at line 214 of file QmitkTbssRoiAnalysisWidget.h.
Referenced by ModifyPlot(), PlotFiber4D(), and PlotFiberBetweenRois().
|
protected |
Definition at line 212 of file QmitkTbssRoiAnalysisWidget.h.
Referenced by ModifyPlot(), and PlotFiber4D().
|
protected |
Definition at line 208 of file QmitkTbssRoiAnalysisWidget.h.
Referenced by DoPlotFiberBundles(), and GetPositionInWorld().
|
protected |
Definition at line 154 of file QmitkTbssRoiAnalysisWidget.h.
Referenced by ModifyPlot(), PlotFiber4D(), and PlotFiberBetweenRois().
|
protected |
Definition at line 194 of file QmitkTbssRoiAnalysisWidget.h.
Referenced by CalculateGroupProfiles(), CalculateGroupProfilesFibers(), and Plot().
|
protected |
Definition at line 159 of file QmitkTbssRoiAnalysisWidget.h.
Referenced by CalculateGroupProfiles(), CalculateGroupProfilesFibers(), and PlotFiberBundles().
|
protected |
Definition at line 199 of file QmitkTbssRoiAnalysisWidget.h.
Referenced by Plot().
QwtPlotPicker* QmitkTbssRoiAnalysisWidget::m_PlotPicker |
Definition at line 150 of file QmitkTbssRoiAnalysisWidget.h.
Referenced by QmitkTbssRoiAnalysisWidget(), and ~QmitkTbssRoiAnalysisWidget().
|
protected |
Definition at line 201 of file QmitkTbssRoiAnalysisWidget.h.
Referenced by ModifyPlot(), PlotFiber4D(), PlotFiberBundles(), and QmitkTbssRoiAnalysisWidget().
|
protected |
Definition at line 196 of file QmitkTbssRoiAnalysisWidget.h.
Referenced by CalculateGroupProfiles(), and CalculateGroupProfilesFibers().
|
protected |
Definition at line 197 of file QmitkTbssRoiAnalysisWidget.h.
Referenced by CalculateGroupProfiles().
|
protected |
Definition at line 198 of file QmitkTbssRoiAnalysisWidget.h.
Referenced by Plot().
|
protected |
Definition at line 157 of file QmitkTbssRoiAnalysisWidget.h.
Referenced by Plot().