Click here to Skip to main content
11,720,547 members (66,788 online)
Rate this: bad
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 17:59pm
Sergey Alexandrovich Kryukov at 17-May-13 1:02am
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.
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
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:[^], 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.


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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 2,129
1 OriginalGriff 884
2 F-ES Sitecore 640
3 Maciej Los 609
4 Richard MacCutchan 540

Advertise | Privacy | Mobile
Web01 | 2.8.150901.1 | Last Updated 17 May 2013
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