Go to the documentation of this file.00001
00002 #ifndef vil_j2k_pyramid_image_resource_h_
00003 #define vil_j2k_pyramid_image_resource_h_
00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00005 #pragma interface
00006 #endif
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #include <vcl_vector.h>
00018 #include <vil/vil_pyramid_image_resource.h>
00019 #include <vil/file_formats/vil_j2k_image.h>
00020
00021 class vil_j2k_pyramid_image_resource : public vil_pyramid_image_resource
00022 {
00023 public:
00024 vil_j2k_pyramid_image_resource(vil_image_resource_sptr const& j2k);
00025 virtual ~vil_j2k_pyramid_image_resource(){}
00026
00027
00028
00029
00030
00031 virtual unsigned nplanes() const;
00032
00033
00034
00035
00036 virtual unsigned ni() const;
00037
00038
00039
00040
00041 virtual unsigned nj() const;
00042
00043
00044 virtual enum vil_pixel_format pixel_format() const;
00045
00046
00047
00048
00049 virtual bool put_view(vil_image_view_base const& , unsigned , unsigned )
00050 { return false; }
00051
00052
00053
00054 virtual char const* file_format() const;
00055
00056
00057
00058
00059
00060
00061
00062
00063 virtual unsigned nlevels() const;
00064
00065
00066 virtual vil_image_view_base_sptr get_copy_view(unsigned i0, unsigned n_i,
00067 unsigned j0, unsigned n_j,
00068 unsigned level) const;
00069
00070
00071
00072 virtual vil_image_view_base_sptr get_copy_view(unsigned level) const
00073 { return get_copy_view(0, ni(), 0, nj(), level); }
00074
00075
00076
00077
00078 virtual vil_image_view_base_sptr get_copy_view(unsigned i0, unsigned n_i,
00079 unsigned j0, unsigned n_j,
00080 const float scale,
00081 float& actual_scale) const;
00082
00083
00084
00085
00086 virtual vil_image_view_base_sptr get_copy_view(const float scale, float& actual_scale) const
00087 { return get_copy_view(0, ni(), 0, nj(), scale, actual_scale); }
00088
00089
00090 virtual bool put_resource(vil_image_resource_sptr const& resc)
00091 {return false;}
00092
00093
00094 virtual vil_image_resource_sptr get_resource(const unsigned level) const;
00095
00096
00097 virtual void print(const unsigned level);
00098
00099 protected:
00100 vil_j2k_pyramid_image_resource();
00101 vil_image_resource_sptr j2k_sptr_;
00102 vil_j2k_image* ptr_;
00103 };
00104
00105
00106 #endif // vil_j2k_pyramid_image_resource_h_