Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# MVC3
It gives error "Cannot implicitly convert type 'Emgu.CV.Structure.MCvAvgComp[][]' to 'FaceRecognition.MCvAvgComp[][]'".
 
Please help me !
Posted 16-May-13 18:59pm
Comments
Sergey Alexandrovich Kryukov at 17-May-13 1:02am
   
Why?
—SA
Manis Dubey at 17-May-13 1:18am
   
Because it throws compile time error "Cannot implicitly convert type 'Emgu.CV.Structure.MCvAvgComp[][]' to 'FaceRecognition.MCvAvgComp[][]'"
Sergey Alexandrovich Kryukov at 17-May-13 1:40am
   
Makes no sense. Do you want me to explain why? I'll even post it in my answer.
—SA
Manis Dubey at 17-May-13 7:45am
   
Thanks, there is issue generated because some references not added succesfully not a basic issue.This is resolved now to adding some references.
Manis Dubey at 17-May-13 1:30am
   
Please resolve my problem, I am waiting your response.

1 solution

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

Solution 1

Resolve the problem. No. It does not make sense at all. Not clear why? I'll explain.
 
This is the same false logic as in some beginners. I'll explain it on simplified example:
"I got compilation error 'you cannot do A'. My question is: how to do A?".
 
Are you getting the idea.
If implicit conversion is wrong, it does not mean that some other conversion exists. It does not. Arrays of different element types are not assignment-compatible. You just write wrong thing, wrong in principle. You could define some "conversion" function, but I don't think you ever need to "convert" one from another.
 
Therefore, don't do this: http://msdn.microsoft.com/en-us/library/exc45z53.aspx[^], I referenced this method just to give you some idea. In fact, you won't need the "conversion".
 
Your "problem" is not a problem and cannot be solved. All you can do is to learn some basics of programming. I would hold on with image recognition for a while.
 
—SA
  Permalink  
v3

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

  Print Answers RSS
0 George Jonsson 215
1 Kornfeld Eliyahu Peter 169
2 OriginalGriff 120
3 PIEBALDconsult 110
4 BillWoodruff 85
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 17 May 2013
Copyright © CodeProject, 1999-2014
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