91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

實現(xiàn)VS2015、Qt5、Halcon混合編程,在VS2015中調(diào)用Qt庫編寫Qt界面,然后再在槽函數(shù)中調(diào)用Halcon算法。資源中有混合編程的簡單實現(xiàn)代碼和具體的操作手冊,操作手冊中有Qt5在VS2015的開發(fā)環(huán)境配置方法,也有Halcon在VS2015中的環(huán)境配置方法。

資源截圖

代碼片段和文件信息

///////////////////////////////////////////////////////////////////////////////
//?File?generated?by?HDevelop?for?HALCON/C++?Version?17.12
///////////////////////////////////////////////////////////////////////////////



#ifndef?__APPLE__
#??include?“HalconCpp.h“
#??include?“HDevThread.h“
#??if?defined(__linux__)?&&?!defined(__arm__)?&&?!defined(NO_EXPORT_APP_MAIN)
#????include?
#??endif
#else
#??ifndef?HC_LARGE_IMAGES
#????include?
#????include?
#??else
#????include?
#????include?
#??endif
#??include?
#??include?
#??include?
#endif



using?namespace?HalconCpp;


#ifndef?NO_EXPORT_MAIN
//?Main?procedure?
void?action()
{

??//?Local?iconic?variables
??Hobject??ho_Image?ho_Region?ho_ConnectedRegions;
??Hobject??ho_SelectedRegions;

??//?Local?control?variables
??HTuple??hv_RawDataFolder?hv_Width?hv_Height;
??HTuple??hv_WindowHandle;


??dev_update_off();
??hv_RawDataFolder?=?“E:/code/Photo/clip“;
??ReadImage(&ho_Image?hv_RawDataFolder);
??GetImageSize(ho_Image?&hv_Width?&hv_Height);
??if?(HDevWindowStack::IsOpen())
????CloseWindow(HDevWindowStack::Pop());
??SetWindowAttr(“background_color““black“);
??OpenWindow(00hv_Widthhv_Height0“visible“““&hv_WindowHandle);
??HDevWindowStack::Push(hv_WindowHandle);
??set_display_font(hv_WindowHandle?16?“mono“?“true“?“false“);
??if?(HDevWindowStack::IsOpen())
????DispObj(ho_Image?HDevWindowStack::GetActive());
??disp_message(hv_WindowHandle?“Original?image“?“window“?12?12?“black“?“true“);
??disp_continue_message(hv_WindowHandle?“black“?“true“);
??//stop?()

??//Segment?the?pill?in?the?center.
??//Threshold使用全局閾值分割圖像,獲取像素值介于MinGray-0和MaxGray-10的區(qū)域。
??Threshold(ho_Image?&ho_Region?0?128);
??//Connection計算輸入?yún)^(qū)域中的所有連通域
??Connection(ho_Region?&ho_ConnectedRegions);
??SelectShape(ho_ConnectedRegions?&ho_SelectedRegions?“area“?“and“?5000?9000);
??if?(HDevWindowStack::IsOpen())
????DispObj(ho_SelectedRegions?HDevWindowStack::GetActive());

}


#ifndef?NO_EXPORT_APP_MAIN

#ifdef?__APPLE__
//?On?OS?X?systems?we?must?have?a?CFRunLoop?running?on?the?main?thread?in
//?order?for?the?HALCON?graphics?operators?to?work?correctly?and?run?the
//?action?function?in?a?separate?thread.?A?CFRunLoopTimer?is?used?to?make?sure
//?the?action?function?is?not?called?before?the?CFRunLoop?is?running.
//?Note?that?starting?with?macOS?10.12?the?run?loop?may?be?stopped?when?a
//?window?is?closed?so?we?need?to?put?the?call?to?CFRunLoopRun()?into?a?loop
//?of?its?own.
HTuple??????gStartMutex;
H_pthread_t?gActionThread;
HBOOL???????gTerminate?=?FALSE;

static?void?timer_callback(CFRunLoopTimerRef?timer?void?*info)
{
??UnlockMutex(gStartMutex);
}

static?Herror?apple_action(void?**parameters)
{
??//?Wait?until?the?timer?has?fired?to?start?processing.
??LockMutex(gStartMutex);
??UnlockMutex(gStartMutex);

??try
??{
????action();
??}
??catch?(HEx

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件?????657080??2018-06-27?15:12??VS2015_Qt5_Halcon混合編程\Halcon導出的程序\外部函數(shù)\read_thresholdImage.h

?????文件???????5489??2018-06-27?15:08??VS2015_Qt5_Halcon混合編程\Halcon導出的程序\程序\read_thresholdImage.cpp

????..A..H.?????28160??2018-06-28?13:26??VS2015_Qt5_Halcon混合編程\helloQt\.vs\helloQt\v14\.suo

?????文件?????290173??2003-11-04?16:33??VS2015_Qt5_Halcon混合編程\helloQt\clip.png

?????文件???????3683??2018-06-28?13:25??VS2015_Qt5_Halcon混合編程\helloQt\helloQt\GeneratedFiles\Debug\moc_helloqt.cpp

?????文件???????1396??2018-06-28?13:25??VS2015_Qt5_Halcon混合編程\helloQt\helloQt\GeneratedFiles\qrc_helloqt.cpp

?????文件???????4163??2018-06-28?13:25??VS2015_Qt5_Halcon混合編程\helloQt\helloQt\GeneratedFiles\ui_helloqt.h

?????文件??????11681??2018-06-28?13:26??VS2015_Qt5_Halcon混合編程\helloQt\helloQt\helloqt.cpp

?????文件???????1176??2018-06-27?20:47??VS2015_Qt5_Halcon混合編程\helloQt\helloQt\helloqt.h

?????文件?????????67??2018-06-27?17:18??VS2015_Qt5_Halcon混合編程\helloQt\helloQt\helloqt.qrc

?????文件???????2020??2018-06-28?09:45??VS2015_Qt5_Halcon混合編程\helloQt\helloQt\helloqt.ui

?????文件??????18918??2018-06-28?09:07??VS2015_Qt5_Halcon混合編程\helloQt\helloQt\helloQt.vcxproj

?????文件???????2675??2018-06-27?17:19??VS2015_Qt5_Halcon混合編程\helloQt\helloQt\helloQt.vcxproj.filters

?????文件????????639??2018-06-27?17:21??VS2015_Qt5_Halcon混合編程\helloQt\helloQt\helloQt.vcxproj.user

?????文件????????173??2018-06-27?17:18??VS2015_Qt5_Halcon混合編程\helloQt\helloQt\main.cpp

?????文件???????2921??2018-06-28?13:25??VS2015_Qt5_Halcon混合編程\helloQt\helloQt\x64\Debug\helloQt.Build.CppClean.log

?????文件????????237??2018-06-28?13:26??VS2015_Qt5_Halcon混合編程\helloQt\helloQt\x64\Debug\helloQt.log

?????文件?????447327??2018-06-28?13:26??VS2015_Qt5_Halcon混合編程\helloQt\helloQt\x64\Debug\helloqt.obj

?????文件???????5134??2018-06-28?13:26??VS2015_Qt5_Halcon混合編程\helloQt\helloQt\x64\Debug\helloQt.tlog\CL.command.1.tlog

?????文件?????202960??2018-06-28?13:26??VS2015_Qt5_Halcon混合編程\helloQt\helloQt\x64\Debug\helloQt.tlog\CL.read.1.tlog

?????文件???????2806??2018-06-28?13:26??VS2015_Qt5_Halcon混合編程\helloQt\helloQt\x64\Debug\helloQt.tlog\CL.write.1.tlog

?????文件???????2146??2018-06-28?13:25??VS2015_Qt5_Halcon混合編程\helloQt\helloQt\x64\Debug\helloQt.tlog\custombuild.command.1.tlog

?????文件????????632??2018-06-28?13:25??VS2015_Qt5_Halcon混合編程\helloQt\helloQt\x64\Debug\helloQt.tlog\custombuild.read.1.tlog

?????文件????????998??2018-06-28?13:25??VS2015_Qt5_Halcon混合編程\helloQt\helloQt\x64\Debug\helloQt.tlog\custombuild.write.1.tlog

?????文件????????224??2018-06-28?13:26??VS2015_Qt5_Halcon混合編程\helloQt\helloQt\x64\Debug\helloQt.tlog\helloQt.lastbuildstate

?????文件???????2298??2018-06-28?13:26??VS2015_Qt5_Halcon混合編程\helloQt\helloQt\x64\Debug\helloQt.tlog\link.command.1.tlog

?????文件???????4482??2018-06-28?13:26??VS2015_Qt5_Halcon混合編程\helloQt\helloQt\x64\Debug\helloQt.tlog\link.read.1.tlog

?????文件???????1122??2018-06-28?13:26??VS2015_Qt5_Halcon混合編程\helloQt\helloQt\x64\Debug\helloQt.tlog\link.write.1.tlog

?????文件?????124656??2018-06-28?13:25??VS2015_Qt5_Halcon混合編程\helloQt\helloQt\x64\Debug\main.obj

?????文件?????128333??2018-06-28?13:25??VS2015_Qt5_Halcon混合編程\helloQt\helloQt\x64\Debug\moc_helloqt.obj

............此處省略29個文件信息

評論

共有 條評論