xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 0.01M
    文件類型: .cs
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2021-05-10
  • 語(yǔ)言: C#
  • 標(biāo)簽: 其他??

資源簡(jiǎn)介

FitLine.cs

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;
using?HalconDotNet;

namespace?checktest
{
????class?FitLine
????{
????????///?
????????///?找線?(多段取點(diǎn)擬合)
????????///?

????????///?輸入圖像
????????///?窗口句柄
????????///?中心行坐標(biāo)
????????///?中心列坐標(biāo)
????????///?角度
????????///?半長(zhǎng)
????????///?半寬
????????///?取點(diǎn)數(shù)
????????///?對(duì)比度
????????///?平滑系數(shù)
????????///?極性
????????///?選擇邊緣點(diǎn)
????????///?返回直線起點(diǎn)行坐標(biāo)
????????///?返回直線起點(diǎn)列坐標(biāo)
????????///?返回直線終點(diǎn)行坐標(biāo)
????????///?返回直線終點(diǎn)列坐標(biāo)
????????///?是否顯示
????????///?
????????public?bool?Find_Line(Hobject?Image?HTuple?Window?HTuple?RoiRow?HTuple?RoiCol?HTuple?RoiPhi?HTuple?RoiLength1?HTuple?RoiLength2?HTuple?NumPoint
?????????????HTuple?AmpThreshold?HTuple?Smooth?HTuple?Transition?HTuple?Select?ref?HTuple?RowBegion?ref?HTuple?ColBegion?ref?HTuple?RowEnd?ref?HTuple?ColEnd
?????????????bool?ShowRoiFlag)
????????{

????????????try
????????????{

????????????????Hobject?Contour;
????????????????HTuple?ImageWidth?ImageHeight;
????????????????HTuple?Row_Rect?Col_Rect?DRow?DCol?MeasureLength1?MeasureLength2?HomMat2DIdentity;
????????????????HTuple?HomMat2DRotate?Index?MsrHandle?Row_Measure?Col_Measure;
????????????????HTuple?Amplitude_Measure?Distance_Measure?num;
????????????????HTuple?Nr?Nc?Dist;
????????????????HTuple?RowOut?=?new?HTuple()?ColOut?=?new?HTuple();
????????????????Listject>?RectList?=?new?Listject>();

????????????????Row_Rect?=?RoiRow?+?RoiLength2?*?RoiPhi.TupleCos();
????????????????Col_Rect?=?RoiCol?+?RoiLength2?*?RoiPhi.TupleSin();
????????????????MeasureLength1?=?RoiLength1;
????????????????MeasureLength2?=?RoiLength2?/?NumPoint?/?2;
????????????????DRow?=?-2?*?RoiLength2?*?RoiPhi.TupleCos()?/?NumPoint;
????????????????DCol?=?-2?*?RoiLength2?*?RoiPhi.TupleSin()?/?NumPoint;
????????????????HOperatorSet.HomMat2dIdentity(out?HomMat2DIdentity);
????????????????HOperatorSet.HomMat2dTranslate(HomMat2DIdentity?DRow?DCol?out?HomMat2DRotate);
????????????????HOperatorSet.GetImageSize(Image?out?ImageWidth?out?ImageHeight);
????????????????if?(ShowRoiFlag)//是否顯示
????????????????{
????????????????????Hobject?rect2;
???????????????

評(píng)論

共有 條評(píng)論

相關(guān)資源