Click here to Skip to main content
15,888,803 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
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
Updated 14-Oct-12 22:03pm
v3
Comments
Sergey Alexandrovich Kryukov 14-Oct-12 23:01pm    
Not enough information to reveal the problem.
--SA
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.
--SA

1 solution

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.

—SA
 
Share this answer
 
Comments
fjdiewornncalwe 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.
--SA

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900