cell histogram
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Controls.ApplicationLifetimes;
|
||||
using LindtLeerformPlugin.Services;
|
||||
using LindtLeerformPlugin.ViewModels;
|
||||
using LindtLeerformPlugin.Views;
|
||||
using Serilog;
|
||||
@@ -15,12 +16,21 @@ public class LeerformModule : IVisionBuilderModule
|
||||
private readonly SingleCameraVM _singleCameraVm;
|
||||
private readonly LeerformSettings _settings;
|
||||
private readonly IImageSource _imageSource;
|
||||
private readonly LeerformPatternRecognitionService _patternService;
|
||||
private readonly LeerformRecipeStore _recipeStore;
|
||||
|
||||
public LeerformModule(SingleCameraVM singleCameraVm, LeerformSettings settings, IImageSource imageSource)
|
||||
public LeerformModule(
|
||||
SingleCameraVM singleCameraVm,
|
||||
LeerformSettings settings,
|
||||
IImageSource imageSource,
|
||||
LeerformPatternRecognitionService patternService,
|
||||
LeerformRecipeStore recipeStore)
|
||||
{
|
||||
_singleCameraVm = singleCameraVm;
|
||||
_settings = settings;
|
||||
_imageSource = imageSource;
|
||||
_patternService = patternService;
|
||||
_recipeStore = recipeStore;
|
||||
}
|
||||
|
||||
public void InitializeModule()
|
||||
@@ -45,7 +55,7 @@ public class LeerformModule : IVisionBuilderModule
|
||||
}
|
||||
|
||||
var parent = desktop.MainWindow;
|
||||
var vm = new CalibrationWindowViewModel(_imageSource, _settings);
|
||||
var vm = new CalibrationWindowViewModel(_imageSource, _settings, _singleCameraVm, _patternService, _recipeStore);
|
||||
var window = new CalibrationWindow { DataContext = vm };
|
||||
|
||||
if (parent != null)
|
||||
|
||||
Reference in New Issue
Block a user