Пример #1
0
 public Cropping GetCropping()
 {
     Cropping cropping = new Cropping();
     UInt32 status = OpenNIImporter.xnGetCropping(this.InternalObject, ref cropping);
     WrapperUtils.CheckStatus(status);
     return cropping;
 }
Пример #2
0
 public void SetCropping(ref Cropping cropping)
 {
     UInt32 status = OpenNIImporter.xnSetCropping(this.InternalObject, ref cropping);
     WrapperUtils.CheckStatus(status);
 }
Пример #3
0
        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;
        }
Пример #4
0
        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);
        }
Пример #5
0
 public static extern XnStatus xnGetCropping(XnNodeHandle hInstance, ref Cropping pCropping);