1 #ifndef vil_pyramid_image_view_h_ 2 #define vil_pyramid_image_view_h_ 19 # include <vcl_msvc_warnings.h> 50 std::vector<double>
const& scales);
86 std::vector<vil_image_view_base_sptr>
images_;
std::vector< vil_image_view_base_sptr > images_
the list of image vieas.
void add_view(vil_image_view_base_sptr &image, double scale)
adds a view to the list of view sorted in the right place based on the scale in descending order.
A base class reference-counting view of some image data.
vil_pyramid_image_view(const vil_image_view< T > &image)
Creates a pyramid with one image only and its scale is set to 1.0 (biggest).
Concrete view of image data of type T held in memory.
void scale_down(const vil_image_view< T > &, vil_image_view_base_sptr &image_out)
generates an image half the size of the given image and takes the averages.
double scale(unsigned level)
unsigned max_levels() const
unsigned nlevels() const
Number of pyramid levels.
bool limit_reached(unsigned i, unsigned j)
returns true if the image size is < 4x4 or the max_level is reached.
virtual ~vil_pyramid_image_view()=default
std::vector< double > scales_
the associated scales of images, scales_.size() is always equals to images_.size().
vil_pyramid_image_view(vil_image_view_base_sptr image)
Creates a pyramid with one image only and its scale is set to 1.0 (biggest).
vil_image_view< T > & operator()(unsigned l)
T pixel_type
The pixel type of the images.
void set_max_level(unsigned l)
A base class reference-counting view of some image data.
vil_pyramid_image_view()
Default constructor, creates an empty list of pyramid.
vil_image_view_base_sptr iterator
vil_image_view_base_sptr get_view(unsigned level, double &scale)
const vil_pyramid_image_view< T > & operator=(const vil_pyramid_image_view< T > &rhs)