00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision$ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 #ifndef STEP6_H 00019 #define STEP6_H 00020 00021 //#include <qmainwindow.h> 00022 #include <QWidget> 00023 #include <mitkStandaloneDataStorage.h> 00024 #include <mitkImage.h> 00025 #include <mitkPointSet.h> 00026 00027 #include <itkImage.h> 00028 00029 #ifndef DOXYGEN_IGNORE 00030 00031 class QLineEdit; 00032 00033 class Step6 : public QWidget 00034 { 00035 Q_OBJECT 00036 public: 00037 Step6( int argc, char* argv[], QWidget *parent=0 ); 00038 ~Step6() {}; 00039 00040 virtual void Initialize(); 00041 00042 virtual int GetThresholdMin(); 00043 virtual int GetThresholdMax(); 00044 00045 protected: 00046 void Load(int argc, char* argv[]); 00047 virtual void SetupWidgets(); 00048 00049 template < typename TPixel, unsigned int VImageDimension > 00050 friend void RegionGrowing( itk::Image<TPixel, VImageDimension>* itkImage, Step6* step6); 00051 00052 mitk::StandaloneDataStorage::Pointer m_DataStorage; 00053 mitk::Image::Pointer m_FirstImage; 00054 mitk::PointSet::Pointer m_Seeds; 00055 00056 mitk::Image::Pointer m_ResultImage; 00057 mitk::DataNode::Pointer m_ResultNode; 00058 00059 QLineEdit *m_LineEditThresholdMin; 00060 QLineEdit *m_LineEditThresholdMax; 00061 00062 protected slots: 00063 virtual void StartRegionGrowing(); 00064 }; 00065 #endif // DOXYGEN_IGNORE 00066 00067 #endif // STEP6_H 00068