vil1_viff_generic_image Class Reference

#include <vil1_viff.h>

Inheritance diagram for vil1_viff_generic_image:

vil1_image_impl List of all members.

Detailed Description

Generic image implementation for VIFF (Khoros) files.

Definition at line 44 of file vil1_viff.h.


Public Member Functions

 vil1_viff_generic_image (vil1_stream *is)
 vil1_viff_generic_image (vil1_stream *is, int planes, int width, int height, int components, int bits_per_component, vil1_component_format format)
 ~vil1_viff_generic_image ()
virtual int planes () const
 Dimensions. Planes x W x H x Components.
virtual int width () const
 Dimensions: Planes x W x H x Components.
virtual int height () const
 Dimensions: Planes x W x H x Components.
virtual int components () const
 Dimensions: Planes x W x H x Components.
virtual int bits_per_component () const
 Number of bits per component.
virtual enum vil1_component_format component_format () const
 Format.
virtual bool get_section (void *buf, int x0, int y0, int width, int height) const
 Copy plane PLANE of this to BUF.
virtual bool put_section (void const *buf, int x0, int y0, int width, int height)
 Write BUF into image plane PLANE of this.
virtual vil1_image get_plane (unsigned int p) const
 Emulate a single plane image.
virtual bool get_section_rgb_byte (void *buf, int x0, int y0, int width, int height) const
 Return the image interpreted as rgb bytes.
virtual bool get_section_float (void *buf, int x0, int y0, int width, int height) const
virtual bool get_section_byte (void *buf, int x0, int y0, int width, int height) const
char const * file_format () const
 Return a string describing the file format.
bool get_property (char const *tag, void *prop=0) const
 Extra property information.
vxl_uint_32 ispare1 () const
 User defined spare values in header.
vxl_uint_32 ispare2 () const
float fspare1 () const
float fspare2 () const
void set_ispare1 (vxl_uint_32 ispare1)
void set_ispare2 (vxl_uint_32 ispare2)
void set_fspare1 (float fspare1)
void set_fspare2 (float fspare2)
virtual bool set_property (char const *tag, void const *property_value=0) const
virtual vcl_string is_a () const
 Return the name of the class;.
virtual bool is_class (vcl_string const &s) const
 Return true if the name of the class matches the argument.

Private Member Functions

bool read_header ()
bool write_header ()
bool check_endian ()

Private Attributes

vil1_streamis_
int width_
int height_
int maxval_
int planes_
int start_of_data_
int bits_per_component_
enum vil1_component_format format_
bool endian_consistent_
vil1_viff_xvimage header_

Friends

class vil1_viff_file_format

Constructor & Destructor Documentation

vil1_viff_generic_image::vil1_viff_generic_image ( vil1_stream is  ) 

Definition at line 99 of file vil1_viff.cxx.

vil1_viff_generic_image::vil1_viff_generic_image ( vil1_stream is,
int  planes,
int  width,
int  height,
int  components,
int  bits_per_component,
vil1_component_format  format 
)

Definition at line 128 of file vil1_viff.cxx.

vil1_viff_generic_image::~vil1_viff_generic_image (  ) 

Definition at line 143 of file vil1_viff.cxx.


Member Function Documentation

bool vil1_viff_generic_image::read_header (  )  [private]

Definition at line 148 of file vil1_viff.cxx.

bool vil1_viff_generic_image::write_header (  )  [private]

Definition at line 238 of file vil1_viff.cxx.

bool vil1_viff_generic_image::check_endian (  )  [private]

Definition at line 371 of file vil1_viff.cxx.

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

Dimensions. Planes x W x H x Components.

Implements vil1_image_impl.

Definition at line 77 of file vil1_viff.h.

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

Dimensions: Planes x W x H x Components.

Implements vil1_image_impl.

Definition at line 78 of file vil1_viff.h.

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

Dimensions: Planes x W x H x Components.

Implements vil1_image_impl.

Definition at line 79 of file vil1_viff.h.

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

Dimensions: Planes x W x H x Components.

Implements vil1_image_impl.

Definition at line 80 of file vil1_viff.h.

virtual int vil1_viff_generic_image::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 82 of file vil1_viff.h.

virtual enum vil1_component_format vil1_viff_generic_image::component_format (  )  const [inline, virtual]

Format.

A standard RGB RGB RGB image has

Implements vil1_image_impl.

Definition at line 83 of file vil1_viff.h.

bool vil1_viff_generic_image::get_section ( void *  buf,
int  x0,
int  y0,
int  width,
int  height 
) const [virtual]

Copy plane PLANE of this to BUF.

Implements vil1_image_impl.

Definition at line 305 of file vil1_viff.cxx.

bool vil1_viff_generic_image::put_section ( void const *  buf,
int  x0,
int  y0,
int  width,
int  height 
) [virtual]

Write BUF into image plane PLANE of this.

Implements vil1_image_impl.

Definition at line 335 of file vil1_viff.cxx.

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

Emulate a single plane image.

Reimplemented from vil1_image_impl.

Definition at line 390 of file vil1_viff.cxx.

bool vil1_viff_generic_image::get_section_rgb_byte ( void *  buf,
int  x0,
int  y0,
int  width,
int  height 
) const [virtual]

Return the image interpreted as rgb bytes.

Definition at line 397 of file vil1_viff.cxx.

bool vil1_viff_generic_image::get_section_float ( void *  buf,
int  x0,
int  y0,
int  width,
int  height 
) const [virtual]

Definition at line 403 of file vil1_viff.cxx.

bool vil1_viff_generic_image::get_section_byte ( void *  buf,
int  x0,
int  y0,
int  width,
int  height 
) const [virtual]

Definition at line 410 of file vil1_viff.cxx.

char const * vil1_viff_generic_image::file_format (  )  const [virtual]

Return a string describing the file format.

Only file images have a format, others return 0

Reimplemented from vil1_image_impl.

Definition at line 123 of file vil1_viff.cxx.

bool vil1_viff_generic_image::get_property ( char const *  tag,
void *  prop = 0 
) const [virtual]

Extra property information.

Reimplemented from vil1_image_impl.

Definition at line 112 of file vil1_viff.cxx.

vxl_uint_32 vil1_viff_generic_image::ispare1 (  )  const [inline]

User defined spare values in header.

Definition at line 101 of file vil1_viff.h.

vxl_uint_32 vil1_viff_generic_image::ispare2 (  )  const [inline]

Definition at line 102 of file vil1_viff.h.

float vil1_viff_generic_image::fspare1 (  )  const [inline]

Definition at line 103 of file vil1_viff.h.

float vil1_viff_generic_image::fspare2 (  )  const [inline]

Definition at line 104 of file vil1_viff.h.

void vil1_viff_generic_image::set_ispare1 ( vxl_uint_32  ispare1  ) 

Definition at line 417 of file vil1_viff.cxx.

void vil1_viff_generic_image::set_ispare2 ( vxl_uint_32  ispare2  ) 

Definition at line 431 of file vil1_viff.cxx.

void vil1_viff_generic_image::set_fspare1 ( float  fspare1  ) 

Definition at line 445 of file vil1_viff.cxx.

void vil1_viff_generic_image::set_fspare2 ( float  fspare2  ) 

Definition at line 460 of file vil1_viff.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.

virtual vcl_string vil1_image_impl::is_a (  )  const [inline, virtual, inherited]

Return the name of the class;.

Reimplemented in vil1_block_cache_image_impl, vil1_clamp_image_impl, vil1_crop_image_impl, vil1_flip_components_impl, vil1_flipud_impl, vil1_image_as_impl< T >, vil1_image_proxy_impl, vil1_memory_image_impl, vil1_resample_image_impl, vil1_scale_intensities_image_impl, and vil1_skip_image_impl.

Definition at line 141 of file vil1_image_impl.h.

virtual bool vil1_image_impl::is_class ( vcl_string const &  s  )  const [inline, virtual, inherited]

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

Reimplemented in vil1_block_cache_image_impl, vil1_clamp_image_impl, vil1_crop_image_impl, vil1_flip_components_impl, vil1_flipud_impl, vil1_image_as_impl< T >, vil1_image_proxy_impl, vil1_memory_image_impl, vil1_resample_image_impl, vil1_scale_intensities_image_impl, and vil1_skip_image_impl.

Definition at line 144 of file vil1_image_impl.h.


Friends And Related Function Documentation

friend class vil1_viff_file_format [friend]

Definition at line 63 of file vil1_viff.h.


Member Data Documentation

vil1_stream* vil1_viff_generic_image::is_ [private]

Definition at line 46 of file vil1_viff.h.

int vil1_viff_generic_image::width_ [private]

Definition at line 47 of file vil1_viff.h.

int vil1_viff_generic_image::height_ [private]

Definition at line 48 of file vil1_viff.h.

int vil1_viff_generic_image::maxval_ [private]

Definition at line 49 of file vil1_viff.h.

int vil1_viff_generic_image::planes_ [private]

Definition at line 50 of file vil1_viff.h.

int vil1_viff_generic_image::start_of_data_ [private]

Definition at line 52 of file vil1_viff.h.

int vil1_viff_generic_image::bits_per_component_ [private]

Definition at line 53 of file vil1_viff.h.

enum vil1_component_format vil1_viff_generic_image::format_ [private]

Definition at line 54 of file vil1_viff.h.

bool vil1_viff_generic_image::endian_consistent_ [private]

Definition at line 56 of file vil1_viff.h.

vil1_viff_xvimage vil1_viff_generic_image::header_ [private]

Definition at line 57 of file vil1_viff.h.


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