1 | initial version |
Ok, I think I see the problem.
First, (but not the problem) we don't know anything about OpenCVSharp, and it's entirely possible for them to mess things up. So really, you're lucky it's obvious.
Second, anything that is lpl is very old and out of date and you should not use it. Look for something called getSttructuringElement and replace the lplConvKernel with that.
Then check all the rest of your code and get rid of any lpl stuff.