I am working on a simple CNN program https://github.com/xingdi-eric-yuan/single-layer-convnet/blob/master/ConvNet.cpp here but when I run the code i am encountering this exception. The console is like this I am using visual studio 2010 and open cv 2.4