Lines Matching defs:Width
68 // Thus (c,r) is usually in the domain [0, width) X [0, height)
82 // int w = im.Width();
89 // for (int c = 0; c < im->Width(); ++c) {
192 int Width() const {return image_->width; }
235 WImageView<T> View(int c, int r, int width, int height);
271 WImageViewC<T, C> View(int c, int r, int width, int height);
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);
330 Allocate(src.Width(), src.Height());
367 WImageBufferC(int width, int height) : WImageC<T, C>(0) {
368 Allocate(width, height);
377 void Allocate(int width, int height);
387 Allocate(src.Width(), src.Height());
426 WImageView(WImage<T>* img, int c, int r, int width, int height);
429 // If not given width_step assumed to be same as width.
430 WImageView(T* data, int width, int height, int channels, int width_step = -1);
468 int c, int r, int width, int height);
471 WImageViewC(T* data, int width, int height, int width_step = -1);
531 inline void WImageBuffer<T>::Allocate(int width, int height, int nchannels)
533 if (IsNull() || WImage<T>::Width() != width ||
536 WImage<T>::image_ = cvCreateImage(cvSize(width, height),
542 inline void WImageBufferC<T, C>::Allocate(int width, int height)
544 if (IsNull() || WImage<T>::Width() != width || WImage<T>::Height() != height) {
546 WImageC<T, C>::SetIpl(cvCreateImage(cvSize(width, height),WImage<T>::Depth(), C));
554 WImageView<T>::WImageView(WImage<T>* img, int c, int r, int width, int height)
559 header_.width = width;
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);
577 WImageViewC<T, C>::WImageViewC(WImageC<T, C>* img, int c, int r, int width, int height)
582 header_.width = width;
595 WImageViewC<T, C>::WImageViewC(T* data, int width, int height, int width_step)
598 cvInitImageHeader(&header_, cvSize(width, height), WImage<T>::Depth(), C);
608 WImageView<T> WImage<T>::View(int c, int r, int width, int height) {
609 return WImageView<T>(this, c, r, width, height);
613 WImageViewC<T, C> WImageC<T, C>::View(int c, int r, int width, int height) {
614 return WImageViewC<T, C>(this, c, r, width, height);