internal CVConnectedComp(ref __CvConnectedComp input) { area = input.area; avgColor = CVUtils.ScalarToColor(input.value); rect = new System.Drawing.Rectangle(input.rect.x, input.rect.y, input.rect.width, input.rect.height); contour = input.contour; }