did some cropping
This commit is contained in:
parent
cb55c6dcd3
commit
eec5302db0
1 changed files with 4 additions and 1 deletions
|
@ -65,7 +65,10 @@ class Traite_image {
|
|||
|
||||
Mat next_stab;
|
||||
stabiliseImg(prev, next, next_stab);
|
||||
searchForMovement(prev, next_stab, output);
|
||||
Rect myROI(next_stab.size().width/4, next_stab.size().height/4, next_stab.size().width/2, next_stab.size().height/2);
|
||||
Mat next_stab_cropped = next_stab(myROI);
|
||||
Mat prev_cropped = prev(myROI);
|
||||
searchForMovement(prev_cropped, next_stab_cropped, output);
|
||||
|
||||
|
||||
pub.publish(cv_bridge::CvImage(msg->header, "rgb8", output).toImageMsg());
|
||||
|
|
Loading…
Reference in a new issue