My Project
 All Classes Files Functions Variables Enumerations Pages
Public Member Functions | List of all members
Image< T > Class Template Reference
Inheritance diagram for Image< T >:
ImageStorage< T > Raster< T >

Public Member Functions

 Image (uint w, uint h)
 
- Public Member Functions inherited from Raster< T >
 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

- Public Types inherited from Raster< T >
typedef PixelTraits< T >
::ComputeType 
ComputeType
 
typedef PixelTraits< T >
::ScalarType 
ScalarType
 
- Static Public Member Functions inherited from Raster< T >
static const ScalarType scalar (const T &v)
 
- Private Member Functions inherited from ImageStorage< T >
 ImageStorage (int n)
 

The documentation for this class was generated from the following file: