Opencv learning notes (2) -- cvcreatetrackbar

Source: Internet
Author: User

Int cvcreatetrackbar (

Const char * trackbar_name, // The name of the slider

Const char * window_name, // window name. The slider does not block the image.

Int * value, // when the slider is dragged, opencv will automatically pass the value represented by the current position to the integer pointed to by the pointer

Int count, // maximum value that a slider can reach

Cvtrackbarcallback on_change // optional callback function. For the callback function, see http://wapedia.mobi/zhtrad/callback function.

);

 

The highgui library of opencv provides two functions to read and set the value of the scroll bar.

// Read the value

Int cvgettrackbarpos (

Const char * trackbar_name,

Cosnt char * window_name

);

// Set the value

Void cvsettrackbarpos (

Const char * trackbar_name,

Const char * window_name,

Int POS

);

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.