Small code cleanup

This commit is contained in:
lhark 2016-06-16 23:17:11 +02:00
parent 210b762ffe
commit 658cd286ba

View file

@ -87,21 +87,20 @@ class Traite_image {
pub_thres.publish(cv_bridge::CvImage(msg->header, "mono8", closed_thres).toImageMsg());
// bridge_input is handled by a smart-pointer. No explicit delete needed.
//droneTracking(Rect(Point(0,0), output.size()));
prevs.pop_back();
prevs.insert(prevs.begin(), next.clone());
}
//int to string helper function
string intToString(int number){
//this function has a number input and string output
std::stringstream ss;
ss << number;
return ss.str();
}
void stabiliseImg(cv::Mat prev, cv::Mat cur, cv::Mat &output){
cv::Mat cur_grey, prev_grey;
cv::cvtColor(cur, cur_grey, cv::COLOR_BGR2GRAY);