public Cropping GetCropping() { Cropping cropping = new Cropping(); UInt32 status = OpenNIImporter.xnGetCropping(this.InternalObject, ref cropping); WrapperUtils.CheckStatus(status); return cropping; }
public void SetCropping(ref Cropping cropping) { UInt32 status = OpenNIImporter.xnSetCropping(this.InternalObject, ref cropping); WrapperUtils.CheckStatus(status); }
public override Rectangle SetROI(Rectangle newRoi) { Cropping croppingROI = new Cropping(); //roi.bEnabled = true; //roi.nXOffset = 1; //roi.nXSize = 640; //roi.nYOffset = 1; //roi.nYSize = 480; //ir.GetCroppingCap().SetCropping(ref roi); roi = newRoi; return roi; }
public override void ClearROI() { Cropping croppingROI = new Cropping(); //roi.bEnabled = true; //roi.nXOffset = 1; //roi.nXSize = 640; //roi.nYOffset = 1; //roi.nYSize = 480; //ir.GetCroppingCap().SetCropping(ref roi); }
public static extern XnStatus xnGetCropping(XnNodeHandle hInstance, ref Cropping pCropping);