Public Member Functions | |
Image (uint w, uint h) | |
![]() | |
Raster (uint w, uint h, uint p, T *d) | |
uint | width () const |
uint | height () const |
uint | pitch () const |
bool | contiguous () const |
uint | contiguous_size () const |
T * | contiguous_begin () |
const T * | contiguous_begin () const |
T * | contiguous_end () |
const T * | contiguous_end () const |
T * | row (uint r) |
const T * | row (uint r) const |
boost::iterator_range< T * > | row_range (uint r) |
boost::iterator_range< const T * > | row_range (uint r) const |
RowIterator | row_begin () |
RowIterator | row_end () |
ConstRowIterator | row_begin () const |
ConstRowIterator | row_end () const |
void | fill (const T &v) |
Clear the image to a constant value. | |
const ScalarType | maximum_scalar_pixel_value () const |
void | scan (uint y, float x0, const ComputeType &v0, float x1, const ComputeType &v1) |
Fill a line segment on the given half-open range [x0,x1), interpolating between the two given values. More... | |
template<typename V > | |
void | scan (uint y, float x0, const V &v0, float x1, const V &v1, const boost::function< ComputeType(const V &)> &fn) |
Variant scan, interpolates between two values then process them through function before. | |
bool | write_ppmfile (const std::string &, Progress *) const |
bool | write_pgmfile (const std::string &, Progress *) const |
template<> | |
bool | write_pgmfile (const std::string &filename, Progress *target) const |
template<> | |
bool | write_pgmfile (const std::string &filename, Progress *target) const |
template<> | |
bool | write_ppmfile (const std::string &filename, Progress *target) const |
Additional Inherited Members | |
![]() | |
typedef PixelTraits< T > ::ComputeType | ComputeType |
typedef PixelTraits< T > ::ScalarType | ScalarType |
![]() | |
static const ScalarType | scalar (const T &v) |