Click here to Skip to main content
11,927,187 members (49,909 online)
Rate this:
Please Sign up or sign in to vote.
See more: C#
Please help me to resolve an error in this code :
// Create a new Harris Corners Detector using the given parameters
HarrisCornersDetector harris = new HarrisCornersDetector(k);
harris.Measure = checkBox1.Checked ? HarrisCornerMeasure.Harris : HarrisCornerMeasure.Nobel;
harris.Threshold = threshold;
harris.Sigma = sigma;

Why the program duplicate about (harriscornerdetecto)
Posted 14-Oct-12 7:57am
Edited 14-Oct-12 23:03pm
Sergey Alexandrovich Kryukov 14-Oct-12 23:01pm
Not enough information to reveal the problem.
ri1987 15-Oct-12 2:50am
Error 1 The type or namespace name 'HarrisCornersDetector' could not be found (are you missing a using directive or an assembly reference?) C:\Users\TA\documents\visual studio 2010\Projects\Harrissr\Harrissr\Form1.cs 29 13 Harrissr

how can i resolve this word ..i dont know what the error
lukeer 15-Oct-12 4:07am
Have you referenced all necessary libraries?
Sergey Alexandrovich Kryukov 15-Oct-12 11:11am
OK, now it's clear what you need to do -- please see my answer.
Learn how CLI assemblies work.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 3

After some clarification of the question, it looks like you did not provide full name of the type HarrisCornersDetector, with the namespace name, but it also likely, that you wanted to use some library available is a different assembly but failed to reference it. See "Add reference" in the project tree in the Solution Explorer to reference the assembly. If you have source code, you should better add this project to the same solution; then you can use the tab "Projects" of the "Add Reference" window to reference the project (it will be compiled to a reference to whatever assembly is created by this project and updated automatically if you change anything in that referenced project). If you only have a compiled assembly without source code, you can add a reference using the "Browse" tab and will need to select a main executable module of the assembly you want to reference; most usually, some *.DLL file.

Marcus Kramer 15-Oct-12 15:29pm
+5. Just what the OP needs.
Sergey Alexandrovich Kryukov 15-Oct-12 15:37pm
Thank you, Marcus, I hope so.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.151126.1 | Last Updated 15 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100