You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In C++, this is the example of LineIterator usage:
// grabs pixels along the line (pt1, pt2)// from 8-bit 3-channel image to the buffer
LineIterator it(img, pt1, pt2, 8);
LineIterator it2 = it;
vector<Vec3b> buf(it.count);
for(int i = 0; i < it.count; i++, ++it)
buf[i] = *(const Vec3b*)*it;
// alternative way of iterating through the linefor(int i = 0; i < it2.count; i++, ++it2)
{
Vec3b val = img.at<Vec3b>(it2.pos());
CV_Assert(buf[i] == val);
}
The problem is the ++ operator has not bind to Rust.
I glanced at it and there seemed to be no relevant example. I appreciate it if anyone can help.
The text was updated successfully, but these errors were encountered:
In C++, this is the example of
LineIterator
usage:The problem is the
++
operator has not bind to Rust.I glanced at it and there seemed to be no relevant example. I appreciate it if anyone can help.
The text was updated successfully, but these errors were encountered: