vil1_flipud_impl Class Reference

#include <vil1_flipud_impl.h>

Inheritance diagram for vil1_flipud_impl:

vil1_image_impl List of all members.

Detailed Description

A view of an image which is flipped up/down (ie top row becomes bottom).

Definition at line 15 of file vil1_flipud_impl.h.


Public Member Functions

 vil1_flipud_impl (vil1_image const &base_)
int planes () const
 Dimensions: Planes x W x H x Components.
int width () const
 Dimensions: Planes x W x H x Components.
int height () const
 Dimensions: Planes x W x H x Components.
int components () const
 Dimensions: Planes x W x H x Components.
int bits_per_component () const
 Number of bits per component.
vil1_component_format component_format () const
 Format.
vil1_image get_plane (unsigned int p) const
 return the ith plane.
bool get_section (void *buf, int x0, int y0, int w, int h) const
 Copy buffer of this to BUF.
bool put_section (void const *buf, int x0, int y0, int w, int h)
 Copy plane PLANE of BUF to this.
virtual vcl_string is_a () const
 Return the name of the class;.
virtual bool is_class (vcl_string const &) const
 Return true if the name of the class matches the argument.
virtual char const * file_format () const
 Return a string describing the file format.
virtual bool get_property (char const *tag, void *property_value=0) const
 Extra property information.
virtual bool set_property (char const *tag, void const *property_value=0) const

Private Attributes

vil1_image base

Constructor & Destructor Documentation

vil1_flipud_impl::vil1_flipud_impl ( vil1_image const &  base_  )  [inline]

Definition at line 18 of file vil1_flipud_impl.h.


Member Function Documentation

int vil1_flipud_impl::planes (  )  const [inline, virtual]

Dimensions: Planes x W x H x Components.

Implements vil1_image_impl.

Definition at line 20 of file vil1_flipud_impl.h.

int vil1_flipud_impl::width (  )  const [inline, virtual]

Dimensions: Planes x W x H x Components.

Implements vil1_image_impl.

Definition at line 21 of file vil1_flipud_impl.h.

int vil1_flipud_impl::height (  )  const [inline, virtual]

Dimensions: Planes x W x H x Components.

Implements vil1_image_impl.

Definition at line 22 of file vil1_flipud_impl.h.

int vil1_flipud_impl::components (  )  const [inline, virtual]

Dimensions: Planes x W x H x Components.

Implements vil1_image_impl.

Definition at line 23 of file vil1_flipud_impl.h.

int vil1_flipud_impl::bits_per_component (  )  const [inline, virtual]

Number of bits per component.

Size (in bits) for the smallest entity of the image.

Implements vil1_image_impl.

Definition at line 24 of file vil1_flipud_impl.h.

vil1_component_format vil1_flipud_impl::component_format (  )  const [inline, virtual]

Format.

A standard RGB RGB RGB image has

Implements vil1_image_impl.

Definition at line 25 of file vil1_flipud_impl.h.

vil1_image vil1_flipud_impl::get_plane ( unsigned int  p  )  const [virtual]

return the ith plane.

Reimplemented from vil1_image_impl.

Definition at line 12 of file vil1_flipud_impl.cxx.

bool vil1_flipud_impl::get_section ( void *  buf,
int  x0,
int  y0,
int  w,
int  h 
) const [virtual]

Copy buffer of this to BUF.

The buffer is stored like this for each pixel: component0(plane0,plane1,plane2,...),component1(plane0,plane1,plane2,...),...
total size of BUF in bytes should be (bits_per_component * components + 7) / 8 i.e. rounding to the next multiple of 8 bits (only correct if 1 byte = 8 bits)

Implements vil1_image_impl.

Definition at line 16 of file vil1_flipud_impl.cxx.

bool vil1_flipud_impl::put_section ( void const *  buf,
int  x0,
int  y0,
int  w,
int  h 
) [virtual]

Copy plane PLANE of BUF to this.

The buffer should look like this for each pixel: component0(plane0,plane1,plane2,...),component1(plane0,plane1,plane2,...),...
total size of BUF in bytes should be (bits_per_component * components + 7) / 8 i.e. rounding to the next multiple of 8 bits (only correct if 1 byte = 8 bits)

Implements vil1_image_impl.

Definition at line 25 of file vil1_flipud_impl.cxx.

vcl_string vil1_flipud_impl::is_a (  )  const [virtual]

Return the name of the class;.

Reimplemented from vil1_image_impl.

Definition at line 34 of file vil1_flipud_impl.cxx.

bool vil1_flipud_impl::is_class ( vcl_string const &   )  const [virtual]

Return true if the name of the class matches the argument.

Reimplemented from vil1_image_impl.

Definition at line 41 of file vil1_flipud_impl.cxx.

virtual char const* vil1_image_impl::file_format (  )  const [inline, virtual, inherited]

Return a string describing the file format.

Only file images have a format, others return 0

Reimplemented in vil1_bmp_generic_image, vil1_gen_generic_image, vil1_gif_loader_saver, vil1_gif_loader_saver_proxy, vil1_iris_generic_image, vil1_jpeg_generic_image, vil1_mit_generic_image, vil1_png_generic_image, vil1_pnm_generic_image, vil1_ras_generic_image, vil1_tiff_generic_image, vil1_viff_generic_image, and vil1_image_proxy_impl.

Definition at line 134 of file vil1_image_impl.h.

bool vil1_image_impl::get_property ( char const *  tag,
void *  property_value = 0 
) const [virtual, inherited]

Extra property information.

Reimplemented in vil1_bmp_generic_image, vil1_gen_generic_image, vil1_gif_loader_saver, vil1_iris_generic_image, vil1_jpeg_generic_image, vil1_mit_generic_image, vil1_png_generic_image, vil1_pnm_generic_image, vil1_ras_generic_image, vil1_tiff_generic_image, vil1_viff_generic_image, vil1_block_cache_image_impl, vil1_image_proxy_impl, vil1_memory_image_impl, vil1_resample_image_impl, and vil1_skip_image_impl.

Definition at line 23 of file vil1_image_impl.cxx.

bool vil1_image_impl::set_property ( char const *  tag,
void const *  property_value = 0 
) const [virtual, inherited]

Reimplemented in vil1_tiff_generic_image, and vil1_image_proxy_impl.

Definition at line 28 of file vil1_image_impl.cxx.


Member Data Documentation

vil1_image vil1_flipud_impl::base [private]

Definition at line 39 of file vil1_flipud_impl.h.


The documentation for this class was generated from the following files:
Generated on Sun Nov 22 05:09:20 2009 for core/vil1 by  doxygen 1.5.1