Skip to content
Snippets Groups Projects
Commit 704cdef6 authored by Bigot Quentin's avatar Bigot Quentin
Browse files

improve hough display

parent f839d6ef
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -32,10 +32,12 @@ public:
bool needCurrentImg() const;
double getAngleStep(){return angleStep;}
double getDistanceStep(){return distanceStep;}
private:
double angleStep;
double distanceStep;
};
#endif // HOUGHOP_H
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment