16 #include <NCSECWClient.h> 24 virtual char const *
tag()
const;
89 unsigned compression_ratio = 1);
92 virtual unsigned nplanes()
const;
93 virtual unsigned ni()
const;
94 virtual unsigned nj()
const;
104 unsigned j0,
unsigned nj)
const;
107 unsigned j0,
unsigned nj,
108 double i_factor,
double j_factor)
const;
111 unsigned j0,
unsigned nj,
112 unsigned int output_width,
113 unsigned int output_height)
const;
141 unsigned i0,
unsigned ni,
142 unsigned j0,
unsigned nj,
143 double i_factor,
double j_factor );
146 unsigned i0,
unsigned ni,
147 unsigned j0,
unsigned nj,
148 unsigned int output_width,
149 unsigned int output_height );
159 const char* out_filename,
160 unsigned compression_ratio = 1,
161 unsigned num_lines_block = 1024,
162 bool verbose =
false);
167 const char* out_filename,
168 unsigned compression_ratio = 1,
169 unsigned num_lines_block = 1024,
170 bool verbose =
false);
virtual bool view_fits(const vil_image_view_base &im, unsigned i0, unsigned j0)
Check that a view will fit into the data at the given offset.
An abstract base class of smart pointers to actual image data in memory.
static vil_image_view_base_sptr s_decode_jpeg_2000_by_size(vil_stream *vs, unsigned i0, unsigned ni, unsigned j0, unsigned nj, unsigned int output_width, unsigned int output_height)
vil_image_view_base_sptr get_copy_view() const
unsigned int mMaxLocalDimension
vil_j2k_image(const std::string &fileOrUrl)
virtual unsigned nj() const
Dimensions: Planes x ni x nj.
Class capable of reading JPEG2000 Part I files and ECW (ER Mapper's proprietary format) image files.
bool is_valid() const
Call this after construction to see if you can get valid data from me.
CNCSJPCVilIOStream * mStr
The ermapper stream.
unsigned int mMaxRemoteDimension
Same as.
virtual unsigned nplanes() const
Dimensions: planes x width x height x components.
void unsetMaxImageDimension(bool remote=false)
Call this if you don't want get_copy_view() to do size checking.
virtual bool put_view(const vil_image_view_base &im, unsigned i0, unsigned j0)
JPEG2K compress the data from an image view and insert in resource.
virtual unsigned ni() const
Dimensions: Planes x ni x nj.
static bool s_encode_jpeg2000(vil_stream *vs, const char *out_filename, unsigned compression_ratio=1, unsigned num_lines_block=1024, bool verbose=false)
Encode an entire image by loading the input resource from stream and compressing the input line by li...
Stream interface for VIL image loaders.
CNCSFile * mFileResource
The ermapper file.
virtual bool put_view(const vil_image_view_base &im)
JPEG2K compress the data from the full image view and insert in resource.
Abstract representation of an image source or image destination.
virtual enum vil_pixel_format pixel_format() const
Pixel Format.
virtual vil_image_view_base_sptr get_copy_view_decimated(unsigned i0, unsigned ni, unsigned j0, unsigned nj, double i_factor, double j_factor) const
bool put_line(const vil_image_view_base &im)
JPEG2K compress by inserting an image row (line) at a time.
NCSFileBandInfo * mBandinfo
band information array.
void setMaxImageDimension(unsigned int widthOrHeight, bool remote=false)
When calling get_copy_view(), the function will scale down the output image_view so that neither dime...
Representation of a generic image source or destination.
Wrapper class that allows you to effectively "convert" a vil_stream to a CNCSJPCIOStream.
char const * file_format() const
returns j2k.
virtual vil_image_view_base_sptr get_copy_view_decimated_by_size(unsigned i0, unsigned ni, unsigned j0, unsigned nj, unsigned int output_width, unsigned int output_height) const
static vil_image_view_base_sptr s_decode_jpeg_2000(vil_stream *vs, unsigned i0, unsigned ni, unsigned j0, unsigned nj, double i_factor, double j_factor)
Static function that can be used to decode a JPEG2000 codestream or file (jp2 file).
bool mRemoteFile
file is remote.
unsigned line_index_
the current line being written for compression.
NCSFileViewFileInfoEx * mFinfo
the file information block.
virtual bool get_property(char const *, void *=0) const
Extra property information.