国产亚洲精品福利在线无卡一,国产精久久一区二区三区,亚洲精品无码国模,精品久久久久久无码专区不卡

當(dāng)前位置: 首頁 > news >正文

大連h5網(wǎng)站開發(fā)東莞seo優(yōu)化推廣

大連h5網(wǎng)站開發(fā),東莞seo優(yōu)化推廣,如何自己做直播網(wǎng)站,如何只做網(wǎng)站例程功能 演示如何使用edges_color,展示只能從彩色圖像中提取某些邊緣的圖像,說明edges_color和edges_image輸出之間的差異。 代碼如下 dev_update_off () read_image (Image, olympic_stadium) get_image_size (Image, Width, Height) dev_close_wind…

例程功能

?演示如何使用edges_color,展示只能從彩色圖像中提取某些邊緣的圖像,說明edges_coloredges_image輸出之間的差異。

代碼如下

dev_update_off ()
read_image (Image, 'olympic_stadium')
get_image_size (Image, Width, Height)
dev_close_window ()
dev_open_window (0, 0, Width, Height, 'black', WindowHandle)
dev_set_part (0, 0, Height - 1, Width - 1)
set_display_font (WindowHandle, 16, 'mono', 'true', 'false')
dev_display (Image)
Message := 'Color image'
disp_message (WindowHandle, Message, 'window', 12, 12, 'black', 'true')
stop ()
* Convert the color image to a gray value image.  Note that there is no contrast
* between the soccer field and the track in the gray value image.
rgb1_to_gray (Image, GrayImage)
dev_display (GrayImage)
Message := 'Gray value image'
disp_message (WindowHandle, Message, 'window', 12, 12, 'black', 'true')
stop ()
* Compute the color edges without non-maximum suppression and hysteresis
* thresholding, i.e., the raw edge amplitude image.  Note that there is a clearly
* visible edge between the soccer field and the track in the color edge image.
edges_color (Image, ImaAmp, ImaDir, 'canny', 1, 'none', -1, -1)
dev_display (ImaAmp)
Message := 'Color edge image'
disp_message (WindowHandle, Message, 'window', 12, 12, 'black', 'true')
stop ()
* Compute the gray value edges without non-maximum suppression and
* hysteresis thresholding, i.e., the raw edge amplitude image.  Note that there is
* no visible edge between the soccer field and the track in the gray value edge
* image.
edges_image (GrayImage, ImaAmpGray, ImaDirGray, 'canny', 1, 'none', -1, -1)
dev_display (ImaAmpGray)
Message := 'Gray value edge image'
disp_message (WindowHandle, Message, 'window', 12, 12, 'black', 'true')
stop ()
* Now perform the color edge extraction including non-maximum suppression
* and hysteresis thresholding.  Note the segmented edge between the soccer
* field and the track.
edges_color (Image, ImaAmpHyst, ImaDirHyst, 'canny', 1, 'nms', 20, 40)
threshold (ImaAmpHyst, RegionColor, 1, 255)
skeleton (RegionColor, EdgesColor)
dev_display (Image)
dev_set_color ('blue')
dev_display (EdgesColor)
Message := 'Segmented color edges'
disp_message (WindowHandle, Message, 'window', 12, 12, 'black', 'true')
stop ()
* Now perform the gray value edge extraction including non-maximum
* suppression and hysteresis thresholding.  Note the absence of an edge
* between the soccer field and the track.
edges_image (GrayImage, ImaAmpGrayHyst, ImaDirGrayHyst, 'canny', 1, 'nms', 20, 40)
threshold (ImaAmpGrayHyst, RegionGray, 1, 255)
skeleton (RegionGray, EdgesGray)
dev_display (GrayImage)
dev_set_color ('blue')
dev_display (EdgesGray)
Message := 'Segmented gray value edges'
disp_message (WindowHandle, Message, 'window', 12, 12, 'black', 'true')
stop ()
* Now display everything again, while only showing the part of the image
* containing the soccer field and the track.
Row1 := 220
Col1 := 215
Row2 := 399
Col2 := 489
dev_set_part (Row1, Col1, Row2, Col2)
dev_display (Image)
stop ()
dev_display (GrayImage)
stop ()
dev_display (ImaAmp)
stop ()
dev_display (ImaAmpGray)
stop ()
dev_display (Image)
dev_set_color ('blue')
dev_display (EdgesColor)
stop ()
dev_display (GrayImage)
dev_set_color ('blue')
dev_display (EdgesGray)

要點

  1. 例程中著重說明圖像中足球場和跑道兩個區(qū)域間幾乎沒有對比度。以此為難點分別用edges_coloredges_image分割圖像邊緣。
    沒有對比度意味著灰度化后足球場和跑道區(qū)域間邊緣特征不明顯(看起來像一塊區(qū)域),后接edges_image 確實沒有檢測出足球場邊框。
    edges_color直接對彩色圖像進行邊緣提取,效果會好于edges_image方法。兩個算子的參數(shù)相同,不同點在于入?yún)D像分別為彩色圖像和灰度圖像。
    edges_color——使用 Deriche、Lanser、Shen 或 Canny 過濾器提取邊緣;
    ?Image ——入?yún)?#xff0c;待處理圖像;
    ?ImaAmp ——出參,邊緣幅度(梯度)分割結(jié)果;
    ?ImaDir ——出參,邊緣方向分割結(jié)果;
    ?Filter ——入?yún)?#xff0c;過濾器;
    ?Alpha ——入?yún)?#xff0c;濾鏡參數(shù)(值越小,平滑效果越強,細(xì)節(jié)越少,canny算子相反);
    ?NMS ——入?yún)?#xff0c;極大值抑制;
    ?Low ——入?yún)?#xff0c;滯后閾值分割的低閾值(不需要則置negative);
    ?High ——入?yún)?#xff0c;滯后閾值分割的高閾值(不需要則置negative);
http://m.aloenet.com.cn/news/34764.html

相關(guān)文章:

  • asp新聞網(wǎng)站模板seowhy培訓(xùn)
  • 網(wǎng)站代理備案信陽網(wǎng)站推廣公司
  • brophp框架做網(wǎng)站網(wǎng)站seo方案策劃書
  • 怎樣做代刷網(wǎng)站廣州百度推廣優(yōu)化
  • 南陽誰會做網(wǎng)站網(wǎng)絡(luò)廣告策劃書
  • b2b商務(wù)貿(mào)易平臺網(wǎng)站seo搜索引擎優(yōu)化案例
  • 合肥做公司網(wǎng)站公司百度搜索熱詞查詢
  • 網(wǎng)易嚴(yán)選的網(wǎng)站建設(shè)簡單的個人主頁網(wǎng)站制作
  • 汨羅網(wǎng)站建設(shè)交換鏈接營銷案例
  • 網(wǎng)站開發(fā)可以用gif嗎網(wǎng)站推廣方案有哪些
  • 網(wǎng)站設(shè)計書本地建站軟件有哪些
  • 沒有網(wǎng)站如何做落地頁南京seo網(wǎng)絡(luò)推廣
  • 咸陽做網(wǎng)站開發(fā)公司哪家好創(chuàng)建網(wǎng)站
  • 東莞家用臺燈東莞網(wǎng)站建設(shè)免費發(fā)帖的平臺有哪些
  • 做網(wǎng)站復(fù)制國家機關(guān)印章如何在百度上做免費推廣
  • wordpress設(shè)置僅自己可見搜外網(wǎng) seo教程
  • 沈陽市建設(shè)工程信息洛陽seo網(wǎng)絡(luò)推廣
  • 怎么做萬網(wǎng)網(wǎng)站嗎google搜索引擎免費入口
  • 鄭州網(wǎng)站建設(shè)公司制作定制網(wǎng)絡(luò)營銷策略
  • 做網(wǎng)站網(wǎng)頁尺寸是多少營銷型網(wǎng)站建站
  • 網(wǎng)站建設(shè)工具有哪些視頻網(wǎng)站推廣
  • 國內(nèi)免費二級域名網(wǎng)站做電商如何起步
  • 工信部網(wǎng)站備案注銷二級域名在線掃描
  • 江門恒陽網(wǎng)站建設(shè)百度推廣首次開戶需要多少錢
  • 網(wǎng)站建設(shè)團隊介紹推廣公司屬于什么公司
  • 余姚網(wǎng)站建設(shè)全渠道營銷管理平臺
  • dede中英文網(wǎng)站 視頻站長統(tǒng)計app軟件下載官網(wǎng)安卓
  • 網(wǎng)站建設(shè)免費軟件有哪些推特最新消息今天
  • 局域網(wǎng)網(wǎng)站怎么做谷歌搜索排名
  • 用vue做的網(wǎng)站怎么實現(xiàn)響應(yīng)式株洲專業(yè)seo優(yōu)化