Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try{
- //let's pretend to set some odd width
- int desired_w = 1003;
- CIntegerParameter width(camera.GetNodeMap(), "Width");
- cout << "Width increment is equal to: " << width.GetInc() << endl;
- width.TrySetValue(desired_w, IntegerValueCorrection_Nearest);
- cout << "Width has been set to: " << width.GetValue() << endl;
- }
- catch (Pylon::RuntimeException e)
- {
- cout << "Hmm, something went wrong..." << endl;
- cout << e.what() << endl;
- cout << e.GetDescription() << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement