diff --git a/app/Operations/HoughOp.cpp b/app/Operations/HoughOp.cpp index d0eeafa4c4dc5fe750b43ec059493a04e07f67c8..04af2348da4857b3c5554376d73375acf7f0e8da 100644 --- a/app/Operations/HoughOp.cpp +++ b/app/Operations/HoughOp.cpp @@ -49,6 +49,7 @@ void HoughOp::operator()(const imagein::Image* img, const std::map<const imagein } else { angleStep = dialog->getAngleStep(); + distanceStep = dialog->getDistanceStep(); resImg = Transforms::hough2(img, dialog->getAngleStep(), dialog->getDistanceStep()); } outDoubleImage(resImg, qApp->translate("Hough", "Hough transform").toStdString(), true, true); diff --git a/app/Operations/HoughOp.h b/app/Operations/HoughOp.h index e8af83e9ef1939bfc6aeb52f2444f5a7b4de5c0d..06190cb6298e74537b38f5acb500569f387b0a92 100644 --- a/app/Operations/HoughOp.h +++ b/app/Operations/HoughOp.h @@ -32,10 +32,12 @@ public: bool needCurrentImg() const; double getAngleStep(){return angleStep;} + double getDistanceStep(){return distanceStep;} private: double angleStep; + double distanceStep; }; #endif // HOUGHOP_H diff --git a/core/Operation.cpp b/core/Operation.cpp index 2a6a3097da1c0a72643a0d94e4c09d5ac49ede52..c6b425d2d0db8a1b2e14ace161cc6f3489a06824 100644 --- a/core/Operation.cpp +++ b/core/Operation.cpp @@ -73,7 +73,7 @@ void GenericOperation::outDoubleImage(imagein::ImageDouble* img, string title, b DoubleImageWindow* wnd = new DoubleImageWindow(img, QString(), norm, log, logScale, abs); if(HoughOp* v = dynamic_cast<HoughOp*>(this)) { // teste si l'operation effectuee est une transformee de Hough - wnd->isHough(v->getAngleStep()); + wnd->isHough(v->getAngleStep(), v->getDistanceStep()); //isHough=true ce qui change les coordonnées des pixels de l'image pour correspondre au domaine de Hough } this->outImgWnd(wnd, title);