Exemplo n.º 1
0
        public PatchMatchPipeline(IPatchMatchNnfBuilder patchMatchNnfBuilder, ImagePatchDistanceCalculator patchDistanceCalculator)
        {
            if (patchMatchNnfBuilder == null)
            {
                throw new ArgumentNullException(nameof(patchMatchNnfBuilder));
            }

            if (patchDistanceCalculator == null)
            {
                throw new ArgumentNullException(nameof(patchDistanceCalculator));
            }

            _patchMatchNnfBuilder    = patchMatchNnfBuilder;
            _patchDistanceCalculator = patchDistanceCalculator;
        }
Exemplo n.º 2
0
        public NnfInit(IPatchMatchNnfBuilder patchMatchNnfBuilder, ImagePatchDistanceCalculator calculator)
        {
            if (patchMatchNnfBuilder == null)
            {
                throw new ArgumentNullException(nameof(patchMatchNnfBuilder));
            }

            if (calculator == null)
            {
                throw new ArgumentNullException(nameof(calculator));
            }

            _patchMatchNnfBuilder = patchMatchNnfBuilder;
            _calculator           = calculator;
        }
Exemplo n.º 3
0
        public NeighboursCheck(IPatchMatchNnfBuilder patchMatchNnfBuilder, ImagePatchDistanceCalculator calculator,
                               NeighboursCheckDirection direction = NeighboursCheckDirection.Forward)
        {
            if (patchMatchNnfBuilder == null)
            {
                throw new ArgumentNullException(nameof(patchMatchNnfBuilder));
            }

            if (calculator == null)
            {
                throw new ArgumentNullException(nameof(calculator));
            }

            _patchMatchNnfBuilder = patchMatchNnfBuilder;
            _calculator           = calculator;
            _direction            = direction;
        }