/// <summary> /// Create a skin detector /// </summary> /// <returns>Skin detector</returns> public static SkinDetector CreateSkinDetector() { using (var s = ResourceManager.GetStream(ResourceKey.Skin)) { var detector = new SkinDetector(s); return(detector); } }
public SkeletonHandTracker(int width, int height, byte[] kinectParams) { this.width = width; this.height = height; playerMask = new Image <Gray, Byte>(width, height); HandMask = new Image <Gray, Byte>(width, height); alignedImg = new Image <Gray, Byte>(width, height); HandImage = new Image <Gray, Byte>(width, height); mapper = new CoordinateConverter(kinectParams, HandInputParams.ColorImageFormat, HandInputParams.DepthImageFormat); skinDetetor = new SkinDetector(width, height); HandBox = new MCvBox2D(); HandCandidates = new List <Rectangle>(); }