95 lines
2.0 KiB
C#
95 lines
2.0 KiB
C#
using Hermes;
|
|
using System;
|
|
using System.Drawing;
|
|
using VisionCommon;
|
|
|
|
#if USE_COGNEX
|
|
using Cognex.VisionPro;
|
|
using CogPattern;
|
|
using CogCommon;
|
|
|
|
// Cognex인 경우 여기에 구현
|
|
// ...
|
|
#else
|
|
using Matrox.MatroxImagingLibrary;
|
|
using MilPattern;
|
|
using MilCommon;
|
|
|
|
namespace WeldingCommon.Vision.Pattern {
|
|
/// <summary>
|
|
/// 장비 패턴 C
|
|
/// </summary>
|
|
public class MachinePattern_C : PatternBase, IPatternFinder, IDisposable {
|
|
public string FILE_EXT_PATTERN { get; set; } = ".mpC";
|
|
|
|
/// <summary>
|
|
/// 생성자
|
|
/// </summary>
|
|
/// <param name="patternInfo">패턴 정보</param>
|
|
public MachinePattern_C(PatternInfo patternInfo) {
|
|
}
|
|
|
|
public string GetPatternFilePath() {
|
|
return "";
|
|
}
|
|
|
|
public int Load() {
|
|
return E1.OK;
|
|
}
|
|
|
|
public int Save() {
|
|
return E1.OK;
|
|
}
|
|
|
|
public int Create() {
|
|
return E1.OK;
|
|
}
|
|
|
|
public int Remove() {
|
|
return E1.OK;
|
|
}
|
|
|
|
public ROI GetFindROI() {
|
|
return new ROI();
|
|
}
|
|
|
|
public int SetFindROI(ROI findRoi) {
|
|
return E1.OK;
|
|
}
|
|
|
|
public IRunParam GetRunParam() {
|
|
return null;
|
|
}
|
|
|
|
public int SetRunParam(IRunParam runParam) {
|
|
return E1.OK;
|
|
}
|
|
|
|
public PatternResult Find(object image) {
|
|
return new PatternResult();
|
|
}
|
|
|
|
public PatternResult Find(object image, ROI findRoi) {
|
|
return new PatternResult();
|
|
}
|
|
|
|
public PatternResult GetNotFoundPatternResult() {
|
|
return new PatternResult();
|
|
}
|
|
|
|
public object GetTool() {
|
|
return new object();
|
|
}
|
|
|
|
public void Draw(PatternResult patternResult, ICameraDisplay cameraDisplay, bool isFixturePattern = false) {
|
|
}
|
|
|
|
public Bitmap GetThumbnail() {
|
|
return new Bitmap("");
|
|
}
|
|
|
|
public void Dispose() {
|
|
}
|
|
}
|
|
}
|
|
#endif |