some improvements on tutorials

This commit is contained in:
Suleyman TURKMEN
2017-07-26 08:39:53 +03:00
parent 8e6e05ed3f
commit 89480801b8
41 changed files with 261 additions and 188 deletions
+6 -2
View File
@@ -125,11 +125,15 @@ static Mat DrawMyImage(int thickness,int nbShape)
return img;
}
int main(void)
int main(int argc, char** argv)
{
ParamColorMar p;
Mat img= DrawMyImage(2,256);
Mat img;
if (argc > 1)
img = imread(argv[1], 0);
else
img = DrawMyImage(2,256);
p.img=img;
p.iColormap=0;