while ( !frontier.max_size())
{
if (img(p.x,p.y) >= lowthreshold)
{
img(p.x,p.y)=max;
frontier.push_back(Point(p.x,p.y));
p.x++;
p.y++;
}
else
{
img(p.x,p.y)=0;
}
}
i am trying to write a program to perform thresholding on an image. through the program i have written am not getting any errors but i am not getting any output either.....i am getting the original image itself