Lines Matching refs:nchannels
198 int Channels() const {return image_->nChannels; }
267 assert(!img || img->nChannels == Channels());
310 WImageBuffer(int width, int height, int nchannels) : WImage<T>(0) {
311 Allocate(width, height, nchannels);
320 void Allocate(int width, int height, int nchannels);
531 inline void WImageBuffer<T>::Allocate(int width, int height, int nchannels)
534 WImage<T>::Height() != height || WImage<T>::Channels() != nchannels) {
537 WImage<T>::Depth(), nchannels);
565 WImageView<T>::WImageView(T* data, int width, int height, int nchannels, int width_step)
568 cvInitImageHeader(&header_, cvSize(width, height), WImage<T>::Depth(), nchannels);