Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::RGBImagesVMatrix Class Reference

#include <RGBImage.h>

Inheritance diagram for PLearn::RGBImagesVMatrix:

Inheritance graph
[legend]
Collaboration diagram for PLearn::RGBImagesVMatrix:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RGBImagesVMatrix (RGBImageDB &images_db, const Vec &delta_row, const Vec &delta_col, bool append_class, real scale=1.0, real offset_=0.0)
virtual int width ()
virtual int length ()
virtual void reset ()
virtual void sample (Vec &samplevec)
virtual void seek (int position)
virtual int position ()
virtual bool firstSampleOfObject ()
virtual int nSamplesOfObject ()
virtual int nObjects ()

Protected Attributes

RGBImageVMatrix image_distr
RGBImageDBimages_db
int current_image
bool append_class
int length_
Vec pixelsAndClass
Vec pixels
Vec image_start
 starting "position" (re: position() method) for each image

int width_

Detailed Description

A collection of images that is traversed pixel by pixel in the fashion presribed by an RGBImageVMatrix. The images are traversed in order, and the correct class can optionally be appended as the last column.

Definition at line 274 of file RGBImage.h.


Constructor & Destructor Documentation

PLearn::RGBImagesVMatrix::RGBImagesVMatrix RGBImageDB images_db,
const Vec delta_row,
const Vec delta_col,
bool  append_class,
real  scale = 1.0,
real  offset_ = 0.0
 

Definition at line 509 of file RGBImage.cc.

References append_class, PLearn::RGBImageDB::getImage(), image_distr, image_start, PLearn::RGBImageDB::imageIdAndClass, images_db, PLearn::RGBImageVMatrix::length(), PLearn::TMat< T >::length(), PLearn::TVec< T >::length(), length_, pixels, pixelsAndClass, PLearn::TVec< T >::resize(), PLearn::RGBImageVMatrix::setImage(), PLearn::TVec< T >::subVec(), PLearn::Vec, PLearn::RGBImageVMatrix::width(), and width_.


Member Function Documentation

bool PLearn::RGBImagesVMatrix::firstSampleOfObject  )  [virtual]
 

Definition at line 588 of file RGBImage.cc.

References PLearn::RGBImageVMatrix::first(), and image_distr.

int PLearn::RGBImagesVMatrix::length  )  [virtual]
 

Definition at line 537 of file RGBImage.cc.

References length_.

int PLearn::RGBImagesVMatrix::nObjects  )  [virtual]
 

Definition at line 599 of file RGBImage.cc.

References PLearn::RGBImageDB::imageIdAndClass, images_db, and PLearn::TMat< T >::length().

int PLearn::RGBImagesVMatrix::nSamplesOfObject  )  [virtual]
 

Definition at line 593 of file RGBImage.cc.

References image_distr, and PLearn::RGBImageVMatrix::length().

int PLearn::RGBImagesVMatrix::position  )  [virtual]
 

Definition at line 583 of file RGBImage.cc.

References current_image, image_distr, image_start, and PLearn::RGBImageVMatrix::position().

void PLearn::RGBImagesVMatrix::reset  )  [virtual]
 

Definition at line 543 of file RGBImage.cc.

References current_image, PLearn::RGBImageDB::getImage(), image_distr, PLearn::RGBImageDB::imageIdAndClass, images_db, PLearn::RGBImageVMatrix::reset(), and PLearn::RGBImageVMatrix::setImage().

void PLearn::RGBImagesVMatrix::sample Vec samplevec  )  [virtual]
 

Definition at line 550 of file RGBImage.cc.

References append_class, current_image, PLearn::RGBImageVMatrix::first(), PLearn::RGBImageDB::getImage(), image_distr, PLearn::RGBImageDB::imageIdAndClass, images_db, PLearn::TMat< T >::length(), PLearn::TVec< T >::resize(), PLearn::RGBImageVMatrix::sample(), PLearn::RGBImageVMatrix::setImage(), PLearn::TVec< T >::subVec(), and width_.

void PLearn::RGBImagesVMatrix::seek int  position  )  [virtual]
 

Definition at line 572 of file RGBImage.cc.

References current_image, PLearn::RGBImageDB::getImage(), image_distr, image_start, PLearn::RGBImageDB::imageIdAndClass, images_db, PLearn::TMat< T >::length(), PLearn::RGBImageVMatrix::seek(), and PLearn::RGBImageVMatrix::setImage().

int PLearn::RGBImagesVMatrix::width  )  [virtual]
 

Definition at line 540 of file RGBImage.cc.

References width_.


Member Data Documentation

bool PLearn::RGBImagesVMatrix::append_class [protected]
 

Definition at line 280 of file RGBImage.h.

Referenced by RGBImagesVMatrix(), and sample().

int PLearn::RGBImagesVMatrix::current_image [protected]
 

Definition at line 279 of file RGBImage.h.

Referenced by position(), reset(), sample(), and seek().

RGBImageVMatrix PLearn::RGBImagesVMatrix::image_distr [protected]
 

Definition at line 277 of file RGBImage.h.

Referenced by firstSampleOfObject(), nSamplesOfObject(), position(), reset(), RGBImagesVMatrix(), sample(), and seek().

Vec PLearn::RGBImagesVMatrix::image_start [protected]
 

starting "position" (re: position() method) for each image

Definition at line 284 of file RGBImage.h.

Referenced by position(), RGBImagesVMatrix(), and seek().

RGBImageDB& PLearn::RGBImagesVMatrix::images_db [protected]
 

Definition at line 278 of file RGBImage.h.

Referenced by nObjects(), reset(), RGBImagesVMatrix(), sample(), and seek().

int PLearn::RGBImagesVMatrix::length_ [protected]
 

Definition at line 281 of file RGBImage.h.

Referenced by length(), and RGBImagesVMatrix().

Vec PLearn::RGBImagesVMatrix::pixels [protected]
 

Definition at line 283 of file RGBImage.h.

Referenced by RGBImagesVMatrix().

Vec PLearn::RGBImagesVMatrix::pixelsAndClass [protected]
 

Definition at line 282 of file RGBImage.h.

Referenced by RGBImagesVMatrix().

int PLearn::RGBImagesVMatrix::width_ [protected]
 

Definition at line 285 of file RGBImage.h.

Referenced by RGBImagesVMatrix(), sample(), and width().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:23:08 2004 for PLearn by doxygen 1.3.7