Click here to Skip to main content
11,932,048 members (58,101 online)
Rate this:
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
Manis Dubey 17-May-13 1:18am
Because it throws compile time error "Cannot implicitly convert type 'Emgu.CV.Structure.MCvAvgComp[][]' to 'FaceRecognition.MCvAvgComp[][]'"
Makes no sense. Do you want me to explain why? I'll even post it in my answer.
Manis Dubey 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 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web03 | 2.8.151126.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