17 #ifndef vil_openjpeg_h_ 18 #define vil_openjpeg_h_ 51 const char *
tag()
const override {
return "jp2"; }
55 return static_cast<vil_openjpeg_file_format*>(
this)->
65 return static_cast<vil_openjpeg_file_format*>(
this)->
75 virtual const char *
tag()
const {
return "jpt"; }
79 return static_cast<vil_openjpeg_file_format*>(
this)->
89 return static_cast<vil_openjpeg_file_format*>(
this)->
99 const char *
tag()
const override {
return "j2k"; }
103 return static_cast<vil_openjpeg_file_format*>(
this)->
110 unsigned int nplanes,
113 return static_cast<vil_openjpeg_file_format*>(
this)->
125 unsigned int ni,
unsigned int nj,
unsigned int nplanes,
134 unsigned int nplanes()
const override;
135 unsigned int ni()
const override;
136 unsigned int nj()
const override;
147 unsigned int i0,
unsigned int ni,
unsigned int j0,
unsigned int nj)
const override;
156 unsigned i0,
unsigned ni,
unsigned j0,
unsigned nj,
157 unsigned reduction)
const;
160 unsigned int i0,
unsigned int j0)
override;
162 bool get_property(
char const* tag,
void* property_value =
nullptr)
const override;
169 template<
typename PIXEL_TYPE>
172 unsigned int i0,
unsigned int ni,
unsigned int j0,
unsigned int nji)
const;
An abstract base class of smart pointers to actual image data in memory.
~vil_openjpeg_image(void) override
vil_openjpeg_image(vil_stream *is, unsigned int ni, unsigned int nj, unsigned int nplanes, vil_pixel_format format, vil_openjpeg_format opjfmt)
unsigned int nplanes() const override
Dimensions: Planes x ni x nj.
vil_image_view_base_sptr opj2vil(void *opj_view, unsigned int i0, unsigned int ni, unsigned int j0, unsigned int nji) const
virtual unsigned int nreductions() const
Reductions.
bool get_property(char const *tag, void *property_value=nullptr) const override
Extra property information.
vil_openjpeg_image_impl * impl_
bool is_valid(void) const
Stream interface for VIL image loaders.
enum vil_pixel_format pixel_format() const override
Pixel Format.
Abstract representation of an image source or image destination.
unsigned int nj() const override
Dimensions: Planes x ni x nj.
vil_openjpeg_format
OpenJPEG Codec.
vil_image_view_base_sptr get_copy_view() const
Create a read/write view of a copy of all the data.
virtual vil_image_view_base_sptr get_copy_view_reduced(unsigned i0, unsigned ni, unsigned j0, unsigned nj, unsigned reduction) const
Create a read/write view of a copy of this data.
unsigned int ni() const override
Dimensions: Planes x ni x nj.
bool put_view(const vil_image_view_base &im, unsigned int i0, unsigned int j0) override
const char * file_format() const override
Return a string describing the file format.
Representation of a generic image source or destination.
Derived image resource for JPEG2000 imagery using OpenJPEG.