#include <vimt_gaussian_pyramid_builder_2d.h>
Inheritance diagram for vimt_gaussian_pyramid_builder_2d< T >:

Smooth with a gaussian filter (1-5-8-5-1 by default) and subsample so that image at level i-1 is half the size of that at level i
Definition at line 19 of file vimt_gaussian_pyramid_builder_2d.h.
Public Member Functions | |
| vimt_gaussian_pyramid_builder_2d () | |
| Dflt ctor. | |
| virtual | ~vimt_gaussian_pyramid_builder_2d () |
| Destructor. | |
| unsigned | filter_width () const |
| Current filter width. | |
| void | set_filter_width (unsigned) |
| Set current filter width (must be 3 or 5 at present). | |
| virtual vimt_image_pyramid * | new_image_pyramid () const |
| Create new (empty) pyramid on heap. | |
| virtual void | set_max_levels (int max_l) |
| Define maximum number of levels to build. | |
| virtual int | max_levels () const |
| Get the current maximum number levels allowed. | |
| virtual void | build (vimt_image_pyramid &, const vimt_image &) const |
| Build pyramid. | |
| virtual void | extend (vimt_image_pyramid &) const |
| Extend pyramid. | |
| void | gauss_reduce (const vimt_image_2d_of< T > &src_im, vimt_image_2d_of< T > &dest_im) const |
| Smooth and subsample src_im to produce dest_im. | |
| virtual double | scale_step () const |
| Scale step between levels. | |
| unsigned | min_y_size () const |
| Get the minimum Y size of the top layer of the pyramid. | |
| unsigned | min_x_size () const |
| Get the minimum X size of the top layer of the pyramid. | |
| virtual void | set_min_size (unsigned X, unsigned Y) |
| Set the minimum size of the top layer of the pyramid. | |
| short | version_no () const |
| Version number for I/O. | |
| virtual vcl_string | is_a () const |
| Name of the class. | |
| virtual bool | is_class (vcl_string const &s) const |
| Does the name of the class match the argument?. | |
| virtual vimt_image_pyramid_builder * | clone () const |
| Create a copy on the heap and return base class pointer. | |
| virtual void | print_summary (vcl_ostream &os) const |
| Print class to os. | |
| virtual void | b_write (vsl_b_ostream &bfs) const |
| Save class to binary file stream. | |
| virtual void | b_read (vsl_b_istream &bfs) |
| Load class from binary file stream. | |
Protected Member Functions | |
| void | check_pyr (vimt_image_pyramid &im_pyr, int n_levels) const |
| Checks pyramid has at least n levels of correct type. | |
| void | empty_pyr (vimt_image_pyramid &im_pyr) const |
| Deletes all data in im_pyr. | |
Private Attributes | |
| int | max_levels_ |
| vimt_image_2d_of< T > | work_im_ |
| unsigned | filter_width_ |
| Filter width (usually 5 for a 15851 filter, or 3 for a 121 filter). | |
| unsigned | minXSize_ |
| Minimum size in X direction of top layer of pyramid. | |
| unsigned | minYSize_ |
| Minimum size in Y direction of top layer of pyramid. | |
|
|||||||||
|
Dflt ctor.
Definition at line 23 of file vimt_gaussian_pyramid_builder_2d.txx. |
|
|||||||||
|
Destructor.
Definition at line 32 of file vimt_gaussian_pyramid_builder_2d.txx. |
|
||||||||||
|
Load class from binary file stream.
Implements vimt_image_pyramid_builder. Reimplemented in vimt_gaussian_pyramid_builder_2d_general< T >. Definition at line 298 of file vimt_gaussian_pyramid_builder_2d.txx. |
|
||||||||||
|
Save class to binary file stream.
Implements vimt_image_pyramid_builder. Reimplemented in vimt_gaussian_pyramid_builder_2d_general< T >. Definition at line 288 of file vimt_gaussian_pyramid_builder_2d.txx. |
|
||||||||||||||||
|
Build pyramid.
Implements vimt_image_pyramid_builder. Reimplemented in vimt_gaussian_pyramid_builder_2d_general< T >. Definition at line 142 of file vimt_gaussian_pyramid_builder_2d.txx. |
|
||||||||||||||||
|
Checks pyramid has at least n levels of correct type.
Definition at line 121 of file vimt_gaussian_pyramid_builder_2d.txx. |
|
|||||||||
|
Create a copy on the heap and return base class pointer.
Implements vimt_image_pyramid_builder. Reimplemented in vimt_gaussian_pyramid_builder_2d_general< T >. Definition at line 273 of file vimt_gaussian_pyramid_builder_2d.txx. |
|
||||||||||
|
Deletes all data in im_pyr.
Definition at line 112 of file vimt_gaussian_pyramid_builder_2d.txx. |
|
||||||||||
|
Extend pyramid. The first layer of the pyramid must already be set. Scale steps must be equal. Implements vimt_image_pyramid_builder. Reimplemented in vimt_gaussian_pyramid_builder_2d_general< T >. Definition at line 199 of file vimt_gaussian_pyramid_builder_2d.txx. |
|
|||||||||
|
Current filter width.
Definition at line 49 of file vimt_gaussian_pyramid_builder_2d.h. |
|
||||||||||||||||
|
Smooth and subsample src_im to produce dest_im. Applies filter in x and y, then samples every other pixel. Filter width defined by set_filter_width() Definition at line 86 of file vimt_gaussian_pyramid_builder_2d.txx. |
|
|||||||||
|
Name of the class.
Reimplemented from vimt_image_pyramid_builder. Reimplemented in vimt_gaussian_pyramid_builder_2d_general< T >. |
|
||||||||||
|
Does the name of the class match the argument?.
Reimplemented from vimt_image_pyramid_builder. Reimplemented in vimt_gaussian_pyramid_builder_2d_general< T >. Definition at line 257 of file vimt_gaussian_pyramid_builder_2d.txx. |
|
|||||||||
|
Get the current maximum number levels allowed.
Implements vimt_image_pyramid_builder. Definition at line 53 of file vimt_gaussian_pyramid_builder_2d.txx. |
|
|||||||||
|
Get the minimum X size of the top layer of the pyramid. Defaults to 5. Definition at line 91 of file vimt_gaussian_pyramid_builder_2d.h. |
|
|||||||||
|
Get the minimum Y size of the top layer of the pyramid. Defaults to 5. Definition at line 87 of file vimt_gaussian_pyramid_builder_2d.h. |
|
|||||||||
|
Create new (empty) pyramid on heap. Caller responsible for its deletion Implements vimt_image_pyramid_builder. Definition at line 62 of file vimt_gaussian_pyramid_builder_2d.txx. |
|
||||||||||
|
Print class to os.
Implements vimt_image_pyramid_builder. Reimplemented in vimt_gaussian_pyramid_builder_2d_general< T >. Definition at line 281 of file vimt_gaussian_pyramid_builder_2d.txx. |
|
|||||||||
|
Scale step between levels.
Implements vimt_image_pyramid_builder. Reimplemented in vimt_gaussian_pyramid_builder_2d_general< T >. Definition at line 70 of file vimt_gaussian_pyramid_builder_2d.txx. |
|
||||||||||
|
Set current filter width (must be 3 or 5 at present).
Definition at line 77 of file vimt_gaussian_pyramid_builder_2d.txx. |
|
||||||||||
|
Define maximum number of levels to build. Limits levels built in subsequent calls to build() Useful efficiency measure. As build() only takes a shallow copy of the original image, using max_l=1 avoids any copying or smoothing. Implements vimt_image_pyramid_builder. Definition at line 40 of file vimt_gaussian_pyramid_builder_2d.txx. |
|
||||||||||||||||
|
Set the minimum size of the top layer of the pyramid.
Definition at line 94 of file vimt_gaussian_pyramid_builder_2d.h. |
|
|||||||||
|
Version number for I/O.
Reimplemented from vimt_image_pyramid_builder. Reimplemented in vimt_gaussian_pyramid_builder_2d_general< T >. Definition at line 265 of file vimt_gaussian_pyramid_builder_2d.txx. |
|
|||||
|
Filter width (usually 5 for a 15851 filter, or 3 for a 121 filter).
Definition at line 26 of file vimt_gaussian_pyramid_builder_2d.h. |
|
|||||
|
Definition at line 21 of file vimt_gaussian_pyramid_builder_2d.h. |
|
|||||
|
Minimum size in X direction of top layer of pyramid.
Definition at line 29 of file vimt_gaussian_pyramid_builder_2d.h. |
|
|||||
|
Minimum size in Y direction of top layer of pyramid.
Definition at line 32 of file vimt_gaussian_pyramid_builder_2d.h. |
|
|||||
|
Definition at line 23 of file vimt_gaussian_pyramid_builder_2d.h. |
1.4.4