Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix a bug where the ROI is not computed properly #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vrabaud
Copy link

@vrabaud vrabaud commented Feb 14, 2013

@wjwwood
Copy link
Member

wjwwood commented Feb 14, 2013

I don't know what it does or if it works, but sounds good to me.

unsigned int width = right_x - left_x;
unsigned int height = bottom_y - top_y;
cam_->setRoi(left_x, top_y, width, height);
defineROI(x_offset_in, y_offset_in, width_in, height_in, sensor_width_, sensor_height_,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually, there could be a problem here: if req is bogus, it does not get modified thus crippling later code. Not sure of who sends it. Should it be modified ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants