i am getting this error and i dont know why or understand the reason:
vector<double> fourier_descriptor(Gdiplus::Bitmap myBitmap)
{
vector<double> res;
Contour c;
vector<Pixel> frame;// = c.GetContour(p);
frame = c.GetContour(myBitmap);
return res;
}
the error is in this line
frame = c.GetContour(myBitmap);
I can’t find a reference for the GetContour method, but that looks like you’re trying to pass a Bitmap by value, which (if I remember my C++ correctly) will invoke the copy constructor — and Bitmap doesn’t have a public copy constructor.
If you own Contour, rewrite that function to take a
Bitmap*orBitmap&instead (i.e. pass a pointer or reference), thereby avoiding the copy constructor.