Small code cleanup
This commit is contained in:
parent
210b762ffe
commit
658cd286ba
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue