Lines Matching refs:w

112 +    BasicImage(int w, int h, Alloc const & alloc = Alloc())
125 + vigra_precondition((w >= 0) && (h >= 0),
126 + "BasicImage::BasicImage(int w, int h): "
130 + resize(w, h, value_type());
165 + BasicImage(int w, int h, value_type const & d, Alloc const & alloc = Alloc())
178 + vigra_precondition((w >= 0) && (h >= 0),
179 + "BasicImage::BasicImage(int w, int h, value_type const & ): "
183 + resize(w, h, d);
219 + BasicImage(int w, int h, const_pointer d, Alloc const & alloc = Alloc())
232 + vigra_precondition((w >= 0) && (h >= 0),
233 + "BasicImage::BasicImage(int w, int h, const_pointer ): "
237 + resizeCopy(w, h, d);
273 + void resize(int w, int h)
277 + if(w != width_ || h != height_)
278 + resize(w, h, value_type());
300 + void resize(int w, int h, value_type const & d);
306 + void resizeCopy(int w, int h, const_pointer data);
315 +BasicImage<PIXELTYPE, Alloc>::resize(int w, int h, value_type const & d)
319 + vigra_precondition((w >= 0) && (h >= 0),
320 + "BasicImage::resize(int w, int h, value_type const &): "
324 + if (width_ != w || height_ != h) // change size?
329 + if(w*h > 0)
332 + if (w*h != width_*height_) // different sizes, must reallocate
337 + newdata = allocator_.allocate(typename Alloc::size_type(w*h));
338 + std::uninitialized_fill_n(newdata, w*h, d);
339 + newlines = initLineStartArray(newdata, w, h);
347 + std::fill_n(newdata, w*h, d);
348 + newlines = initLineStartArray(newdata, w, h);
358 + width_ = w;
362 + else if(w*h > 0) // keep size, re-init data
365 + std::fill_n(data_, w*h, d);
373 +BasicImage<PIXELTYPE, Alloc>::resizeCopy(int w, int h, const_pointer src_data)
377 + int newsize = w*h;
378 + if (width_ != w || height_ != h) // change size?
389 + newlines = initLineStartArray(newdata, w, h);
398 + newlines = initLineStartArray(newdata, w, h);
408 + width_ = w;
423 +BasicImage<PIXELTYPE, Alloc>::initLineStartArray(value_type * src_data, int w, int h)
430 + lines[y] = src_data + y*w;
439 /** construct view of size w x h
441 - BasicImageView(const_pointer data, int w, int h, int stride = 0)
443 + BasicImageView(const_pointer src_data, int w, int h, int data_stride = 0)
445 width_(w),
447 - stride_(stride == 0 ? w : stride)
448 + stride_(data_stride == 0 ? w : data_stride)
514 + Size2D(int w, int h)
515 + : Diff2D(w, h)
592 + void setSize(int w, int h)
595 + lowerRight_ = upperLeft_ + Size2D(w, h);
1060 - double bleft = VIGRA_CSTD::pow(b, w);
1061 + double bleft = VIGRA_CSTD::pow(b, (double)w);
1063 for(x=w-1; x>=0; --x, --is, --id)