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