Reference of e.g. Vec::all
Hi there!
I'm rather new to programming in general, just did a small Qt project recently. I am now looking into openCV. Very recently I was trying to look up the function Vec::all (as used in Scalar::all).
To my surprise, the official documentation (http://opencv.willowgarage.com/documentation/cpp/core_basic_structures.html?highlight=vec) just says
template<typename T, int cn> class Vec : public Matx<T, cn, 1>
{
public:
typedef T value_type;
enum { depth = DataDepth<T>::value, channels = cn,
type = CV_MAKETYPE(depth, channels) };
**// various methods ...**
};
typedef Vec<uchar, 2> Vec2b
...
So it is hidden under various methods. I dug up an old looking pdf where I could actually read:
// constructs vector with all the components set to alpha.
static Vec all(_Tp alpha);
But, as I said, the pdf looks old and I just googled it. Isn't there an official documentation? Or am I supposed to look into the source code itself? I actually did find the line
static Vec all(_Tp alpha);
in 'core.hpp', but without any comments, so the old pdf was even more helpful.
Any help will be appreciated, thanks! Chris