Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi,I think your problem can be solved by defining a global variable.

something like this:

void main void() { Mat img=imread("Nature.jpg"); for(;;) //for loop #1 { //use img here }

for(;;) //for loop #2 { //use img here } and so on...

return 0; }

Hi,I think your problem can be solved by defining a global variable.

something like this:

void main void()
{
Mat img=imread("Nature.jpg");
for(;;) //for loop #1
{
//use img here
}

}

for(;;) //for loop #2 { //use img here } and so on...

on...

return 0; }

}