Action912.cs 661 B

12345678910111213141516171819202122232425
  1. using PaintDotNet.Adjust;
  2. using PaintDotNet.Base;
  3. using PaintDotNet.Base.Functionodel;
  4. using PaintDotNet.Data.Param;
  5. using System.Collections.Generic;
  6. namespace PaintDotNet.Data.Action
  7. {
  8. /// <summary>
  9. /// 抽骨架
  10. /// </summary>
  11. public class Action912 : ParamObject
  12. {
  13. public override OpenCvSharp.Mat PerformProcess(PhaseModel phaseModel, double rule)
  14. {
  15. return new MorphologyIntent().ImageSkeleton(phaseModel.mat, this.Lists, phaseModel.color);
  16. }
  17. public Action912()
  18. {
  19. this.MenuId = ActionType.ActionSkeleton;
  20. this.OpenImage = "currentPhase";
  21. }
  22. }
  23. }