dcsimg
Results 1 to 5 of 5

Thread: harris corner detector

  1. #1

    Thread Starter
    Banned
    Join Date
    Mar 2009
    Posts
    764

    harris corner detector

    I trying to use this :
    http://accord-framework.net/docs/htm...essImage_1.htm

    when I write
    Imports Accord.Imaging it errors
    maybe I need to install something and somehow reference it I don't know.

  2. #2

    Thread Starter
    Banned
    Join Date
    Mar 2009
    Posts
    764

    Re: harris corner detector

    https://docs.nuget.org/consume/package-manager-console
    I typed Install-Package Accord.Imaging it run something that looked magical would be the only way to describe it and the imports was errorless

    but this errors :
    ProcessImage (
    image As Bitmap
    ) As List(Of IntPoint)

    it doesn't seem to recognize the processimage function

  3. #3

    Thread Starter
    Banned
    Join Date
    Mar 2009
    Posts
    764

    Re: harris corner detector

    Dim dd As New Accord.Imaging.HarrisCornersDetector
    dd.ProcessImage(

    now it was recognised

  4. #4
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    104,153

    Re: harris corner detector

    The whole point of importing the Accord.Imaging namespace is to not have to qualify types that are it's members, hence:
    Code:
    Dim dd As New HarrisCornersDetector
    dd.ProcessImage(
    is what you should have used.

    By the way, that NuGet package manager basically just downloads a library from the web and references it in your project. You could have done the same thing manually if you'd wanted to but it's generally better to use NuGet when a package is available.

    For more information on assemblies and namespaces, you might like to follow the Blog link in my signature below and check out my post on the subject.

  5. #5
    Banned
    Join Date
    Aug 2016
    Posts
    62

    Re: harris corner detector

    I added the nugget and used the code :
    Code:
    Imports Accord.Imaging
    Public Class Form1
     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
     Dim myimage As Bitmap
    
     myimage = New Bitmap("C:\s1.bmp")
     Dim dd As New Accord.Imaging.HarrisCornersDetector
     Dim l1 As List(Of AForge.IntPoint)
     l1 = dd.ProcessImage(myimage)
     MsgBox("")
     End Sub
    End Class
    I get an error at AForge.IntPoint
    error type not defined ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width