private void Initialize() { //HandShapeClassifier.GetSingleton(); m_OpenCVController = OpenCVController.GetSingletonInstance(); m_VideoProcessor = VideoProcessor.GetSingletonInstance(); this.sld_progress.DataContext = VisualData.GetSingleton(); this.img_color.Source = m_VideoProcessor.ColorWriteBitmap; this.img_depth.Source = m_VideoProcessor.DepthWriteBitmap; this.img_leftFront.Source = m_VideoProcessor.WrtBMP_LeftHandFront; this.img_rightFront.Source = m_VideoProcessor.WrtBMP_RightHandFront; string path = @"F:\Aaron\1-250"; //m_VideoProcessor.OpenDir(@"D:\Kinect data\newdata\HKG_001_a_0001 Aaron 22"); }
protected VideoProcessor() { m_opencv = OpenCVController.GetSingletonInstance(); viewer = new ImageViewer(); vs = VisualData.GetSingleton(); viewer.Show(); this.ColorWriteBitmap = new WriteableBitmap(FrameWidth, FrameHeight, 96.0, 96.0, System.Windows.Media.PixelFormats.Bgr24, null); this.DepthWriteBitmap = new WriteableBitmap(FrameWidth, FrameHeight, 96.0, 96.0, System.Windows.Media.PixelFormats.Bgr24, null); this.WrtBMP_RightHandFront = new WriteableBitmap(handShapeWidth, handShapeHeight, 96.0, 96.0, System.Windows.Media.PixelFormats.Gray8, null); this.WrtBMP_LeftHandFront = new WriteableBitmap(handShapeWidth, handShapeHeight, 96.0, 96.0, System.Windows.Media.PixelFormats.Gray8, null); rightHandPosition = new System.Drawing.Point(); }
public static OpenCVController GetSingletonInstance() { return singletonInstance ?? (singletonInstance = new OpenCVController()); }
protected KinectController() { m_OpenCVController = OpenCVController.GetSingletonInstance(); }
private HandShapeClassifier() { m_OpenCVController = OpenCVController.GetSingletonInstance(); InitializeAllGestureFromData(); }