Exemple #1
0
        public BitmapComparer(CompareOptions options = null)
        {
            if (options == null)
            {
                options = new CompareOptions();
            }
            Initialize(options);

            BitmapAnalyzer        = BitmapAnalyzerFactory.Create(AnalyzerType, JustNoticeableDifference);
            Labeler               = LabelerFactory.Create(LabelerType, DetectionPadding);
            BoundingBoxIdentifier = BoundingBoxIdentifierFactory.Create(BoundingBoxMode, BoundingBoxPadding);
        }
Exemple #2
0
        public void FactoryCreatesMultipleBoundingBoxIdentifier()
        {
            var target = BoundingBoxIdentifierFactory.Create(BoundingBoxModes.Multiple, 0);

            Assert.IsInstanceOf(typeof(MultipleBoundingBoxIdentifier), target);
        }
        public void FactoryCreatesMultipleBoundingBoxIdentifier()
        {
            var target = BoundingBoxIdentifierFactory.Create(BoundingBoxModes.Multiple, 0);

            target.ShouldBeOfType <MultipleBoundingBoxIdentifier>();
        }
Exemple #4
0
 public void FactoryThrowsWithInvalidType()
 {
     BoundingBoxIdentifierFactory.Create((BoundingBoxModes)100, 0);
 }
 public void FactoryThrowsWithInvalidType()
 {
     Should.Throw <ArgumentException>(() => BoundingBoxIdentifierFactory.Create((BoundingBoxModes)100, 0));
 }