This figure explains new functionality implemented with WinRT GUI. The new GUI provides an Image control, and a slider panel. Slider panel holds trackbars attached to it.
Sliders are attached below the image control. Every new slider is added below the previous one.
void sample_app::MainPage::ShowWindow()
{
int state = 42;
{
if (pos == 0) {
}
};
{
if (pos >= 70) {
}
};
}
n-dimensional dense array class
Definition mat.hpp:951
int cols
Definition mat.hpp:2425
int rows
the number of rows and columns or (-1, -1) when the matrix has more than 2 dimensions
Definition mat.hpp:2425
std::string String
Definition cvstd.hpp:151
#define CV_8UC4
Definition interface.h:102
void winrt_initContainer(::Windows::UI::Xaml::Controls::Panel^ container)
Initializes container component that will be used to hold generated window content.
void(* TrackbarCallback)(int pos, void *userdata)
Callback function for Trackbar see cv::createTrackbar.
Definition highgui.hpp:235
void imshow(const String &winname, InputArray mat)
Displays an image in the specified window.
void namedWindow(const String &winname, int flags=WINDOW_AUTOSIZE)
Creates a window.
void destroyAllWindows()
Destroys all of the HighGUI windows.
void destroyWindow(const String &winname)
Destroys the specified window.
int createTrackbar(const String &trackbarname, const String &winname, int *value, int count, TrackbarCallback onChange=0, void *userdata=0)
Creates a trackbar and attaches it to the specified window.
CV_EXPORTS_W Mat imread(const String &filename, int flags=IMREAD_COLOR_BGR)
Loads an image from a file.
void cvtColor(InputArray src, OutputArray dst, int code, int dstCn=0, AlgorithmHint hint=cv::ALGO_HINT_DEFAULT)
Converts an image from one color space to another.
@ COLOR_BGR2BGRA
add alpha channel to RGB or BGR image
Definition imgproc.hpp:541