freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于opencv的車型識別系統(tǒng)畢業(yè)設(shè)計-閱讀頁

2024-12-13 00:24本頁面
  

【正文】 100CV_SHAPE_RECT cvDilate img1img1kernal IplConvKernelkernal1 cvCreateStructuringElementEx 2200CV_SHAPE_RECT cvErode img1img1kernal2 cvDilate img1img1kernal cvErode img1img1kernal2 cvReleaseStructuringElement kernal cvReleaseStructuringElement kernal1 cvReleaseStructuringElement kernal2 cvShowImage Morph img1 display it Invalidate 6 下面為圖像預(yù)處理的形態(tài)學(xué)處理部分程序 IplImage pImage8uGray NULL IplImage pImage8uSmooth NULL IplImage pImage16uGraySobel NULL IplImage pImage8uGraySobelShow NULL pImage8uGray cvCreateImage cvGetSize image IPL_DEPTH_8U1 pImage8uSmooth cvCreateImage cvGetSize image IPL_DEPTH_8U1 pImage8uGraySobelShow cvCreateImage cvGetSize image IPL_DEPTH_8U1 轉(zhuǎn)灰度 cvCvtColor imagepImage8uGrayCV_BGR2GRAY 高斯濾波 cvSmooth pImage8uGraypImage8uSmoothCV_GAUSSIAN100 cvSobel 要求目標圖像必須是 IPL_DEPTH_16S pImage16uGraySobel cvCreateImage cvGetSize image IPL_DEPTH_16S1 計算一階 x 方向的差分也可以計算一階 y 方向 cvSobel pImage8uSmoothpImage16uGraySobel013 cvSobel 要求目標圖像必須是 IPL_DEPTH_16S cvConvertScaleAbs pImage16uGraySobelpImage8uGraySobelShow10 再把格式轉(zhuǎn)回來用于顯示 cvNamedWindow 灰度圖像 Sobel 變換 CV_WINDOW_AUTOSIZE cvShowImage 灰度圖像 Sobel 變換 pImage8uGraySobelShow cvWaitKey 0 cvDestroyWindow 灰度圖像 Sobel 變換 cvReleaseImage image cvReleaseImage pImage8uGray cvReleaseImage pImage8uSmooth cvReleaseImage pImage16uGraySobel cvReleaseImage pImage8uGraySobelShow Invalidate IplImage pImagePlanes[3] NULLNULLNULL IplImage pImage16uColorSobel NULL IplImage pImage8uColorSobelShow NULL int i for i 0i 3i pImagePlanes[i] cvCreateImage cvGetSize image IPL_DEPTH_8U1 pImage16uColorSobel cvCreateImage cvGetSize image IPL_DEPTH_16S1 pImage8uColorSobelShow cvCreateImage cvGetSize image IPL_DEPTH_8U3 分成 3 個單通道 cvCvtPixToPlane imagepImagePlanes[0]pImagePlanes[1]pImagePlanes[2]NULL for i 0i 3i cvSobel pImagePlanes[i]pImage16uColorSobel013 cvConvertScaleAbs pImage16uColorSobelpImagePlanes[i]10 cvCvtPlaneToPix pImagePlanes[0]pImagePlanes[1]pImagePlanes[2]NULLpImage8uColorSobelShow cvNamedWindow 彩色圖像 Sobel 變換 CV_WINDOW_AUTOSIZE cvShowImage 彩色圖像 Sobel 變換 pImage8uColorSobelShow 7 下面為圖像預(yù)處理的拉普拉斯部分程序 IplImage pyr 0 IplImage laplace 0laplace1 0dst 0 thr 0 pyr cvCreateImage cvSize image width2image height2 83 laplace cvCreateImage cvSize image widthimage height 83 laplace1 cvCreateImage cvSize image widthimage height IPL_DEPTH_8U1 dst cvCreateImage cvSize image widthimage height IPL_DEPTH_16S1 cvLaplace laplace1dst3 thr cvCreateImage cvSize image widthimage height IPL_DEPTH_8U1 cvNamedWindow LOG二值化 1 cvShowImage LOG二值化 dst cvReleaseImage thr wty cvReleaseImage pyr cvReleaseImage laplace1 cvReleaseImage dst cvReleaseImage laplace 8 下面為圖像預(yù)處理的拉普拉斯部分程序 cvThreshold img1img1100255CV_THRESH_BINARY cvNamedWindow cann1 cvShowImage cannimg1 cvWaitKey 0 cvReleaseImage img1 9 下面為圖像預(yù)處理的汽車識別部分程序 double m_ratio m_ratio double m_Wcarm_Hcar double m_flaga[3] int b a[0] m_ratiom_CarST[0] a[1] m_ratiom_CarST[1] a[2] m_ratiom_CarST[2] a[3] m_ratiom_CarST[3] if a[0] 0 a[0] m_ratiom_CarST[0] else a[0] m_ratiom_CarST[0] 1 if a[1] 0 a[1] m_ratiom_CarST[1] else a[1] m_ratiom_CarST[1] 1 if a[2] 0 a[2] m_ratiom_CarST[2] else a[2] m_ratiom_CarST[2] 1 if a[3] 0 a[3] m_ratiom_CarST[3] else a[3] m_ratiom_CarST[3] 1 m_flag a[0] b 0 if m_flag a[1] m_flag a[1] b 1 if m_flag a[2] m_flag a[2] b 2 if m_flag a[3] m_flag a[3] b 3 基于 opencv 的車型識別系統(tǒng)設(shè)計 6 III 7 圖像獲取 圖像預(yù)處理 獲取圖像 分類識別 車型特征提取 圖像預(yù)處理 特征提取 最近鄰分類 訓(xùn)練圖像 圖像預(yù)處理 特征提取 識別結(jié)果 。
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1