#include <RGBImage.h>
Inheritance diagram for PLearn::RGBImageVMatrix:
Public Member Functions | |
RGBImageVMatrix (RGBImage image, const Vec &delta_row, const Vec &delta_col, 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 | first () |
short hand for (position()==0) | |
void | setImage (RGBImage new_image) |
replace the active image by this one | |
Protected Attributes | |
RGBImage | image |
Vec | delta_row |
row displacement of neighbors | |
Vec | delta_column |
column displacement of neighbors | |
real | scale |
preprocessing of RGB values: | |
real | offset_ |
new_pixel = (old_pixel + offset_)*scale; | |
int | width_ |
(neighbors.length()+1)*3 | |
int | max_delta_row |
int | max_delta_column |
int | first_row |
first row that we can sample | |
int | first_column |
first column that we can sample | |
int | bottom_border_row |
first row that is in the bottom border | |
int | right_border_col |
first column that is in the right border | |
int | n_cols |
right_border_col-first_column | |
int | current_i |
int | current_j |
current (row,column) of target pixel |
Definition at line 222 of file RGBImage.h.
|
The delta_row and delta_col vectors specify the relative position of the neighbors whose RGB values will be put before the "target" pixel's RGB values in each sample. Scale and offset_allow to linearly transform each R, G, and B value, with new_pixel = (old_pixel + offset_)*scale Definition at line 390 of file RGBImage.cc. References bottom_border_row, delta_column, delta_row, first_column, first_row, PLearn::RGBImage::height(), image, PLearn::TVec< T >::length(), MAX, PLearn::max(), max_delta_column, max_delta_row, MIN, PLearn::min(), n_cols, PLERROR, reset(), right_border_col, PLearn::Vec, PLearn::RGBImage::width(), and width_. |
|
short hand for (position()==0)
Definition at line 261 of file RGBImage.h. References current_i, current_j, first_column, and first_row. Referenced by PLearn::RGBImagesVMatrix::firstSampleOfObject(), and PLearn::RGBImagesVMatrix::sample(). |
|
Definition at line 443 of file RGBImage.cc. References bottom_border_row, first_row, and n_cols. Referenced by PLearn::RGBImagesVMatrix::nSamplesOfObject(), PLearn::RGBImagesVMatrix::RGBImagesVMatrix(), and seek(). |
|
Definition at line 464 of file RGBImage.cc. References current_i, current_j, first_column, first_row, and n_cols. Referenced by PLearn::RGBImagesVMatrix::position(). |
|
Definition at line 449 of file RGBImage.cc. References current_i, current_j, first_column, and first_row. Referenced by PLearn::RGBImagesVMatrix::reset(), RGBImageVMatrix(), and setImage(). |
|
Definition at line 469 of file RGBImage.cc. References PLearn::RGB::b, bottom_border_row, current_i, current_j, PLearn::TVec< T >::data(), delta_column, delta_row, first_column, first_row, PLearn::RGB::g, PLearn::RGBImage::getPixel(), image, PLearn::TVec< T >::length(), offset_, PLearn::RGB::r, PLearn::TVec< T >::resize(), right_border_col, PLearn::sample(), sample(), scale, and width_. Referenced by PLearn::RGBImagesVMatrix::sample(), and sample(). |
|
Definition at line 455 of file RGBImage.cc. References current_i, current_j, first_column, first_row, length(), n_cols, and PLERROR. Referenced by PLearn::RGBImagesVMatrix::seek(). |
|
replace the active image by this one
Definition at line 424 of file RGBImage.cc. References bottom_border_row, delta_row, first_column, PLearn::RGBImage::height(), image, PLearn::TVec< T >::length(), max_delta_column, max_delta_row, MIN, n_cols, reset(), right_border_col, and PLearn::RGBImage::width(). Referenced by PLearn::RGBImagesVMatrix::reset(), PLearn::RGBImagesVMatrix::RGBImagesVMatrix(), PLearn::RGBImagesVMatrix::sample(), and PLearn::RGBImagesVMatrix::seek(). |
|
Definition at line 446 of file RGBImage.cc. References width_. Referenced by PLearn::RGBImagesVMatrix::RGBImagesVMatrix(). |
|
first row that is in the bottom border
Definition at line 236 of file RGBImage.h. Referenced by length(), RGBImageVMatrix(), sample(), and setImage(). |
|
Definition at line 239 of file RGBImage.h. Referenced by first(), position(), reset(), sample(), and seek(). |
|
current (row,column) of target pixel
Definition at line 239 of file RGBImage.h. Referenced by first(), position(), reset(), sample(), and seek(). |
|
column displacement of neighbors
Definition at line 229 of file RGBImage.h. Referenced by RGBImageVMatrix(), and sample(). |
|
row displacement of neighbors
Definition at line 228 of file RGBImage.h. Referenced by RGBImageVMatrix(), sample(), and setImage(). |
|
first column that we can sample
Definition at line 235 of file RGBImage.h. Referenced by first(), position(), reset(), RGBImageVMatrix(), sample(), seek(), and setImage(). |
|
first row that we can sample
Definition at line 234 of file RGBImage.h. Referenced by first(), length(), position(), reset(), RGBImageVMatrix(), sample(), and seek(). |
|
Definition at line 227 of file RGBImage.h. Referenced by RGBImageVMatrix(), sample(), and setImage(). |
|
Definition at line 233 of file RGBImage.h. Referenced by RGBImageVMatrix(), and setImage(). |
|
Definition at line 233 of file RGBImage.h. Referenced by RGBImageVMatrix(), and setImage(). |
|
right_border_col-first_column
Definition at line 238 of file RGBImage.h. Referenced by length(), position(), RGBImageVMatrix(), seek(), and setImage(). |
|
new_pixel = (old_pixel + offset_)*scale;
Definition at line 231 of file RGBImage.h. Referenced by sample(). |
|
first column that is in the right border
Definition at line 237 of file RGBImage.h. Referenced by RGBImageVMatrix(), sample(), and setImage(). |
|
preprocessing of RGB values:
Definition at line 230 of file RGBImage.h. Referenced by sample(). |
|
(neighbors.length()+1)*3
Definition at line 232 of file RGBImage.h. Referenced by RGBImageVMatrix(), sample(), and width(). |