27 lines
719 B
C#
27 lines
719 B
C#
/*
|
|
* Copyright (c) 2025 LG Electronics Inc.
|
|
* SPDX-License-Identifier: LicenseRef-LGE-Proprietary
|
|
*/
|
|
using Aurora.Api.DataType;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace VisionCommon {
|
|
public class RoiUtil {
|
|
public const int FindRoiMargin = 50;
|
|
|
|
public static ROI GetDefaultFindRoi(ImageSize imageSize) {
|
|
var imageCenter = new ImagePoint(
|
|
imageSize.Width * 0.5,
|
|
imageSize.Height * 0.5);
|
|
|
|
return new ROI(
|
|
imageCenter,
|
|
imageSize.Width - FindRoiMargin,
|
|
imageSize.Height - FindRoiMargin);
|
|
}
|
|
}
|
|
} |