X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvToolSegmentation.h;h=25bf6d018ba19ae57c943ed0c6564c7034671021;hb=441099a730f593b2226f400afef8c756b05efc69;hp=accdd526c32306fad2e0c9267c57bd412dd617a4;hpb=0fb2ed54dd57b161e88b6f378f039382f2577e51;p=clitk.git diff --git a/vv/vvToolSegmentation.h b/vv/vvToolSegmentation.h index accdd52..25bf6d0 100644 --- a/vv/vvToolSegmentation.h +++ b/vv/vvToolSegmentation.h @@ -18,6 +18,7 @@ #ifndef VVTOOLSEGMENTATION_H #define VVTOOLSEGMENTATION_H +#include #include #include "vvToolBase.h" @@ -42,6 +43,7 @@ class vvToolSegmentation: static void Initialize(); virtual void InputIsSelected(vvSlicerManager * m); void OpenBinaryImage(); + void RegionGrowing(); void Erode(); void Dilate(); void Labelize(); @@ -52,15 +54,11 @@ class vvToolSegmentation: //----------------------------------------------------- public slots: virtual void apply(); - // bool eventFilter(QObject *object, QEvent *event); void KeyPressed(std::string KeyPress); virtual bool close(); virtual void MousePositionChanged(int slicer); - // virtual void keyPressEvent(QKeyEvent * event); - // virtual void reject(); protected: - // virtual void closeEvent(QCloseEvent *event); Ui::vvToolSegmentation ui; QSharedPointer mRefMaskActor; QSharedPointer mCurrentMaskActor; @@ -76,6 +74,8 @@ class vvToolSegmentation: QSharedPointer CreateMaskActor(vvImage::Pointer image, int i, int colorID, bool BGMode=false); double mCurrentLabelUnderMousePointer; + std::vector mCurrentMousePositionInMM; + //std::vector mCurrentMousePositionInPixel; double GetBackgroundValue() { return 0; } double GetForegroundValue() { return 1; } long ComputeNumberOfPixels(vvImage::Pointer image, double value);