亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? classimageprocessing.cls

?? 這是一個立體視覺程序
?? CLS
?? 第 1 頁 / 共 5 頁
字號:
    screenWidth = canvas.ScaleWidth
    screenHeight = canvas.ScaleHeight
  End If
  
  'clear the histogram
  For index = 0 To Histogram_levels - 1
    ColourHistogram(index) = 0
  Next
  max = 0
  
  'get the histogram
  maxcol = RGB(255, 255, 255)
  For x = 0 To screenWidth - 1
    For y = 0 To screenHeight - 1
      RGBval = canvas.Point(screenLeft + x, screenTop + y)
      
      redValue = getRGBvalue(RGBval, 0)
      greenValue = getRGBvalue(RGBval, 1)
      blueValue = getRGBvalue(RGBval, 2)
      index = Int(getSpectrumValue(redValue, greenValue, blueValue) * Histogram_levels)
      
      ColourHistogram(index) = ColourHistogram(index) + 1
      If (ColourHistogram(index) > max) Then
        max = ColourHistogram(index)
      End If
    Next
  Next
  
  'normalize the histogram
  If (max > 0) Then
    For index = 0 To Histogram_levels - 1
      ColourHistogram(index) = ColourHistogram(index) / max
    Next
  End If
  
End Sub


Public Sub saveColourHistogram(filenumber As Integer)
  Dim i As Integer
  
  Print #filenumber, Histogram_levels
  For i = 0 To Histogram_levels - 1
    Print #filenumber, ColourHistogram(i)
  Next
End Sub


Public Sub loadColourHistogram(filenumber As Integer)
  Dim i As Integer
  Dim col As Single
  
  Input #filenumber, Histogram_levels
  ReDim ColourHistogram(Histogram_levels)
  ReDim Hist(Histogram_levels)
  For i = 0 To Histogram_levels - 1
    Input #filenumber, col
    ColourHistogram(i) = col
  Next
End Sub


Public Sub updateDirect(canvas As PictureBox, Optional left As Variant, Optional top As Variant, Optional wdth As Variant, Optional hght As Variant)
'import a picture pixel-for-pixel without any scaling
'processtype = 0   greyscale
'              1   red
'              2   green
'              3   blue
'              4   edges
'              5   movement

  Dim x As Integer
  Dim y As Integer
  Dim screenX As Integer
  Dim screenY As Integer
  Dim w As Integer
  Dim h As Integer
  Dim Value As Double
  Dim RGBval As Long
  Dim pixels As Double
  Dim maxcol As Long
  Dim edgeValue As Single
  Dim screenWidth As Single
  Dim screenHeight As Single
  Dim screenLeft As Single
  Dim screenTop As Single
  
  If (Not IsMissing(left)) And (Not IsMissing(top)) Then
    screenLeft = left
    screenTop = top
    screenWidth = wdth
    screenHeight = hght
    Else
    screenLeft = 0
    screenTop = 0
    screenWidth = canvas.ScaleWidth
    screenHeight = canvas.ScaleHeight
  End If
  
  w = CInt(screenWidth / width)
  If (w < 1) Then
    w = 1
  End If
  h = CInt(screenHeight / height)
  If (h < 1) Then
    h = 1
  End If

  pixels = w * h
  maxcol = RGB(255, 255, 255)
  For x = 0 To width - 1
    For y = 0 To height - 1
      'edgeTraced(x, y) = False
      screenX = screenLeft + ((x / width) * screenWidth)
      screenY = screenTop + ((y / height) * screenHeight)
      RGBval = canvas.Point(screenX, screenY)
      Select Case processType
        Case 0  'greyscale
          Value = (RGBval / maxcol)
        Case 1  'red
          Value = ((RGBval And 255) / 255)
        Case 2  'green
          Value = ((RGBval And 65280) / 65280)
        Case 3  'blue
          Value = ((RGBval And 16711680) / 16711680)
      End Select
      
      image(x, y) = Value
    Next
  Next

End Sub



Public Sub getImageContours(rawImage As classImageProcessing)
'extracts edges from the given image
  Dim x As Integer
  Dim y As Integer
  Dim Value As Single
  Dim scalex As Single
  Dim scaley As Single
  Dim xx As Integer
  Dim yy As Integer
  Dim p1 As Integer
  Dim p2 As Integer
  Dim value2 As Single
  Dim max As Single
  
  scalex = rawImage.width / width
  scaley = rawImage.height / height
  
  max = 1 - EdgeThreshold
  
  For x = 0 To width - 1
    For y = 0 To height - 1
      xx = x * scalex
      yy = y * scaley
      If ((xx >= 1) And (yy >= 1)) Then
        p1 = rawImage.getPoint(xx, yy)
        p2 = rawImage.getPoint(xx - 1, yy)
        Value = Abs(p1 - p2)
        p2 = rawImage.getPoint(xx, yy - 1)
        Value = Value + Abs(p1 - p2)
        Value = Value / (255 * 2)
        value2 = Value - EdgeThreshold
        If (value2 < 0) Then
          Value = 0
          Else
          Value = 255 - (255 * (value2 / max))
        End If
        image(x, y) = Value
      End If
    Next
  Next
    
End Sub

Public Sub getGaussianContours(rawImage As classImageProcessing, Optional GaussianRadius As Variant)
'extracts gaussian contours from the given image
  Dim x As Integer
  Dim y As Integer
  Dim Value As Single
  Dim scalex As Single
  Dim scaley As Single
  Dim p1 As Single
  Dim value2 As Single
  Dim max As Single
  Dim px As Integer
  Dim py As Integer
  Dim patchRadius As Integer
  Dim centreX As Integer
  Dim centreY As Integer
  Dim Dist As Single
  Dim radiusSqr As Single
  Dim pixels As Single
  
  scalex = rawImage.width / width
  scaley = rawImage.height / height
  max = 1
  
  If (IsMissing(GaussianRadius)) Then
    patchRadius = rawImage.width / 40
    Else
    patchRadius = GaussianRadius
  End If
  If (patchRadius < 1) Then
    patchRadius = 1
  End If
  radiusSqr = patchRadius * patchRadius
  pixels = 4 * radiusSqr * 255
  
  For x = patchRadius To width - patchRadius
    For y = patchRadius To height - patchRadius
  'For x = 1 To width - 1
  '  For y = 1 To height - 1
      
      'get the current point in the raw image
      centreX = x * scalex
      centreY = y * scaley
      
      Value = 0
      For px = centreX - patchRadius To centreX + patchRadius
        For py = centreY - patchRadius To centreY + patchRadius
        
          'calculate the squared distance
          Dist = ((px - centreX) * (px - centreX)) + ((py - centreY) * (py - centreY))
        
          If ((px >= 1) And (px < rawImage.width) And (py >= 1) And (py < rawImage.height)) Then
            p1 = rawImage.getPoint(px, py)
            Value = Value + (p1 * function_Gaussian(Dist, radiusSqr))
          End If
                
        Next
      Next
      image(x, y) = CByte((Value / pixels) * 255)

    Next
  Next
  
  Call Normalize
End Sub


Public Sub getDoGContours(rawImage As classImageProcessing, Optional GaussianRadius As Variant)
'extracts double Gaussian (DoG) contours from the given image
  Dim image2() As Byte
  Dim radius1 As Single
  Dim radius2 As Single
  Dim x As Integer
  Dim y As Integer
  Dim p1 As Integer
  Dim p2 As Integer
  Dim dp As Integer
    
  ReDim image2(width, height)
  
  If (IsMissing(GaussianRadius)) Then
    radius1 = rawImage.width / 40
    Else
    radius1 = GaussianRadius
  End If
  radius2 = 1 'radius1 / 2
  
  Call getGaussianContours(rawImage, radius1)
  For x = 0 To width - 1
    For y = 0 To height - 1
      image2(x, y) = image(x, y)
    Next
  Next
  
  If (radius2 > 0) Then
    Call getGaussianContours(rawImage, radius2)
    For x = 0 To width - 1
      For y = 0 To height - 1
        p1 = image(x, y)
        p2 = image2(x, y)
        dp = Abs(p1 - p2)
        image(x, y) = CByte(dp)
      Next
    Next
  End If
  
  Call Normalize
  
End Sub



Public Sub show(canvas As PictureBox, Optional tx As Variant, Optional ty As Variant, Optional subImageWidth As Variant, Optional subImageHeight As Variant)
  Dim x As Integer
  Dim y As Integer
  Dim screenX(2) As Single
  Dim screenY(2) As Single
  Dim Value As Byte
  Dim c As Long
  Dim i As Integer
  Dim showPoint As Boolean
  
  If (processType <> 4) Then
  
  canvas.FillStyle = 0
  For x = 0 To width - 1
    For y = 0 To height - 1
      showPoint = True
      If (IsMissing(tx)) Then
        Value = image(x, y)
        Else
        If (x >= tx) And (x < tx + subImageWidth) And (y >= ty) And (y < ty + subImageHeight) Then
          Value = image(x, y)
          Else
          Value = 0
          showPoint = False
        End If
      End If
      
      If (showPoint) Then
        Select Case processType
          Case 1 'red
            c = RGB(Value, 0, 0)
          Case 2 'green
            c = RGB(0, Value, 0)
          Case 3 'blue
            c = RGB(0, 0, Value)
          Case 4 'edges
            Value = 255 - Value
            c = RGB(Value, Value, Value)
          Case Else
            c = RGB(Value, Value, Value)
        End Select
        canvas.FillColor = c
        screenX(0) = (x / width) * canvas.ScaleWidth
        screenY(0) = (y / height) * canvas.ScaleHeight
        screenX(1) = ((x + 1) / width) * canvas.ScaleWidth
        screenY(1) = ((y + 1) / height) * canvas.ScaleHeight
        canvas.Line (screenX(0), screenY(0))-(screenX(1), screenY(1)), c, B
      End If
    Next
  Next
  
  End If
  
End Sub


Public Sub showStereoMatches(canvas As PictureBox, ImageNo As Integer)
  Dim x As Integer
  Dim y As Integer
  Dim screenX(2) As Single
  Dim screenY(2) As Single
  Dim c As Long
  Dim i As Integer
  Dim r As Integer
  Dim g As Integer
  Dim b As Integer
  
  canvas.FillStyle = 0
  For i = 0 To NoOfStereoMatches - 1
    r = Int(Rnd * 255)
    g = Int(Rnd * 255)
    b = Int(Rnd * 255)
    c = RGB(r, g, b)
    canvas.FillColor = c
  
    x = stereoMatch(i, 0)
    y = stereoMatch(i, 1)
    screenX(0) = (x / width) * canvas.ScaleWidth
    screenY(0) = (y / height) * canvas.ScaleHeight
    screenX(1) = ((x + StereoPatchSize) / width) * canvas.ScaleWidth
    screenY(1) = ((y + StereoPatchSize) / height) * canvas.ScaleHeight
    canvas.Line (screenX(0), screenY(0))-(screenX(1), screenY(1)), c, B
  
    x = stereoMatch(i, 2)
    y = stereoMatch(i, 3)
    screenX(0) = (x / width) * canvas.ScaleWidth
    screenY(0) = (y / height) * canvas.ScaleHeight
    screenX(1) = ((x + StereoPatchSize) / width) * canvas.ScaleWidth
    screenY(1) = ((y + StereoPatchSize) / height) * canvas.ScaleHeight
    canvas.Line (screenX(0), screenY(0))-(screenX(1), screenY(1)), c, B
  
  Next
End Sub


Public Sub saveStereo(filename As String)
  On Error GoTo saveStereo_err
  
  Dim x As Single
  Dim y As Single
  Dim z As Single
  Dim i As Integer
  Dim filenumber As Integer
  
  filenumber = FreeFile
  Open filename For Output As #filenumber
    Print #filenumber, NoOfStereoMatches
    For i = 0 To NoOfStereoMatches - 1
      x = stereoMatch(i, 0)
      y = stereoMatch(i, 1)
      z = stereoMatch(i, 7)
      Print #filenumber, x & ", " & y & ", " & z
    Next
  Close #filenumber
  
saveStereo_exit:
  Exit Sub
saveStereo_err:
  MsgBox "classImageProcessing/saveStereo/" & Error$(Err) & "/" & Err, , "Error"
  Resume saveStereo_exit
End Sub


Public Sub loadStereo(filename As String)
  On Error GoTo loadStereo_err
  
  Dim x As Single
  Dim y As Single
  Dim z As Single
  Dim i As Integer
  Dim filenumber As Integer
  
  filenumber = FreeFile
  Open filename For Input As #filenumber
    Input #filenumber, NoOfStereoMatches
    For i = 0 To NoOfStereoMatches - 1
      Input #filenumber, x
      stereoMatch(i, 0) = x
      Input #filenumber, y
      stereoMatch(i, 1) = y
      Input #filenumber, z
      stereoMatch(i, 7) = z
    Next
  Close #filenumber
  
loadStereo_exit:
  Exit Sub
loadStereo_err:
  MsgBox "classImageProcessing/loadStereo/" & Error$(Err) & "/" & Err, , "Error"
  Resume loadStereo_exit
End Sub


Public Sub showStereoDepth(canvas As PictureBox, minDistance As Single, maxDistance As Single, Red As Integer, Green As Integer, Blue As Integer)
  Dim x As Integer
  Dim y As Integer
  Dim xx As Integer
  Dim yy As Integer
  Dim screenX(2) As Single
  Dim screenY(2) As Single
  Dim c As Long
  Dim i As Integer
  Dim g As Single
  
  canvas.FillStyle = 0
  For i = 0 To NoOfStereoMatches - 1
    If (stereoMatch(i, 7) > minDistance) And (stereoMatch(i, 7) < maxDistance) Then
    
      'g = Int((1 - stereoMatch(i, 7)) * 255)
      'c = RGB(0, g, 0)
      'canvas.FillColor = c
  
      'x = stereoMatch(i, 5)
      'y = stereoMatch(i, 6)
      x = stereoMatch(i, 0)
      y = stereoMatch(i, 1)
      
      For xx = x To x + StereoPatchSize - 1
        For yy = y To y + StereoPatchSize - 1
          g = image(xx, yy) / 255
          c = RGB(Int(g * Red), Int(g * Green), Int(g * Blue))
          canvas.FillColor = c
          screenX(0) = (xx / width) * canvas.ScaleWidth
          screenY(0) = (yy / height) * canvas.ScaleHeight
          screenX(1) = ((xx + 1) / width) * canvas.ScaleWidth
          screenY(1) = ((yy + 1) / height) * canvas.ScaleHeight
          canvas.Line (screenX(0), screenY(0))-(screenX(1), screenY(1)), c, B
        Next

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美韩日一区二区三区四区| 91成人网在线| 91视频精品在这里| 日韩美女视频一区二区在线观看| 国产精品女同一区二区三区| 日韩av一区二| 一本大道av一区二区在线播放| 欧美大片一区二区| 亚洲国产日韩精品| 成人av免费观看| 久久免费电影网| 免费成人在线视频观看| 色素色在线综合| 国产精品嫩草久久久久| 久久福利资源站| 宅男在线国产精品| 午夜精品成人在线视频| 日本丶国产丶欧美色综合| 国产精品久久久久久久久果冻传媒| 免费观看成人鲁鲁鲁鲁鲁视频| 欧美又粗又大又爽| 亚洲欧美日韩国产综合在线| 成人av资源下载| 国产香蕉久久精品综合网| 美腿丝袜在线亚洲一区| 欧美国产精品专区| 国产成人免费视频精品含羞草妖精| 日韩欧美精品在线视频| 亚洲www啪成人一区二区麻豆| 91在线看国产| 亚洲欧美视频一区| 91麻豆成人久久精品二区三区| 国产精品久久免费看| 国产成人亚洲综合a∨婷婷图片| 久久综合九色综合欧美98| 久久99精品久久只有精品| 日韩精品专区在线| 国产精一品亚洲二区在线视频| 精品免费国产二区三区| 国产伦精品一区二区三区免费迷| 精品国产凹凸成av人网站| 狠狠色狠狠色综合系列| 欧美xxxxx裸体时装秀| 国产在线观看一区二区| 国产亚洲精品7777| 成人综合激情网| 亚洲视频一区在线| 欧美中文字幕亚洲一区二区va在线| 一级特黄大欧美久久久| 67194成人在线观看| 免费在线观看视频一区| 精品久久久久久久久久久久久久久久久| 美国一区二区三区在线播放| 久久综合视频网| 99精品国产91久久久久久| 一区二区三区视频在线看| 欧美日韩三级视频| 久久99热99| 国产精品传媒在线| 欧美日韩国产另类不卡| 精品一区二区久久| 亚洲丝袜制服诱惑| 日韩午夜三级在线| 丁香激情综合国产| 午夜影院久久久| 精品福利视频一区二区三区| 成人综合在线观看| 亚洲成人免费视| 亚洲国产精品传媒在线观看| 欧美综合天天夜夜久久| 精品在线一区二区三区| 亚洲日穴在线视频| 日韩免费视频线观看| 99久久久免费精品国产一区二区 | 精品粉嫩超白一线天av| 成人国产精品免费观看| 日韩福利视频网| 成人免费在线播放视频| 欧美一区二区三区影视| 99re免费视频精品全部| 久久99久久99| 一区二区三区加勒比av| 久久久美女毛片| 欧美一区二区三区的| 91视频国产观看| 国产成人综合网站| 日韩在线一二三区| 尤物av一区二区| 国产拍揄自揄精品视频麻豆| 日韩午夜电影在线观看| 色老综合老女人久久久| 成人综合在线视频| 国产精品自拍一区| 蜜桃视频在线观看一区二区| 亚洲自拍偷拍麻豆| 日韩美女久久久| 亚洲国产精品黑人久久久| 精品第一国产综合精品aⅴ| 欧美吻胸吃奶大尺度电影| 不卡一区二区三区四区| 国产一区二区导航在线播放| 日本成人中文字幕| 亚洲综合999| 一区二区三区日韩精品视频| 国产精品萝li| 国产精品乱码一区二区三区软件 | 色呦呦一区二区三区| 成人小视频在线| 国产999精品久久| 国产麻豆日韩欧美久久| 蜜桃在线一区二区三区| 青娱乐精品视频在线| 男男成人高潮片免费网站| 视频在线观看一区二区三区| 亚洲高清三级视频| 视频一区二区国产| 丝袜美腿成人在线| 青娱乐精品视频| 久久av资源网| 国产精品一级在线| 北条麻妃国产九九精品视频| 成人va在线观看| 色综合久久久久综合| 日本高清不卡视频| 欧美猛男超大videosgay| 欧美日韩高清在线播放| 欧美一级xxx| 国产亚洲欧洲一区高清在线观看| 久久色成人在线| 国产精品国产三级国产普通话蜜臀| 国产欧美日韩精品在线| 国产精品家庭影院| 亚洲一区二区偷拍精品| 日韩精品一级二级| 国产精品一二三四区| 99久久精品国产网站| 欧美亚洲综合网| 日韩视频免费直播| 欧美经典一区二区| 亚洲黄色小说网站| 日韩成人一区二区| 国产成人亚洲综合a∨猫咪| 91在线丨porny丨国产| 欧美老肥妇做.爰bbww视频| 精品久久国产老人久久综合| 国产精品色婷婷| 三级欧美韩日大片在线看| 国产一区二区三区美女| 99热精品国产| 777xxx欧美| 国产精品不卡一区| 午夜欧美在线一二页| 国产一区二区精品久久99| 日本黄色一区二区| 26uuu色噜噜精品一区| 亚洲视频图片小说| 精品一区二区三区蜜桃| 一本久道中文字幕精品亚洲嫩| 日韩欧美国产一区二区在线播放| 久久久精品中文字幕麻豆发布| 一区二区三区在线观看动漫| 久久超级碰视频| 在线视频国产一区| 欧美经典一区二区三区| 青青草91视频| 色欧美片视频在线观看| 国产亚洲一二三区| 日韩国产欧美在线视频| av亚洲精华国产精华精| 亚洲精品在线三区| 亚洲成人综合网站| 99久久精品久久久久久清纯| 精品入口麻豆88视频| 亚洲第一二三四区| 99久久国产综合精品麻豆| 精品久久久久久久人人人人传媒| 亚洲国产精品自拍| 97精品久久久午夜一区二区三区 | 国产成人福利片| 91精品国产色综合久久不卡蜜臀| 亚洲天堂精品在线观看| 国产99精品国产| 国产亚洲欧美色| 国内精品免费在线观看| 91精品国产91久久久久久最新毛片 | 中文字幕欧美激情一区| 麻豆一区二区三区| 91麻豆精品国产自产在线| 一区二区三区精品| 色哦色哦哦色天天综合| 日韩美女视频一区二区| 成人不卡免费av| 国产精品美女www爽爽爽| 国产精品一区二区黑丝| 久久亚洲精华国产精华液| 免费的成人av| 日韩午夜电影av| 美女精品自拍一二三四| 制服丝袜亚洲网站| 伦理电影国产精品|