Human-human interaction Human-object interaction Human-computer interaction
Also known as HCI User interface – A place where interaction between humans & machines occurs Types – Command-line interface – Graphical user interface – Natural user interface
DosUnix
8
SCM-CityU 10Spring 2012
Four microphone array with hardware-based audio processing – Multichannel echo cancellation (MEC) – Sound position tracking – Other digital signal processing (noise suppression and reduction)
Start New Windows Presentation Foundation Project Add a reference to: using Microsoft.Kinect;
newSensor.ColorStream.Enable(ColorImageFormat.RgbResolut ion640x480Fps30); newSensor.ColorFrameReady += newSensor_ColorFrameReady;
using (ColorImageFrame colorFrame = e.OpenColorImageFrame()) { if (colorFrame != null) { // Copy the pixel data from the image to a temporary array colorFrame.CopyPixelDataTo(this.colorPixels); // Write the pixel data into our bitmap this.colorBitmap.WritePixels( new Int32Rect(0, 0, this.colorBitmap.PixelWidth, this.colorBitmap.PixelHeight), this.colorPixels, this.colorBitmap.PixelWidth * sizeof(int), 0); } imgKinect.Source = colorBitmap;
void newSensor_SkeletonFrameReady(object sender, SkeletonFrameReadyEvent Args e) { using (SkeletonFrame skeletonFrameData = e.OpenSkeletonFrame()) { if (skeletonFrameData != null) { skeletonFrameData.CopySkeletonDataTo(allSkeletons); Skeleton first = (from s in allSkeletons where s.TrackingState == SkeletonTrackingState.Tracked select s).FirstOrDefault(); //if(first!=null) //this.Title=(first.Joints[JointType.Head].Position.X.ToString()); } } }