root/samples/winrt/FaceDetection/FaceDetection/MainPage.xaml.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


//
// MainPage.xaml.h
// Declaration of the MainPage class.
//

#pragma once

#include "MainPage.g.h"
#include <opencv2\core\core.hpp>
#include <opencv2\objdetect.hpp>


namespace FaceDetection
{
    /// <summary>
    /// An empty page that can be used on its own or navigated to within a Frame.
    /// </summary>
    public ref class MainPage sealed
    {
    public:
        MainPage();

    private:
        void InitBtn_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
        void detectBtn_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);

    private:
        cv::Mat groupFaces;
        void UpdateImage(const cv::Mat& image);
        cv::CascadeClassifier face_cascade;
    };

/* [<][>][^][v][top][bottom][index][help] */