/// <summary> /// constructor /// </summary> public MainWindow() { InitializeComponent(); this.context = new SeamCarvingContext(); this.context.Height = ImageControl.Height; this.context.Width = ImageControl.Width; this.seamUtilities = new SeamUtilities(); this.gradientCalculator = new GradientCalculator(seamUtilities); this.heatCalculator = new HeatCalculator(seamUtilities); this.seamCalculator = new SeamCalculator(seamUtilities); }
/// <summary> /// constructor /// </summary> /// <param name="injectedUtilities"></param> public HeatCalculator(ISeamUtilities injectedUtilities) { this.seamUtilities = injectedUtilities; }
/// <summary> /// constructor /// </summary> /// <param name="injectedSeamUtilities"></param> public GradientCalculator(ISeamUtilities injectedSeamUtilities) { this.seamUtilities = injectedSeamUtilities; }
/// <summary> /// constructor /// </summary> /// <param name="injectedSeamUtilities"></param> public SeamCalculator(ISeamUtilities injectedSeamUtilities) { this.seamUtilities = injectedSeamUtilities; }