Assertion failed (size.width>0 && size.height>0)

Mat pic = imread("1.png");

换成

Mat pic = imread("E://visual studio 2013//Projects//ConsoleApplication1//ConsoleApplication1//Debug//1.png");

推荐阅读更多精彩内容