OdessaPCTestHelpers.FindDarkFramesHelper.SetCustomDetectionThreshold C# (CSharp) Method

SetCustomDetectionThreshold() public method

public SetCustomDetectionThreshold ( int thresholdIndividualPixelBrightness, int thresholdDarkPixelsPerFrameAsPercentage, int thresholdPixelScanPercentage, float thresholdSecondsSkip, float thresholdConsecutiveDarkFramesInSeconds ) : void
thresholdIndividualPixelBrightness int
thresholdDarkPixelsPerFrameAsPercentage int
thresholdPixelScanPercentage int
thresholdSecondsSkip float
thresholdConsecutiveDarkFramesInSeconds float
return void
        public void SetCustomDetectionThreshold(
            int thresholdIndividualPixelBrightness,
            int thresholdDarkPixelsPerFrameAsPercentage,
            int thresholdPixelScanPercentage,
            float thresholdSecondsSkip,
            float thresholdConsecutiveDarkFramesInSeconds
            )
        {
            NativeOdessaMethods.SetCustomDetectionThreshold(
                thresholdIndividualPixelBrightness,
                thresholdDarkPixelsPerFrameAsPercentage,
                thresholdPixelScanPercentage,
                thresholdSecondsSkip,
                thresholdConsecutiveDarkFramesInSeconds);
        }

Usage Example

 public void FindDarkFramesGideon_webcam_1()
 {
     using (findDarkFrames = new FindDarkFramesHelper())
     {
     #if DEBUG
         findDarkFrames.SetCustomDetectionThreshold(100, 75, 3, 0.35f, 1f);
     #endif
         FindDarkFramesHelper.TestResult tr = findDarkFrames.FindDarkFramesTest("Gideon_webcam.m4v.highlightObject.00.03.09.to.00.03.25.m4v");
         if (tr.Failed) Assert.Fail();
     }
 }
All Usage Examples Of OdessaPCTestHelpers.FindDarkFramesHelper::SetCustomDetectionThreshold