1 #ifndef _JPEG2000_IMAGE_INFO_H_ 2 #define _JPEG2000_IMAGE_INFO_H_ 64 return (stream & paths & coding_parameters & codestreams & meta_data & meta_data_hyperlinks);
69 out <<
"Coding parameters: " << endl
70 <<
"---------------------- " << endl
73 if (info.
paths.size() > 0)
75 for (multimap<string, int>::const_iterator i = info.
paths.begin(); i != info.
paths.end(); i++)
77 out <<
"Codestream index " << (*i).second + 1 <<
":" << endl;
78 out <<
"------------------------" << endl;
79 out <<
"Path: " << (*i).first << endl;
80 out << info.
codestreams[(*i).second] << endl << endl;
86 for (vector<CodestreamIndex>::const_iterator i = info.
codestreams.begin(); i != info.
codestreams.end(); i++, ind++)
88 out <<
"Codestream index " << ind <<
":" << endl;
89 out <<
"------------------------" << endl << *i << endl << endl;
93 out << endl <<
"Meta-data: ";
96 out << endl <<
"Meta-data-hyperlinks: ";
multimap< string, int > paths
Paths of the hyperlinks (if any)
Definition: image_info.h:28
static void copy(std::vector< T > &dest, const std::vector< T > &src)
Copies a vector.
Definition: base.h:30
ImageInfo(const ImageInfo &info)
Copy constructor.
Definition: image_info.h:43
vector< CodestreamIndex > codestreams
Codestreams information.
Definition: image_info.h:30
Metadata meta_data
Meta-data information.
Definition: image_info.h:27
Contains the indexing information of a JPEG2000 image.
Definition: image_info.h:24
CodingParameters coding_parameters
Coding parameters.
Definition: image_info.h:29
Contains the coding parameters of a JPEG2000 image codestream.
Definition: coding_parameters.h:23
ImageInfo()
Empty constructor.
Definition: image_info.h:36
vector< Metadata > meta_data_hyperlinks
Meta-data of the hyperlinks.
Definition: image_info.h:31
Set of classes for handling (reading and indexing) image files with the format defined in the Part 1 ...
Definition: codestream_index.h:10
virtual ~ImageInfo()
Definition: image_info.h:103
friend ostream & operator<<(ostream &out, const ImageInfo &info)
Definition: image_info.h:67
const ImageInfo & operator=(const ImageInfo &info)
Copy assignment.
Definition: image_info.h:51
T & SerializeWith(T &stream)
Definition: image_info.h:62