Embed
Email

Wave

Document Sample

Shared by: liamei12345
Categories
Tags
Stats
views:
10
posted:
10/22/2011
language:
English
pages:
473
Wavelet and Image class library

1.2-cvs





Generated by Doxygen 1.5.5



Thu Apr 17 11:47:12 2008

Contents



1 Module Index 1

1.1 Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1



2 Namespace Index 3

2.1 Namespace List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3



3 Class Index 5

3.1 Class Hierarchy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5



4 Class Index 7

4.1 Class List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7



5 File Index 9

5.1 File List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9



6 Module Documentation 11

6.1 Classes for images . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

6.2 Classes for Wavelet Transforms . . . . . . . . . . . . . . . . . . . . 21

6.3 Utilities for images and Wavelet Transforms . . . . . . . . . . . . . . 23



7 Namespace Documentation 27

7.1 MagickInter Namespace Reference . . . . . . . . . . . . . . . . . . . 27



8 Class Documentation 33

8.1 _avistdindex_chunk Struct Reference . . . . . . . . . . . . . . . . . 33

8.2 _avistdindex_entry Struct Reference . . . . . . . . . . . . . . . . . . 36

8.3 _avisuperindex_chunk Struct Reference . . . . . . . . . . . . . . . . 37

8.4 _avisuperindex_entry Struct Reference . . . . . . . . . . . . . . . . . 39

ii CONTENTS





8.5 alBITMAPINFOHEADER Struct Reference . . . . . . . . . . . . . . 40

8.6 audio_index_entry Struct Reference . . . . . . . . . . . . . . . . . . 42

8.7 avi_t Struct Reference . . . . . . . . . . . . . . . . . . . . . . . . . . 43

8.8 AviReader Class Reference . . . . . . . . . . . . . . . . . . . . . . . 48

8.9 AVIStreamHeader Struct Reference . . . . . . . . . . . . . . . . . . 52

8.10 AviWriter Class Reference . . . . . . . . . . . . . . . . . . . . . . . 54

8.11 chunk_struct Struct Reference . . . . . . . . . . . . . . . . . . . . . 56

8.12 CoeffInformation Class Reference . . . . . . . . . . . . . . . . . . . 57

8.13 ColorBuffer Class Reference . . . . . . . . . . . . . . . . . . . . . . 66

8.14 ColorImage Class Reference . . . . . . . . . . . . . . . . . . . . . . 75

8.15 ColorVideo Class Reference . . . . . . . . . . . . . . . . . . . . . . 85

8.16 ColumnVector Class Reference . . . . . . . . . . . . . . . . . . . . . 99

8.17 common_struct Struct Reference . . . . . . . . . . . . . . . . . . . . 102

8.18 FileName Class Reference . . . . . . . . . . . . . . . . . . . . . . . 104

8.19 Filter Class Reference . . . . . . . . . . . . . . . . . . . . . . . . . . 109

8.20 FilterSet Class Reference . . . . . . . . . . . . . . . . . . . . . . . . 112

8.21 FullVector Class Reference . . . . . . . . . . . . . . . . . . . . . . . 116

8.22 GreymapFile Class Reference . . . . . . . . . . . . . . . . . . . . . 119

8.23 GreymapReader Class Reference . . . . . . . . . . . . . . . . . . . . 121

8.24 GreymapWriter Class Reference . . . . . . . . . . . . . . . . . . . . 124

8.25 Histogram Class Reference . . . . . . . . . . . . . . . . . . . . . . . 127

8.26 Histogram::hist Struct Reference . . . . . . . . . . . . . . . . . . . . 132

8.27 Image Class Reference . . . . . . . . . . . . . . . . . . . . . . . . . 133

8.28 ImageArray Class Template Reference . . . . . . . . . . . . . 155

8.29 ImageComparison Class Reference . . . . . . . . . . . . . . . . . . . 166

8.30 ImageDenoiser Class Reference . . . . . . . . . . . . . . . . . . . . 172

8.31 ImageInformation Class Reference . . . . . . . . . . . . . . . . . . . 179

8.32 ImageResizer Class Reference . . . . . . . . . . . . . . . . . . . . . 191

8.33 ImageVector Class Reference . . . . . . . . . . . . . . . . . . . . . . 203

8.34 JpgReader Class Reference . . . . . . . . . . . . . . . . . . . . . . . 207

8.35 JpgWriter Class Reference . . . . . . . . . . . . . . . . . . . . . . . 210

8.36 logvals Struct Reference . . . . . . . . . . . . . . . . . . . . . . . . 214

8.37 lq Struct Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . 215

8.38 MirrorPosition Class Reference . . . . . . . . . . . . . . . . . . . . . 216



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

CONTENTS iii





8.39 NTree Class Template Reference . . . . . . . . . . . . . . 221

8.40 PeriodicPosition Class Reference . . . . . . . . . . . . . . . . . . . . 230

8.41 PfcReader Class Reference . . . . . . . . . . . . . . . . . . . . . . . 232

8.42 PfcWriter Class Reference . . . . . . . . . . . . . . . . . . . . . . . 235

8.43 PfgReader Class Reference . . . . . . . . . . . . . . . . . . . . . . . 238

8.44 PfgWriter Class Reference . . . . . . . . . . . . . . . . . . . . . . . 240

8.45 PgmReader Class Reference . . . . . . . . . . . . . . . . . . . . . . 242

8.46 PgmWriter Class Reference . . . . . . . . . . . . . . . . . . . . . . . 244

8.47 PixmapFile Class Reference . . . . . . . . . . . . . . . . . . . . . . 246

8.48 PixmapReader Class Reference . . . . . . . . . . . . . . . . . . . . . 250

8.49 PixmapWriter Class Reference . . . . . . . . . . . . . . . . . . . . . 253

8.50 PpmReader Class Reference . . . . . . . . . . . . . . . . . . . . . . 256

8.51 PpmWriter Class Reference . . . . . . . . . . . . . . . . . . . . . . . 259

8.52 PyramidTransform Class Reference . . . . . . . . . . . . . . . . . . 262

8.53 PyramidTree Class Reference . . . . . . . . . . . . . . . . . . . . . . 265

8.54 RawReader Class Reference . . . . . . . . . . . . . . . . . . . . . . 269

8.55 RawWriter Class Reference . . . . . . . . . . . . . . . . . . . . . . . 273

8.56 ReferenceVector Class Reference . . . . . . . . . . . . . . . . . . . . 276

8.57 riff_struct Struct Reference . . . . . . . . . . . . . . . . . . . . . . . 280

8.58 RowVector Class Reference . . . . . . . . . . . . . . . . . . . . . . . 281

8.59 StandardTransform Class Reference . . . . . . . . . . . . . . . . . . 284

8.60 StillImage Class Reference . . . . . . . . . . . . . . . . . . . . . . . 287

8.61 track_s Struct Reference . . . . . . . . . . . . . . . . . . . . . . . . 298

8.62 VectorPosition Class Reference . . . . . . . . . . . . . . . . . . . . . 301

8.63 video_index_entry Struct Reference . . . . . . . . . . . . . . . . . . 306

8.64 VideoArray Class Template Reference . . . . . . . . . . . . . 307

8.65 VideoFile Class Reference . . . . . . . . . . . . . . . . . . . . . . . 316

8.66 VideoFrame Class Reference . . . . . . . . . . . . . . . . . . . . . . 320

8.67 VideoReader Class Reference . . . . . . . . . . . . . . . . . . . . . . 322

8.68 VideoWriter Class Reference . . . . . . . . . . . . . . . . . . . . . . 325

8.69 VidReader Class Reference . . . . . . . . . . . . . . . . . . . . . . . 327

8.70 VidWriter Class Reference . . . . . . . . . . . . . . . . . . . . . . . 330

8.71 wave_header Struct Reference . . . . . . . . . . . . . . . . . . . . . 333

8.72 Wavelet Class Reference . . . . . . . . . . . . . . . . . . . . . . . . 334



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

iv CONTENTS





8.73 WaveletTransform Class Reference . . . . . . . . . . . . . . . . . . . 340



9 File Documentation 353

9.1 avilib.h File Reference . . . . . . . . . . . . . . . . . . . . . . . . . 353

9.2 AviReader.hh File Reference . . . . . . . . . . . . . . . . . . . . . . 365

9.3 AviWriter.hh File Reference . . . . . . . . . . . . . . . . . . . . . . 366

9.4 CoeffInformation.hh File Reference . . . . . . . . . . . . . . . . . . 367

9.5 ColorBuffer.hh File Reference . . . . . . . . . . . . . . . . . . . . . 368

9.6 ColorImage.hh File Reference . . . . . . . . . . . . . . . . . . . . . 369

9.7 ColorVideo.hh File Reference . . . . . . . . . . . . . . . . . . . . . 370

9.8 ColumnVector.hh File Reference . . . . . . . . . . . . . . . . . . . . 371

9.9 debug.h File Reference . . . . . . . . . . . . . . . . . . . . . . . . . 372

9.10 FileName.hh File Reference . . . . . . . . . . . . . . . . . . . . . . 373

9.11 Filter.hh File Reference . . . . . . . . . . . . . . . . . . . . . . . . . 374

9.12 FullVector.hh File Reference . . . . . . . . . . . . . . . . . . . . . . 376

9.13 GreymapFile.hh File Reference . . . . . . . . . . . . . . . . . . . . . 377

9.14 GreymapReader.hh File Reference . . . . . . . . . . . . . . . . . . . 378

9.15 GreymapWriter.hh File Reference . . . . . . . . . . . . . . . . . . . 379

9.16 Histogram.hh File Reference . . . . . . . . . . . . . . . . . . . . . . 380

9.17 Image.hh File Reference . . . . . . . . . . . . . . . . . . . . . . . . 381

9.18 ImageArray.hh File Reference . . . . . . . . . . . . . . . . . . . . . 382

9.19 ImageComparison.hh File Reference . . . . . . . . . . . . . . . . . . 383

9.20 ImageDenoiser.hh File Reference . . . . . . . . . . . . . . . . . . . . 384

9.21 ImageInformation.hh File Reference . . . . . . . . . . . . . . . . . . 386

9.22 ImageResizer.hh File Reference . . . . . . . . . . . . . . . . . . . . 388

9.23 ImageVector.hh File Reference . . . . . . . . . . . . . . . . . . . . . 389

9.24 JpgReader.hh File Reference . . . . . . . . . . . . . . . . . . . . . . 390

9.25 JpgWriter.hh File Reference . . . . . . . . . . . . . . . . . . . . . . 391

9.26 MagickInter.hh File Reference . . . . . . . . . . . . . . . . . . . . . 392

9.27 MirrorPosition.hh File Reference . . . . . . . . . . . . . . . . . . . . 394

9.28 miscdefs.h File Reference . . . . . . . . . . . . . . . . . . . . . . . . 395

9.29 NTree.hh File Reference . . . . . . . . . . . . . . . . . . . . . . . . 397

9.30 PeriodicPosition.hh File Reference . . . . . . . . . . . . . . . . . . . 398

9.31 PfcReader.hh File Reference . . . . . . . . . . . . . . . . . . . . . . 399



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

CONTENTS v





9.32 PfcWriter.hh File Reference . . . . . . . . . . . . . . . . . . . . . . 400

9.33 PfgReader.hh File Reference . . . . . . . . . . . . . . . . . . . . . . 401

9.34 PfgWriter.hh File Reference . . . . . . . . . . . . . . . . . . . . . . 402

9.35 PgmReader.hh File Reference . . . . . . . . . . . . . . . . . . . . . 403

9.36 PgmWriter.hh File Reference . . . . . . . . . . . . . . . . . . . . . . 404

9.37 PixmapFile.hh File Reference . . . . . . . . . . . . . . . . . . . . . 405

9.38 PixmapReader.hh File Reference . . . . . . . . . . . . . . . . . . . . 406

9.39 PixmapWriter.hh File Reference . . . . . . . . . . . . . . . . . . . . 407

9.40 ppmlib.h File Reference . . . . . . . . . . . . . . . . . . . . . . . . . 408

9.41 PpmReader.hh File Reference . . . . . . . . . . . . . . . . . . . . . 410

9.42 PpmWriter.hh File Reference . . . . . . . . . . . . . . . . . . . . . . 411

9.43 PyramidTransform.hh File Reference . . . . . . . . . . . . . . . . . . 412

9.44 PyramidTree.hh File Reference . . . . . . . . . . . . . . . . . . . . . 413

9.45 RawReader.hh File Reference . . . . . . . . . . . . . . . . . . . . . 414

9.46 RawWriter.hh File Reference . . . . . . . . . . . . . . . . . . . . . . 415

9.47 ReferenceVector.hh File Reference . . . . . . . . . . . . . . . . . . . 416

9.48 RowVector.hh File Reference . . . . . . . . . . . . . . . . . . . . . . 417

9.49 StandardTransform.hh File Reference . . . . . . . . . . . . . . . . . 418

9.50 StillImage.hh File Reference . . . . . . . . . . . . . . . . . . . . . . 419

9.51 tools.h File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . 420

9.52 VectorPosition.hh File Reference . . . . . . . . . . . . . . . . . . . . 421

9.53 VideoArray.hh File Reference . . . . . . . . . . . . . . . . . . . . . 422

9.54 VideoFile.hh File Reference . . . . . . . . . . . . . . . . . . . . . . 423

9.55 VideoFrame.hh File Reference . . . . . . . . . . . . . . . . . . . . . 424

9.56 VideoReader.hh File Reference . . . . . . . . . . . . . . . . . . . . . 425

9.57 VideoWriter.hh File Reference . . . . . . . . . . . . . . . . . . . . . 426

9.58 VidReader.hh File Reference . . . . . . . . . . . . . . . . . . . . . . 427

9.59 VidWriter.hh File Reference . . . . . . . . . . . . . . . . . . . . . . 428

9.60 Wave.hh File Reference . . . . . . . . . . . . . . . . . . . . . . . . . 429

9.61 wave_version.h File Reference . . . . . . . . . . . . . . . . . . . . . 430

9.62 Wavelet.hh File Reference . . . . . . . . . . . . . . . . . . . . . . . 431

9.63 WaveletTransform.hh File Reference . . . . . . . . . . . . . . . . . . 432

9.64 WImage.hh File Reference . . . . . . . . . . . . . . . . . . . . . . . 433

9.65 WTools.hh File Reference . . . . . . . . . . . . . . . . . . . . . . . 435



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

Chapter 1



Module Index



1.1 Modules

Here is a list of all modules:

Classes for images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

Classes for Wavelet Transforms . . . . . . . . . . . . . . . . . . . . . . . . . 21

Utilities for images and Wavelet Transforms . . . . . . . . . . . . . . . . . . 23

2 Module Index









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

Chapter 2



Namespace Index



2.1 Namespace List

Here is a list of all namespaces with brief descriptions:

MagickInter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

4 Namespace Index









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

Chapter 3



Class Index



3.1 Class Hierarchy

This inheritance list is sorted roughly, but not completely, alphabetically:

_avistdindex_chunk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

_avistdindex_entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36

_avisuperindex_chunk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

_avisuperindex_entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39

alBITMAPINFOHEADER . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

audio_index_entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42

avi_t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43

AVIStreamHeader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52

chunk_struct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56

CoeffInformation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57

ColorBuffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66

ColorImage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75

ColorVideo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85

common_struct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102

FileName . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104

Filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109

FilterSet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112

GreymapFile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119

GreymapReader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121

PfgReader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238

PgmReader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242

RawReader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269

GreymapWriter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124

PfgWriter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240

PgmWriter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244

RawWriter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273

Histogram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127

Histogram::hist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132

Image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133

6 Class Index





StillImage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287

VideoFrame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320

ImageArray . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155

VideoArray . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307

ImageComparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166

ImageDenoiser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172

ImageInformation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179

ImageResizer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191

logvals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214

lq . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215

NTree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221

NTree . . . . . . . . . . . . . . . . . . . . . . . . . . 221

PyramidTree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265

PixmapFile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246

PixmapReader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250

JpgReader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207

PfcReader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232

PpmReader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256

PixmapWriter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253

JpgWriter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210

PfcWriter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235

PpmWriter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259

ReferenceVector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276

ImageVector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203

ColumnVector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99

FullVector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116

RowVector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281

riff_struct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280

track_s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298

VectorPosition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301

MirrorPosition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216

PeriodicPosition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230

video_index_entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306

VideoFile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316

VideoReader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322

AviReader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48

VidReader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327

VideoWriter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325

AviWriter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54

VidWriter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330

wave_header . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333

Wavelet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334

WaveletTransform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340

PyramidTransform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262

StandardTransform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284







Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

Chapter 4



Class Index



4.1 Class List



Here are the classes, structs, unions and interfaces with brief descriptions:

_avistdindex_chunk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

_avistdindex_entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36

_avisuperindex_chunk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

_avisuperindex_entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39

alBITMAPINFOHEADER . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

audio_index_entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42

avi_t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43

AviReader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48

AVIStreamHeader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52

AviWriter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54

chunk_struct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56

CoeffInformation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57

ColorBuffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66

ColorImage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75

ColorVideo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85

ColumnVector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99

common_struct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102

FileName . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104

Filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109

FilterSet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112

FullVector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116

GreymapFile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119

GreymapReader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121

GreymapWriter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124

Histogram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127

Histogram::hist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132

Image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133

ImageArray . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155

ImageComparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166

8 Class Index





ImageDenoiser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172

ImageInformation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179

ImageResizer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191

ImageVector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203

JpgReader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207

JpgWriter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210

logvals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214

lq . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215

MirrorPosition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216

NTree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221

PeriodicPosition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230

PfcReader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232

PfcWriter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235

PfgReader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238

PfgWriter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240

PgmReader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242

PgmWriter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244

PixmapFile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246

PixmapReader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250

PixmapWriter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253

PpmReader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256

PpmWriter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259

PyramidTransform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262

PyramidTree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265

RawReader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269

RawWriter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273

ReferenceVector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276

riff_struct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280

RowVector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281

StandardTransform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284

StillImage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287

track_s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298

VectorPosition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301

video_index_entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306

VideoArray . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307

VideoFile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316

VideoFrame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320

VideoReader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322

VideoWriter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325

VidReader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327

VidWriter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330

wave_header . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333

Wavelet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334

WaveletTransform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

Chapter 5



File Index



5.1 File List



Here is a list of all files with brief descriptions:

avilib.h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353

AviReader.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 365

AviWriter.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366

CoeffInformation.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 367

ColorBuffer.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 368

ColorImage.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369

ColorVideo.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 370

ColumnVector.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 371

debug.h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372

FileName.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373

Filter.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374

FullVector.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376

GreymapFile.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377

GreymapReader.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378

GreymapWriter.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379

Histogram.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380

Image.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381

ImageArray.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382

ImageComparison.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383

ImageDenoiser.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384

ImageInformation.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 386

ImageResizer.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388

ImageVector.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389

JpgReader.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390

JpgWriter.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391

MagickInter.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 392

MirrorPosition.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 394

miscdefs.h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395

NTree.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 397

10 File Index





PeriodicPosition.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398

PfcReader.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 399

PfcWriter.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400

PfgReader.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401

PfgWriter.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 402

PgmReader.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 403

PgmWriter.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404

PixmapFile.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 405

PixmapReader.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406

PixmapWriter.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 407

ppmlib.h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 408

PpmReader.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 410

PpmWriter.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 411

PyramidTransform.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 412

PyramidTree.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 413

RawReader.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 414

RawWriter.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 415

ReferenceVector.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 416

RowVector.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 417

StandardTransform.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 418

StillImage.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 419

tools.h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 420

VectorPosition.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 421

VideoArray.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 422

VideoFile.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 423

VideoFrame.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424

VideoReader.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425

VideoWriter.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 426

VidReader.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427

VidWriter.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 428

Wave.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429

wave_version.h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 430

Wavelet.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431

WaveletTransform.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 432

WImage.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 433

WTools.hh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

Chapter 6



Module Documentation



6.1 Classes for images



Classes

• class AviReader

• class AviWriter

• class CoeffInformation

• class ColorBuffer

• class ColorImage

• class ColorVideo

• class ColumnVector

• class FileName

• class FullVector

• class GreymapFile

• class GreymapReader

• class GreymapWriter

• class Image

• class ImageArray

• class ImageVector

• class JpgReader

• class JpgWriter

• class PfcReader

• class PfcWriter

• class PfgReader

• class PfgWriter

• class PgmReader

• class PgmWriter

• class PixmapFile

• class PixmapReader

• class PixmapWriter

• class PpmReader

12 Module Documentation





• class PpmWriter

• class RawReader

• class RawWriter

• class ReferenceVector

• class RowVector

• class StillImage

• class VideoArray

• class VideoFile

• class VideoFrame

• class VideoReader

• class VideoWriter

• class VidReader

• class VidWriter





Defines



• #define STRR(X) #X

• #define STR(X) STRR(X)

• #define DPRINTF(X) (debug_printf("DEBUG %s [%s]: ", __FILE__, STR(__-

LINE__)), debug_printf X)

• #define NEW(a) new a

• #define DELETE(a) delete (a), (a) = NULL

• #define DELETEAR(a) delete [ ] (a), (a) = NULL

• #define DELETENOTNULL(a) if (a) { DELETE (a); } else {}

• #define DELETENOTNULLAR(a) if (a) { DELETEAR (a); } else {}

• #define COEFF_EPSILON ((coeff)DBL_EPSILON)

• #define COEFF_MAX ((coeff)DBL_MAX)

• #define COEFF_MIN ((coeff)DBL_MIN)

• #define MIN(x, y) ((x) (y)? (x): (y))

• #define DIV2(x) ((unsigned)(x)>>1u)

• #define MUL2(x) ((unsigned)(x)::destroyAt().





6.1.2.5 #define DELETEAR(a) delete [ ] (a), (a) = NULL



Definition at line 33 of file miscdefs.h.





6.1.2.6 #define DELETENOTNULL(a) if (a) { DELETE (a); } else {}



Definition at line 36 of file miscdefs.h.





6.1.2.7 #define DELETENOTNULLAR(a) if (a) { DELETEAR (a); } else {}



Definition at line 39 of file miscdefs.h.





6.1.2.8 #define DIV2(x) ((unsigned)(x)>>1u)



Macro for dividing a number by two using a shift operation.

Definition at line 66 of file miscdefs.h.





6.1.2.9 #define DPRINTF(X) (debug_printf("DEBUG %s [%s]: ", __FILE__,

STR(__LINE__)), debug_printf X)



Definition at line 21 of file debug.h.





6.1.2.10 #define FMT0 0



Macro to circumvent problems with g++-3.0

Definition at line 80 of file miscdefs.h.





6.1.2.11 #define MAX(x, y) ((x) > (y)? (x): (y))



A two-tuple’s minimum value.

Definition at line 63 of file miscdefs.h.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

6.1 Classes for images 15





6.1.2.12 #define MIN(x, y) ((x) ::childAt(), Filter::Filter(), Filter-

Set::FilterSet(), NTree::hasChildAt(), and NTree::isRoot().





6.2.3 Variable Documentation



6.2.3.1 FilterSet Antonini



6.2.3.2 FilterSet Brislawn



6.2.3.3 FilterSet Daub4



6.2.3.4 FilterSet Daub6



6.2.3.5 FilterSet Daub8



6.2.3.6 FilterSet Haar



6.2.3.7 FilterSet Odegard



6.2.3.8 FilterSet Villa1



6.2.3.9 FilterSet Villa2



6.2.3.10 FilterSet Villa3



6.2.3.11 FilterSet Villa4



6.2.3.12 FilterSet Villa5



6.2.3.13 FilterSet Villa6









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

6.3 Utilities for images and Wavelet Transforms 23





6.3 Utilities for images and Wavelet Transforms



Classes



• class Histogram

• struct lq

• struct logvals

• class ImageComparison

• class ImageDenoiser

• class ImageInformation

• class ImageResizer

• class NTree

• class PyramidTree





Defines



• #define DENOISE_HL 0x01

• #define DENOISE_LH 0x02

• #define DENOISE_HH 0x04

• #define SIGNIFICANT_COEFF 0

• #define SIGNIFICANT_REGION 1

• #define SIGNIFICANT_CHANNEL 2

• #define REPLACE_SIMPLE 0

• #define REPLACE_CHANNEL 1

• #define PII_YPOS(info, pos) (((info) → at (pos)).ypos ())

• #define PII_XPOS(info, pos) (((info) → at (pos)).xpos ())

• #define PII_XYPOS(info, pos) (((info) → at (pos)).xypos ())

• #define II_YPOS(info, pos) (((info).at (pos)).ypos ())

• #define II_XPOS(info, pos) (((info).at (pos)).xpos ())

• #define II_XYPOS(info, pos) (((info).at (pos)).xypos ())





Typedefs



• typedef bool(∗ cipredicate )(const CoeffInformation ∗c1, const CoeffInformation

∗c2)





Enumerations



• enum imgtype { DRAWN = 0, SCANNED }



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

24 Module Documentation





6.3.1 Detailed Description



6.3.2 Define Documentation



6.3.2.1 #define DENOISE_HH 0x04



Include the HH area in the denoising process

Definition at line 24 of file ImageDenoiser.hh.





6.3.2.2 #define DENOISE_HL 0x01



Include the HL area in the denoising process

Definition at line 20 of file ImageDenoiser.hh.





6.3.2.3 #define DENOISE_LH 0x02



Include the LH area in the denoising process

Definition at line 22 of file ImageDenoiser.hh.





6.3.2.4 #define II_XPOS(info, pos) (((info).at (pos)).xpos ())



Definition at line 27 of file ImageInformation.hh.





6.3.2.5 #define II_XYPOS(info, pos) (((info).at (pos)).xypos ())



Definition at line 28 of file ImageInformation.hh.





6.3.2.6 #define II_YPOS(info, pos) (((info).at (pos)).ypos ())



Definition at line 26 of file ImageInformation.hh.





6.3.2.7 #define PII_XPOS(info, pos) (((info) → at (pos)).xpos ())



Definition at line 24 of file ImageInformation.hh.





6.3.2.8 #define PII_XYPOS(info, pos) (((info) → at (pos)).xypos ())



Definition at line 25 of file ImageInformation.hh.





6.3.2.9 #define PII_YPOS(info, pos) (((info) → at (pos)).ypos ())



Definition at line 23 of file ImageInformation.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

6.3 Utilities for images and Wavelet Transforms 25





6.3.2.10 #define REPLACE_CHANNEL 1



Definition at line 31 of file ImageDenoiser.hh.





6.3.2.11 #define REPLACE_SIMPLE 0



Definition at line 30 of file ImageDenoiser.hh.





6.3.2.12 #define SIGNIFICANT_CHANNEL 2



Definition at line 28 of file ImageDenoiser.hh.





6.3.2.13 #define SIGNIFICANT_COEFF 0



Definition at line 26 of file ImageDenoiser.hh.





6.3.2.14 #define SIGNIFICANT_REGION 1



Definition at line 27 of file ImageDenoiser.hh.





6.3.3 Typedef Documentation



6.3.3.1 typedef bool(∗ cipredicate)(const CoeffInformation ∗c1, const

CoeffInformation ∗c2)



A comparison function type for coefficients. Different criterions (e.g. value or index)

can be used.

Definition at line 21 of file ImageInformation.hh.





6.3.4 Enumeration Type Documentation



6.3.4.1 enum imgtype



The type of the image. Either hand-drawn or scanned.



Enumerator:

DRAWN

SCANNED



Definition at line 20 of file ImageComparison.hh.









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

26 Module Documentation









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

Chapter 7



Namespace Documentation



7.1 MagickInter Namespace Reference



Functions



• Magick::Image magickImageFromColorImageWithTransparency (ColorImage

&img, bool withTransparency=false, coeff ∗transparentColors=NULL, int col-

orBytes=1)

• Magick::Image magickImageFromColorImage (ColorImage &img)

• std::auto_ptr colorImageFromMagickImage (Magick::Image

&img)

• std::auto_ptr obtainColorImage (const std::string &inFile)

• void writeColorImage (ColorImage &img, const std::string &outFile, int qual-

ity=100)

• void writeColorImageWithTransparency (ColorImage &img, const

std::string &outFile, int quality=100, bool withTransparency=false, coeff

∗transparentColors=NULL, int colorBytes=1)

• void scaleAndWriteColorImage (ColorImage &img, int rows, int cols, const

std::string &outFile, int quality=100)







7.1.1 Detailed Description



Helper functions for extended read/write support using the Magick++ classes. This

is motivated by the fact that we want to support many, many file formats but don’t

want to spend our time writing import and export filters. The implementation is quite

rudimentary. All conversion is done by saving and loading temporary files. Also,

naturally (as the Wavelet lib does not have support for this), all meta-information like

e.g. transparency is lost.

28 Namespace Documentation





7.1.2 Function Documentation



7.1.2.1 std::auto_ptr MagickIn-

ter::colorImageFromMagickImage (Magick::Image &

img)



Converts a Magick::Image to a ColorImage.



Parameters:

img the Magick::Image object



Returns:

an auto_ptr to the corresponding ColorImage



Exceptions:



ios_base:failure if an I/O operation did not succeed (e.g. non-existent file, insuf-

ficient disk space etc.)

invalid_argument for logical errors (e.g. unknown image file format etc.)







7.1.2.2 Magick::Image MagickInter::magickImageFromColorImage

(ColorImage & img)



Converts a ColorImage to a Magick::Image.



Parameters:

img the ColorImage object



Returns:

a corresponding Magick::Image



Exceptions:



ios_base:failure if an I/O operation did not succeed (e.g. non-existent file, insuf-

ficient disk space etc.)

invalid_argument for logical errors (e.g. unknown image file format etc.)







7.1.2.3 Magick::Image MagickIn-

ter::magickImageFromColorImageWithTransparency

(ColorImage & img, bool withTransparency = false, coeff ∗

transparentColors = NULL, int colorBytes = 1)



Converts a ColorImage to a Magick::Image.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

7.1 MagickInter Namespace Reference 29



Parameters:

img the ColorImage object

withTransparency if set to true, the returned image will contain transparency in-

formation according to the original image’s colors. NOTE: this will only

work with 3-color images using RGB color model.

transparentColors an array of as many members as the image has color channels.

If at a given position the original image’s pixel n-tuple has identical values,

the pixel will be considered transparent. The default value NULL stands for

{ -1, -1, -1 }

colorBytes the number of bytes per pixel (usually 1, i.e. 256 distinct colors)



Returns:

a corresponding Magick::Image



Exceptions:



ios_base:failure if an I/O operation did not succeed (e.g. non-existent file, insuf-

ficient disk space etc.)

invalid_argument for logical errors (e.g. unknown image file format etc.)





7.1.2.4 std::auto_ptr MagickInter::obtainColorImage (const

std::string & inFile)



Creates a ColorImage object for an image in the file system using the Magick

classes.

Parameters:

inFile the input file name



Returns:

an auto_ptr to the new ColorImage



Exceptions:



ios_base:failure if an I/O operation did not succeed (e.g. non-existent file, insuf-

ficient disk space etc.)

invalid_argument for logical errors (e.g. unknown image file format etc.)





7.1.2.5 void MagickInter::scaleAndWriteColorImage (ColorImage & img, int

rows, int cols, const std::string & outFile, int quality = 100)



Rescales and then writes a ColorImage to any file format using the Magick classes.



Parameters:

img the ColorImage object



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

30 Namespace Documentation





rows the target number of image rows

cols the target number of image cols

outFile the output file name

quality the quality (e.g. JPEG quality) if applicable



Exceptions:



ios_base:failure if an I/O operation did not succeed (e.g. non-existent file, insuf-

ficient disk space etc.)

invalid_argument for logical errors (e.g. unknown image file format etc.)







7.1.2.6 void MagickInter::writeColorImage (ColorImage & img, const

std::string & outFile, int quality = 100)



Writes a ColorImage to any file format using the Magick classes.



Parameters:

img the ColorImage object

outFile the output file name

quality the quality (e.g. JPEG quality) if applicable



Exceptions:



ios_base:failure if an I/O operation did not succeed (e.g. non-existent file, insuf-

ficient disk space etc.)

invalid_argument for logical errors (e.g. unknown image file format etc.)







7.1.2.7 void MagickInter::writeColorImageWithTransparency (ColorImage

& img, const std::string & outFile, int quality = 100, bool

withTransparency = false, coeff ∗ transparentColors = NULL, int

colorBytes = 1)



Writes a ColorImage to any file format using the Magick classes. This does not use

the usual export/import approach but creates an intermediate Magick image from the

scratch. However it should be noted that the result may differ slightly from the source

image due to Magick’s quantization.



Parameters:

img the ColorImage object

outFile the output file name

quality the quality (e.g. JPEG quality) if applicable

withTransparency if set to true, the returned image will contain transparency in-

formation according to the original image’s colors. NOTE: this will only

work with 3-color images using RGB color model.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

7.1 MagickInter Namespace Reference 31





transparentColors an array of as many members as the image has color channels.

If at a given position the original image’s pixel n-tuple has identical values,

the pixel will be considered transparent. The default value NULL stands for

{ -1, -1, -1 }

colorBytes the number of bytes per pixel (usually 1, i.e. 256 distinct colors)



Exceptions:



ios_base:failure if an I/O operation did not succeed (e.g. non-existent file, insuf-

ficient disk space etc.)

invalid_argument for logical errors (e.g. unknown image file format etc.)









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

32 Namespace Documentation









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

Chapter 8



Class Documentation



8.1 _avistdindex_chunk Struct Reference

#include

Collaboration diagram for _avistdindex_chunk:



_avistdindex_entry





aIndex





_avistdindex_chunk









Public Attributes



• char fcc [4]

• uint32_t dwSize

• uint16_t wLongsPerEntry

• uint8_t bIndexSubType

• uint8_t bIndexType

• uint32_t nEntriesInUse

• char dwChunkId [4]

• uint64_t qwBaseOffset

• uint32_t dwReserved3

• avistdindex_entry ∗ aIndex





8.1.1 Detailed Description



Definition at line 162 of file avilib.h.

34 Class Documentation





8.1.2 Member Data Documentation



8.1.2.1 char _avistdindex_chunk::fcc[4]



Definition at line 163 of file avilib.h.





8.1.2.2 uint32_t _avistdindex_chunk::dwSize



Definition at line 164 of file avilib.h.





8.1.2.3 uint16_t _avistdindex_chunk::wLongsPerEntry



Definition at line 165 of file avilib.h.





8.1.2.4 uint8_t _avistdindex_chunk::bIndexSubType



Definition at line 166 of file avilib.h.





8.1.2.5 uint8_t _avistdindex_chunk::bIndexType



Definition at line 167 of file avilib.h.





8.1.2.6 uint32_t _avistdindex_chunk::nEntriesInUse



Definition at line 168 of file avilib.h.





8.1.2.7 char _avistdindex_chunk::dwChunkId[4]



Definition at line 169 of file avilib.h.





8.1.2.8 uint64_t _avistdindex_chunk::qwBaseOffset



Definition at line 170 of file avilib.h.





8.1.2.9 uint32_t _avistdindex_chunk::dwReserved3



Definition at line 171 of file avilib.h.





8.1.2.10 avistdindex_entry∗ _avistdindex_chunk::aIndex



Definition at line 172 of file avilib.h.

The documentation for this struct was generated from the following file:



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.1 _avistdindex_chunk Struct Reference 35





• avilib.h









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

36 Class Documentation





8.2 _avistdindex_entry Struct Reference

#include





Public Attributes

• uint32_t dwOffset

• uint32_t dwSize





8.2.1 Detailed Description



Definition at line 156 of file avilib.h.





8.2.2 Member Data Documentation



8.2.2.1 uint32_t _avistdindex_entry::dwOffset



Definition at line 157 of file avilib.h.





8.2.2.2 uint32_t _avistdindex_entry::dwSize



Definition at line 158 of file avilib.h.

The documentation for this struct was generated from the following file:



• avilib.h









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.3 _avisuperindex_chunk Struct Reference 37





8.3 _avisuperindex_chunk Struct Reference

#include

Collaboration diagram for _avisuperindex_chunk:



_avistdindex_entry





aIndex





_avisuperindex_entry _avistdindex_chunk





aIndex stdindex





_avisuperindex_chunk









Public Attributes

• char fcc [4]

• uint32_t dwSize

• uint16_t wLongsPerEntry

• uint8_t bIndexSubType

• uint8_t bIndexType

• uint32_t nEntriesInUse

• char dwChunkId [4]

• uint32_t dwReserved [3]

• avisuperindex_entry ∗ aIndex

• avistdindex_chunk ∗∗ stdindex





8.3.1 Detailed Description



Definition at line 177 of file avilib.h.





8.3.2 Member Data Documentation



8.3.2.1 char _avisuperindex_chunk::fcc[4]



Definition at line 178 of file avilib.h.





8.3.2.2 uint32_t _avisuperindex_chunk::dwSize



Definition at line 179 of file avilib.h.





8.3.2.3 uint16_t _avisuperindex_chunk::wLongsPerEntry



Definition at line 180 of file avilib.h.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

38 Class Documentation





8.3.2.4 uint8_t _avisuperindex_chunk::bIndexSubType



Definition at line 181 of file avilib.h.





8.3.2.5 uint8_t _avisuperindex_chunk::bIndexType



Definition at line 182 of file avilib.h.





8.3.2.6 uint32_t _avisuperindex_chunk::nEntriesInUse



Definition at line 183 of file avilib.h.





8.3.2.7 char _avisuperindex_chunk::dwChunkId[4]



Definition at line 184 of file avilib.h.





8.3.2.8 uint32_t _avisuperindex_chunk::dwReserved[3]



Definition at line 185 of file avilib.h.





8.3.2.9 avisuperindex_entry∗ _avisuperindex_chunk::aIndex



Definition at line 187 of file avilib.h.





8.3.2.10 avistdindex_chunk∗∗ _avisuperindex_chunk::stdindex



Definition at line 188 of file avilib.h.

The documentation for this struct was generated from the following file:



• avilib.h









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.4 _avisuperindex_entry Struct Reference 39





8.4 _avisuperindex_entry Struct Reference

#include





Public Attributes

• uint64_t qwOffset

• uint32_t dwSize

• uint32_t dwDuration





8.4.1 Detailed Description



Definition at line 150 of file avilib.h.





8.4.2 Member Data Documentation



8.4.2.1 uint64_t _avisuperindex_entry::qwOffset



Definition at line 151 of file avilib.h.





8.4.2.2 uint32_t _avisuperindex_entry::dwSize



Definition at line 152 of file avilib.h.





8.4.2.3 uint32_t _avisuperindex_entry::dwDuration



Definition at line 153 of file avilib.h.

The documentation for this struct was generated from the following file:



• avilib.h









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

40 Class Documentation





8.5 alBITMAPINFOHEADER Struct Reference

#include





Public Attributes

• uint32_t bi_size

• uint32_t bi_width

• uint32_t bi_height

• uint16_t bi_planes

• uint16_t bi_bit_count

• uint32_t bi_compression

• uint32_t bi_size_image

• uint32_t bi_x_pels_per_meter

• uint32_t bi_y_pels_per_meter

• uint32_t bi_clr_used

• uint32_t bi_clr_important





8.5.1 Detailed Description



Definition at line 220 of file avilib.h.





8.5.2 Member Data Documentation



8.5.2.1 uint32_t alBITMAPINFOHEADER::bi_size



Definition at line 222 of file avilib.h.





8.5.2.2 uint32_t alBITMAPINFOHEADER::bi_width



Definition at line 223 of file avilib.h.





8.5.2.3 uint32_t alBITMAPINFOHEADER::bi_height



Definition at line 224 of file avilib.h.





8.5.2.4 uint16_t alBITMAPINFOHEADER::bi_planes



Definition at line 225 of file avilib.h.





8.5.2.5 uint16_t alBITMAPINFOHEADER::bi_bit_count



Definition at line 226 of file avilib.h.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.5 alBITMAPINFOHEADER Struct Reference 41





8.5.2.6 uint32_t alBITMAPINFOHEADER::bi_compression



Definition at line 227 of file avilib.h.





8.5.2.7 uint32_t alBITMAPINFOHEADER::bi_size_image



Definition at line 228 of file avilib.h.





8.5.2.8 uint32_t alBITMAPINFOHEADER::bi_x_pels_per_meter



Definition at line 229 of file avilib.h.





8.5.2.9 uint32_t alBITMAPINFOHEADER::bi_y_pels_per_meter



Definition at line 230 of file avilib.h.





8.5.2.10 uint32_t alBITMAPINFOHEADER::bi_clr_used



Definition at line 231 of file avilib.h.





8.5.2.11 uint32_t alBITMAPINFOHEADER::bi_clr_important



Definition at line 232 of file avilib.h.

The documentation for this struct was generated from the following file:



• avilib.h









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

42 Class Documentation





8.6 audio_index_entry Struct Reference

#include





Public Attributes

• off_t pos

• off_t len

• off_t tot





8.6.1 Detailed Description



Definition at line 126 of file avilib.h.





8.6.2 Member Data Documentation



8.6.2.1 off_t audio_index_entry::pos



Definition at line 128 of file avilib.h.





8.6.2.2 off_t audio_index_entry::len



Definition at line 129 of file avilib.h.





8.6.2.3 off_t audio_index_entry::tot



Definition at line 130 of file avilib.h.

The documentation for this struct was generated from the following file:



• avilib.h









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.7 avi_t Struct Reference 43





8.7 avi_t Struct Reference

#include

Collaboration diagram for avi_t:





_avistdindex_entry





aIndex





_avisuperindex_entry _avistdindex_chunk





aIndex stdindex





_avisuperindex_chunk audio_index_entry





audio_superindex audio_index





video_superindex track_s alBITMAPINFOHEADER video_index_entry





track bitmap_info_header video_index





avi_t









Public Attributes

• long fdes

• long mode

• long width

• long height

• double fps

• char compressor [8]

• char compressor2 [8]

• long video_strn

• long video_frames

• char video_tag [4]

• long video_pos

• uint32_t max_len

• track_t track [AVI_MAX_TRACKS]

• off_t pos

• long n_idx

• long max_idx

• off_t v_codech_off



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

44 Class Documentation





• off_t v_codecf_off

• uint8_t(∗ idx )[16]

• video_index_entry ∗ video_index

• avisuperindex_chunk ∗ video_superindex

• int is_opendml

• off_t last_pos

• uint32_t last_len

• int must_use_index

• off_t movi_start

• int total_frames

• int anum

• int aptr

• int comment_fd

• char ∗ index_file

• alBITMAPINFOHEADER ∗ bitmap_info_header

• alWAVEFORMATEX ∗ wave_format_ex [AVI_MAX_TRACKS]





8.7.1 Detailed Description



Definition at line 271 of file avilib.h.





8.7.2 Member Data Documentation



8.7.2.1 long avi_t::fdes



Definition at line 274 of file avilib.h.





8.7.2.2 long avi_t::mode



Definition at line 275 of file avilib.h.





8.7.2.3 long avi_t::width



Definition at line 277 of file avilib.h.





8.7.2.4 long avi_t::height



Definition at line 278 of file avilib.h.





8.7.2.5 double avi_t::fps



Definition at line 279 of file avilib.h.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.7 avi_t Struct Reference 45





8.7.2.6 char avi_t::compressor[8]



Definition at line 280 of file avilib.h.





8.7.2.7 char avi_t::compressor2[8]



Definition at line 281 of file avilib.h.





8.7.2.8 long avi_t::video_strn



Definition at line 282 of file avilib.h.





8.7.2.9 long avi_t::video_frames



Definition at line 283 of file avilib.h.





8.7.2.10 char avi_t::video_tag[4]



Definition at line 284 of file avilib.h.





8.7.2.11 long avi_t::video_pos



Definition at line 285 of file avilib.h.





8.7.2.12 uint32_t avi_t::max_len



Definition at line 288 of file avilib.h.





8.7.2.13 track_t avi_t::track[AVI_MAX_TRACKS]



Definition at line 290 of file avilib.h.





8.7.2.14 off_t avi_t::pos



Definition at line 292 of file avilib.h.





8.7.2.15 long avi_t::n_idx



Definition at line 293 of file avilib.h.





8.7.2.16 long avi_t::max_idx



Definition at line 294 of file avilib.h.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

46 Class Documentation





8.7.2.17 off_t avi_t::v_codech_off



Definition at line 296 of file avilib.h.





8.7.2.18 off_t avi_t::v_codecf_off



Definition at line 297 of file avilib.h.





8.7.2.19 uint8_t(∗ avi_t::idx)[16]



Definition at line 299 of file avilib.h.





8.7.2.20 video_index_entry∗ avi_t::video_index



Definition at line 301 of file avilib.h.





8.7.2.21 avisuperindex_chunk∗ avi_t::video_superindex



Definition at line 302 of file avilib.h.





8.7.2.22 int avi_t::is_opendml



Definition at line 303 of file avilib.h.





8.7.2.23 off_t avi_t::last_pos



Definition at line 305 of file avilib.h.





8.7.2.24 uint32_t avi_t::last_len



Definition at line 306 of file avilib.h.





8.7.2.25 int avi_t::must_use_index



Definition at line 307 of file avilib.h.





8.7.2.26 off_t avi_t::movi_start



Definition at line 308 of file avilib.h.





8.7.2.27 int avi_t::total_frames



Definition at line 309 of file avilib.h.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.7 avi_t Struct Reference 47





8.7.2.28 int avi_t::anum



Definition at line 311 of file avilib.h.





8.7.2.29 int avi_t::aptr



Definition at line 312 of file avilib.h.





8.7.2.30 int avi_t::comment_fd



Definition at line 313 of file avilib.h.





8.7.2.31 char∗ avi_t::index_file



Definition at line 314 of file avilib.h.





8.7.2.32 alBITMAPINFOHEADER∗ avi_t::bitmap_info_header



Definition at line 316 of file avilib.h.





8.7.2.33 alWAVEFORMATEX∗ avi_t::wave_format_ex[AVI_MAX_TRACKS]



Definition at line 317 of file avilib.h.

The documentation for this struct was generated from the following file:



• avilib.h









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

48 Class Documentation





8.8 AviReader Class Reference

#include

Inheritance diagram for AviReader:



VideoFile









VideoReader









AviReader









Collaboration diagram for AviReader:



VideoFile









VideoReader









AviReader









Public Member Functions

• AviReader (char const ∗name, VideoArray ∗arrays[ ], int rawy, int

rawx, int from, int to)





Static Public Member Functions

• static double frameRate (const char ∗fname)

• static int framesInFile (const char ∗fname)

• static void fileDimensions (const char ∗fname, int &y, int &x)





Protected Member Functions

• virtual int readfmt (void)





Protected Attributes

• int m_ysize



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.8 AviReader Class Reference 49





• int m_xsize





8.8.1 Detailed Description



An AVI file reader. Only uncompressed AVIs are supported.

Definition at line 21 of file AviReader.hh.





8.8.2 Constructor & Destructor Documentation



8.8.2.1 AviReader::AviReader (char const ∗ name, VideoArray ∗

arrays[ ], int rawy, int rawx, int from, int to)



Constructor. Only calls the mother class’ constructor to initialize the {ImageArray}

reference. All frames in the ranges must be of the same size.



Parameters:

name the file name

arrays the array of video arrays for the values

rawy the number of rows

rawx the number of cols

from one greater than the last frame, if equal to ‘from’ then the whole video will

be read, if 0, then the video will be read from ‘from’ to the end

to the last frame





8.8.3 Member Function Documentation



8.8.3.1 static double AviReader::frameRate (const char ∗ fname) [static]



Calculates the frame rate.



Exceptions:



invalid_argument if the file cannot be read



Parameters:

fname the file name



Returns:

the frame rate





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

50 Class Documentation





8.8.3.2 static int AviReader::framesInFile (const char ∗ fname) [static]



Calculates the number of frames in a file.



Exceptions:



invalid_argument if the file cannot be read



Parameters:

fname the file name



Returns:

the number of frames







8.8.3.3 static void AviReader::fileDimensions (const char ∗ fname, int & y, int

& x) [static]



Calculates the frame dimensions in a file.



Exceptions:



invalid_argument if the file cannot be read



Parameters:

fname the file name

y the returned number of rows

x the returned number of columns







8.8.3.4 virtual int AviReader::readfmt (void) [protected, virtual]



Read the VID file format. This does the actual work of reading and parsing the image

file. It gets called by the {read ()} method.



Returns:

0 if successful, -1 on read error, -2 on file format error.



Implements VideoReader.





8.8.4 Member Data Documentation



8.8.4.1 int AviReader::m_ysize [protected]



The assumed number of rows

Definition at line 65 of file AviReader.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.8 AviReader Class Reference 51





8.8.4.2 int AviReader::m_xsize [protected]



The assumed number of columns

Definition at line 67 of file AviReader.hh.

The documentation for this class was generated from the following file:



• AviReader.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

52 Class Documentation





8.9 AVIStreamHeader Struct Reference

#include





Public Attributes

• long fccType

• long fccHandler

• long dwFlags

• long dwPriority

• long dwInitialFrames

• long dwScale

• long dwRate

• long dwStart

• long dwLength

• long dwSuggestedBufferSize

• long dwQuality

• long dwSampleSize





8.9.1 Detailed Description



Definition at line 510 of file avilib.h.





8.9.2 Member Data Documentation



8.9.2.1 long AVIStreamHeader::fccType



Definition at line 511 of file avilib.h.





8.9.2.2 long AVIStreamHeader::fccHandler



Definition at line 512 of file avilib.h.





8.9.2.3 long AVIStreamHeader::dwFlags



Definition at line 513 of file avilib.h.





8.9.2.4 long AVIStreamHeader::dwPriority



Definition at line 514 of file avilib.h.





8.9.2.5 long AVIStreamHeader::dwInitialFrames



Definition at line 515 of file avilib.h.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.9 AVIStreamHeader Struct Reference 53





8.9.2.6 long AVIStreamHeader::dwScale



Definition at line 516 of file avilib.h.





8.9.2.7 long AVIStreamHeader::dwRate



Definition at line 517 of file avilib.h.





8.9.2.8 long AVIStreamHeader::dwStart



Definition at line 518 of file avilib.h.





8.9.2.9 long AVIStreamHeader::dwLength



Definition at line 519 of file avilib.h.





8.9.2.10 long AVIStreamHeader::dwSuggestedBufferSize



Definition at line 520 of file avilib.h.





8.9.2.11 long AVIStreamHeader::dwQuality



Definition at line 521 of file avilib.h.





8.9.2.12 long AVIStreamHeader::dwSampleSize



Definition at line 522 of file avilib.h.

The documentation for this struct was generated from the following file:



• avilib.h









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

54 Class Documentation





8.10 AviWriter Class Reference

#include

Inheritance diagram for AviWriter:



VideoFile









VideoWriter









AviWriter









Collaboration diagram for AviWriter:



VideoFile









VideoWriter









AviWriter









Public Member Functions

• AviWriter (char const ∗name, VideoArray ∗arrays[ ], int channels,

double fps)





Protected Member Functions

• virtual int writefmt (void)





Protected Attributes

• double m_frameRate





8.10.1 Detailed Description



A AVI image file writer.

Definition at line 21 of file AviWriter.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.10 AviWriter Class Reference 55





8.10.2 Constructor & Destructor Documentation



8.10.2.1 AviWriter::AviWriter (char const ∗ name, VideoArray ∗

arrays[ ], int channels, double fps) [inline]



Constructor. Only calls the mother class’ constructor to initialize the {ImageArray}

reference and set the offset if necessary.



Parameters:

name the file name

arrays the array of video arrays for the values

channels the number of color channels

fps the frame rate per second



Definition at line 36 of file AviWriter.hh.

References m_frameRate.





8.10.3 Member Function Documentation



8.10.3.1 virtual int AviWriter::writefmt (void) [protected, virtual]



Write a AVI video file. This is the method that does the actual work. It will be called

by the {write ()} method.



Returns:

0 if successful, -1 on write error.



Implements VideoWriter.





8.10.4 Member Data Documentation



8.10.4.1 double AviWriter::m_frameRate [protected]



The frame rate

Definition at line 47 of file AviWriter.hh.

Referenced by AviWriter().

The documentation for this class was generated from the following file:



• AviWriter.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

56 Class Documentation





8.11 chunk_struct Struct Reference

#include





Public Attributes

• uint8_t id [4]

• uint32_t len





8.11.1 Detailed Description



Definition at line 479 of file avilib.h.





8.11.2 Member Data Documentation



8.11.2.1 uint8_t chunk_struct::id[4]



Definition at line 481 of file avilib.h.





8.11.2.2 uint32_t chunk_struct::len



Definition at line 482 of file avilib.h.

The documentation for this struct was generated from the following file:



• avilib.h









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.12 CoeffInformation Class Reference 57





8.12 CoeffInformation Class Reference

#include





Public Member Functions



• CoeffInformation (coeff val=0.0, int y=0, int x=0, int abs=0, long id=-1, coeff

misc=0.0)

• CoeffInformation (const CoeffInformation &c)

• ∼CoeffInformation (void)

• coeff val (void) const

• int ypos (void) const

• int xpos (void) const

• int id (void) const

• void id (long id)

• void misc (coeff misc)

• coeff misc (void) const

• int xypos (void) const

• void val (coeff val)

• void set (coeff val, int y, int x, int abs, long id=-1, coeff misc=0.0)

• void set (const CoeffInformation &c)

• void set (const Image &img, int ypos, int xpos)

• int socmp (const CoeffInformation &c) const

• int aocmp (const CoeffInformation &c) const

• int pcmp (const CoeffInformation &c) const

• int svcmp (const CoeffInformation &c) const

• int avcmp (const CoeffInformation &c) const

• bool equals (const CoeffInformation &c) const

• void dump (const char ∗delim=" ", const char ∗file="") const

• bool operator== (const CoeffInformation &c) const

• bool operator!= (const CoeffInformation &c) const

• CoeffInformation & operator= (const CoeffInformation &c)





Private Attributes



• coeff m_value

• int m_yposition

• int m_xposition

• int m_xyposition

• long m_id

• coeff m_misc



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

58 Class Documentation





8.12.1 Detailed Description



Coefficient information. The information consists of value, x-offset, y-offset and abso-

lute offset. This is used for statistics and to obtain alternative image representations.

Definition at line 23 of file CoeffInformation.hh.





8.12.2 Constructor & Destructor Documentation



8.12.2.1 CoeffInformation::CoeffInformation (coeff val = 0.0, int y = 0, int x

= 0, int abs = 0, long id = -1, coeff misc = 0.0)



Constructor. Creates a new Coefficient.



Parameters:

val the coeff’s value

y the coeff’s row

x the coeff’s col

abs the coeff’s absolute offset

id the coeff’s unique id

misc for additional information





8.12.2.2 CoeffInformation::CoeffInformation (const CoeffInformation & c)

[inline]



Copy Constructor.



Parameters:

c the object to copy from



Definition at line 43 of file CoeffInformation.hh.





8.12.2.3 CoeffInformation::∼CoeffInformation (void) [inline]



Definition at line 45 of file CoeffInformation.hh.





8.12.3 Member Function Documentation



8.12.3.1 coeff CoeffInformation::val (void) const [inline]



Get the value.



Returns:

the coeff’s value



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.12 CoeffInformation Class Reference 59





Definition at line 49 of file CoeffInformation.hh.

References m_value.





8.12.3.2 int CoeffInformation::ypos (void) const [inline]



Get the row.

Returns:

the coeff’s row



Definition at line 53 of file CoeffInformation.hh.

References m_yposition.

Referenced by WaveletTransform::getArea(), and WaveletTransform::getSubband().





8.12.3.3 int CoeffInformation::xpos (void) const [inline]



Get the col.

Returns:

the coeff’s col



Definition at line 57 of file CoeffInformation.hh.

References m_xposition.

Referenced by WaveletTransform::getArea(), and WaveletTransform::getSubband().





8.12.3.4 int CoeffInformation::id (void) const [inline]



Get the ID.

Returns:

the id



Definition at line 61 of file CoeffInformation.hh.

References m_id.





8.12.3.5 void CoeffInformation::id (long id) [inline]



Set the ID.

Parameters:

id the id



Definition at line 64 of file CoeffInformation.hh.

References m_id.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

60 Class Documentation





8.12.3.6 void CoeffInformation::misc (coeff misc) [inline]



Set the misc data.



Parameters:

misc the misc data



Definition at line 67 of file CoeffInformation.hh.

References m_misc.





8.12.3.7 coeff CoeffInformation::misc (void) const [inline]



Get the misc data.



Returns:

the misc data



Definition at line 71 of file CoeffInformation.hh.

References m_misc.





8.12.3.8 int CoeffInformation::xypos (void) const [inline]



Get the absolute offset.



Returns:

the coeff’s absolute offset



Definition at line 75 of file CoeffInformation.hh.

References m_xyposition.





8.12.3.9 void CoeffInformation::val (coeff val) [inline]



Assign a new value.



Parameters:

val the coeff’s new value



Definition at line 79 of file CoeffInformation.hh.

References m_value.





8.12.3.10 void CoeffInformation::set (coeff val, int y, int x, int abs, long id =

-1, coeff misc = 0.0)



Assign a new coefficient value only leaving the rest as is.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.12 CoeffInformation Class Reference 61



Parameters:

val the coeff’s new value

y the coeff’s row

x the coeff’s col

abs the coeff’s absolute position

id the new ID

misc the new misc data







8.12.3.11 void CoeffInformation::set (const CoeffInformation & c)



Copy a coefficient.



Parameters:

c the other coeff







8.12.3.12 void CoeffInformation::set (const Image & img, int ypos, int xpos)



Copy from an Image location.



Parameters:

img the image

ypos the row in the image

xpos the col in the image







8.12.3.13 int CoeffInformation::socmp (const CoeffInformation & c) const



Signed object comparison. If both values are identical, first the y, then the x component

will be compared.



Parameters:

c the other coeff



Returns:

1: the other value is less, -1: the other value is greater, 2: the values are equal, but

the other y component is less, -2: the values are equal, but the other y component

is greater, 3: the values and y components are equal, but the other x component

is less, -2: the values and y components are equal, but the other x component is

greater, 0: both are equal





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

62 Class Documentation





8.12.3.14 int CoeffInformation::aocmp (const CoeffInformation & c) const



Unsigned object comparison (absolute values). If both values are identical, first the y,

then the x component will be compared.

Parameters:

c the other coeff

Returns:

1: the other value is less, -1: the other value is greater, 2: the values are equal, but

the other y component is less, -2: the values are equal, but the other y component

is greater, 3: the values and y components are equal, but the other x component

is less, -2: the values and y components are equal, but the other x component is

greater, 0: both are equal





8.12.3.15 int CoeffInformation::pcmp (const CoeffInformation & c) const



Position comparison.

Parameters:

c the other coeff

Returns:

2: the other y component is less, -2: the other y component is greater, 3: the other

x component is less, -2: the other x component is greater, 0: both are equal





8.12.3.16 int CoeffInformation::svcmp (const CoeffInformation & c) const



Signed value comparison.

Parameters:

c the other coeff

Returns:

1: the other coeff is less, -1: the other coeff is greater, 0: both are equal





8.12.3.17 int CoeffInformation::avcmp (const CoeffInformation & c) const



Unsigned value comparison (absolute values).

Parameters:

c the other coeff

Returns:

1: the other coeff is less, -1: the other coeff is greater, 0: both are equal





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.12 CoeffInformation Class Reference 63





8.12.3.18 bool CoeffInformation::equals (const CoeffInformation & c) const



Equality test. This includes both, the value and the coordinates.



Parameters:

c the other coeff



Returns:

both are equal: {true}, else {false}



Referenced by operator!=(), and operator==().





8.12.3.19 void CoeffInformation::dump (const char ∗ delim = " ", const char ∗

file = "") const



Writes all data to stdout or a file.



Exceptions:



ios_base::failure if the file could not be opened for writing.



Parameters:

delim what to print between two entries

file the name of the file (empty string for stdout)







8.12.3.20 bool CoeffInformation::operator== (const CoeffInformation & c)

const [inline]



Convenience equality operator to avoid trouble in some cases.



Parameters:

c the other object



Returns:

true if the objects are equal



Definition at line 167 of file CoeffInformation.hh.

References equals().





8.12.3.21 bool CoeffInformation::operator!= (const CoeffInformation & c)

const [inline]



Convenience inequality operator to avoid trouble in some cases.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

64 Class Documentation



Parameters:

c the other object



Returns:

true if the objects are not equal



Definition at line 172 of file CoeffInformation.hh.

References equals().





8.12.3.22 CoeffInformation& CoeffInformation::operator= (const

CoeffInformation & c) [inline]



Convenience assignment operator to avoid trouble in some cases.



Parameters:

c the other object



Returns:

a reference to ‘this’



Definition at line 177 of file CoeffInformation.hh.





8.12.4 Member Data Documentation



8.12.4.1 coeff CoeffInformation::m_value [private]



The coefficient value.

Definition at line 182 of file CoeffInformation.hh.

Referenced by val().





8.12.4.2 int CoeffInformation::m_yposition [private]



The coefficient row.

Definition at line 184 of file CoeffInformation.hh.

Referenced by ypos().





8.12.4.3 int CoeffInformation::m_xposition [private]



The coefficient col.

Definition at line 186 of file CoeffInformation.hh.

Referenced by xpos().



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.12 CoeffInformation Class Reference 65





8.12.4.4 int CoeffInformation::m_xyposition [private]



The coefficient absolute offset.

Definition at line 188 of file CoeffInformation.hh.

Referenced by xypos().





8.12.4.5 long CoeffInformation::m_id [private]



The absolute ID (needed for tracking a coefficient.

Definition at line 190 of file CoeffInformation.hh.

Referenced by id().





8.12.4.6 coeff CoeffInformation::m_misc [private]



Other data for free use.

Definition at line 192 of file CoeffInformation.hh.

Referenced by misc().

The documentation for this class was generated from the following file:



• CoeffInformation.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

66 Class Documentation





8.13 ColorBuffer Class Reference

#include

Inheritance diagram for ColorBuffer:



ColorBuffer









ColorImage ColorVideo









Collaboration diagram for ColorBuffer:



ReferenceVector









ImageVector









FullVector RowVector ColumnVector





m_afull m_arow m_acol





Image





m_images





ColorBuffer









Public Member Functions

• ColorBuffer (int colors=3, clrmodel cmodel=cm_rgb)

• virtual ∼ColorBuffer (void)

• virtual void swapColors (int ch1, int ch2)

• clrmodel colormodel (void) const

• int colors (void) const

• virtual void colormodel (clrmodel model)

• virtual coeff smax (void) const

• virtual coeff smin (void) const

• virtual int fileSize (char const ∗fname) const

• virtual bool equals (ColorBuffer &buf) const

• virtual bool epsilons (ColorBuffer &buf, coeff epsilon) const

• virtual void truncate (coeff min=0, coeff max=255)

• virtual void beautify (int yoffs=0, int xoffs=0, int ysize=0, int xsize=0)=0

• virtual coeff averageColor (int fromY=0, int fromX=0, int toY=-1, int toX=-1)

• virtual unsigned char ∗ toPixmap (clrmodel cmodel)

• int rows (void) const



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.13 ColorBuffer Class Reference 67





• int cols (void) const

• int size (void) const







Protected Member Functions



• void init (int colors, clrmodel cmodel=cm_rgb)

• virtual void destroy (void)

• virtual void valadjust (void)







Protected Attributes



• clrmodel m_cmodel

• int m_xsize

• int m_ysize

• int m_xysize

• int m_colors

• Image ∗∗ m_images

• bool m_isReference







8.13.1 Detailed Description



An abstract wrapper for color images and videos.

Definition at line 21 of file ColorBuffer.hh.







8.13.2 Constructor & Destructor Documentation



8.13.2.1 ColorBuffer::ColorBuffer (int colors = 3, clrmodel cmodel = cm_rgb)



Constructor. Creates objects and sets actual start values.



Parameters:

colors the number of colors, and therefore the array’s length

cmodel the color model







8.13.2.2 virtual ColorBuffer::∼ColorBuffer (void) [virtual]



Destructor. Frees allocated objects.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

68 Class Documentation





8.13.3 Member Function Documentation



8.13.3.1 virtual void ColorBuffer::swapColors (int ch1, int ch2) [virtual]



Swap two color channels.



Exceptions:



invalid_argument if the channel specs are out of bounds



Parameters:

ch1 the first channel

ch2 the second channel



Reimplemented in ColorVideo.





8.13.3.2 clrmodel ColorBuffer::colormodel (void) const [inline]



Return the current colormodel



Exceptions:



invalid_argument number of colors is not 3, or unsupported format / conversion



Returns:

the colormodel



Definition at line 45 of file ColorBuffer.hh.





8.13.3.3 int ColorBuffer::colors (void) const [inline]



Return the current number of colors



Returns:

the number of colors



Definition at line 48 of file ColorBuffer.hh.





8.13.3.4 virtual void ColorBuffer::colormodel (clrmodel model) [virtual]



Convert the image to a new colormodel. Note: this operation is not completely

invertable. Thus it should only be applied if no further transforms and no back-

conversion are desired.



Parameters:

model the new colormodel ({cm_rgb} or {cm_yuv})





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.13 ColorBuffer Class Reference 69





8.13.3.5 virtual coeff ColorBuffer::smax (void) const [virtual]



Returns the maximum value. Signs will be considered.



Exceptions:



invalid_argument empty image



Returns:

the maximum



Reimplemented in ColorVideo.





8.13.3.6 virtual coeff ColorBuffer::smin (void) const [virtual]



Returns the maximum value. Signs will be considered.



Exceptions:



invalid_argument empty image



Returns:

the maximum



Reimplemented in ColorVideo.





8.13.3.7 virtual int ColorBuffer::fileSize (char const ∗ fname) const

[virtual]



Returns the size in bytes of the file on the file system.



Parameters:

fname the file name



Returns:

the file size







8.13.3.8 virtual bool ColorBuffer::equals (ColorBuffer & buf) const

[virtual]



Compares two images. Return {true} if both are equal.



Parameters:

buf The other {ColorBuffer} object



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

70 Class Documentation



Returns:

if equals: {true}, else {false}



Reimplemented in ColorVideo.





8.13.3.9 virtual bool ColorBuffer::epsilons (ColorBuffer & buf, coeff epsilon)

const [virtual]



Rough comparison. See if two images are similar according to a given {epsilon} (im-

portant for floating-point comparisons).



Parameters:

buf the other {ColorBuffer} object

epsilon the epsilon



Returns:

if both are identical: {true}, else {false}



Reimplemented in ColorVideo.





8.13.3.10 virtual void ColorBuffer::truncate (coeff min = 0, coeff max = 255)

[virtual]



Do a dumb kind of beautification by just truncating values to their possible maxima

depending on the image format or whatever. The original data will be overwritten, so

this should only be used on clones or if the original data is not needed anymore.



Parameters:

min the minimum allowed value

max the maximum allowed value



Reimplemented in ColorVideo.





8.13.3.11 virtual void ColorBuffer::beautify (int yoffs = 0, int xoffs = 0, int

ysize = 0, int xsize = 0) [pure virtual]



Do an intelligent kind of beautification considering previous transform steps. The orig-

inal data will be overwritten, so this should only be used on clones or if the image is

not going to be transformed afterwise. One region inside the image could be the low-

pass subband and should thus be handled separately. If that is desired, the {ysize} and

{xsize} parameters should be set to nonzero values.



Parameters:

ysize the horizontal size of the region that should be handled separately



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.13 ColorBuffer Class Reference 71





xsize the vertical size of the region that should be handled separately

yoffs the horizontal offset of the region that should be handled separately

xoffs the vertical offset of the region that should be handled separately



Implemented in ColorImage, and ColorVideo.





8.13.3.12 virtual coeff ColorBuffer::averageColor (int fromY = 0, int fromX =

0, int toY = -1, int toX = -1) [virtual]



Return the average color for a rectangular region inside the image drawn from one

point within and the second point just outside the region



Parameters:

fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower image border)

toX the second point’s col (-1 if right image border)



Returns:

the average color



Reimplemented in ColorVideo.





8.13.3.13 virtual unsigned char∗ ColorBuffer::toPixmap (clrmodel cmodel)

[virtual]



Export the image for other applications. This only works if the image has three chan-

nels!



Exceptions:



invalid_argument if the current colormodel or the one passed as parameter is un-

supported.



Parameters:

cmodel the color model in which the image is exported. Currently {cm_rgb} and

{cm_yuv} are supported.



Returns:

a new buffer containing the image pixels in the format according on the cmodel

parameter



Reimplemented in ColorVideo.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

72 Class Documentation





8.13.3.14 int ColorBuffer::rows (void) const [inline]



Return the number of rows.



Returns:

the number of rows



Definition at line 144 of file ColorBuffer.hh.





8.13.3.15 int ColorBuffer::cols (void) const [inline]



Return the number of columns.



Returns:

the number of columns



Definition at line 148 of file ColorBuffer.hh.





8.13.3.16 int ColorBuffer::size (void) const [inline]



Return the overall size.



Returns:

the overall size



Definition at line 152 of file ColorBuffer.hh.





8.13.3.17 void ColorBuffer::init (int colors, clrmodel cmodel = cm_rgb)

[protected]



Allocate objects and set standard values.



Parameters:

colors the number of colors

cmodel the initial color model







8.13.3.18 virtual void ColorBuffer::destroy (void) [protected,

virtual]



Deletes allocated objects.

Reimplemented in ColorImage, and ColorVideo.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.13 ColorBuffer Class Reference 73





8.13.3.19 virtual void ColorBuffer::valadjust (void) [protected,

virtual]



Adjust the coefficients to make them pixelizable.





8.13.4 Member Data Documentation



8.13.4.1 clrmodel ColorBuffer::m_cmodel [protected]



Definition at line 156 of file ColorBuffer.hh.





8.13.4.2 int ColorBuffer::m_xsize [protected]



The number of pixel cols

Definition at line 158 of file ColorBuffer.hh.





8.13.4.3 int ColorBuffer::m_ysize [protected]



The number of pixel rows

Definition at line 160 of file ColorBuffer.hh.





8.13.4.4 int ColorBuffer::m_xysize [protected]



The overall number of pixels

Definition at line 162 of file ColorBuffer.hh.





8.13.4.5 int ColorBuffer::m_colors [protected]



The number of colors

Definition at line 164 of file ColorBuffer.hh.





8.13.4.6 Image∗∗ ColorBuffer::m_images [protected]



An array of {colors} Image objects

Definition at line 166 of file ColorBuffer.hh.

Referenced by ColorVideo::currentFrameChannel().





8.13.4.7 bool ColorBuffer::m_isReference [protected]



True if the images are references and should not be deleted.

Definition at line 168 of file ColorBuffer.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

74 Class Documentation





The documentation for this class was generated from the following file:



• ColorBuffer.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.14 ColorImage Class Reference 75





8.14 ColorImage Class Reference

#include

Inheritance diagram for ColorImage:



ColorBuffer









ColorImage









Collaboration diagram for ColorImage:



ReferenceVector









ImageVector









FullVector RowVector ColumnVector





m_afull m_arow m_acol





Image





m_images





ColorBuffer









ColorImage









Public Member Functions

• ColorImage (int colors=3, clrmodel cmodel=cm_rgb, Image ∗∗images=NULL,

bool isReference=false, bool isMine=false)

• ColorImage (int rows, int cols, int colors=3, clrmodel cmodel=cm_rgb)

• virtual ∼ColorImage (void)

• Image & channel (int num)

• const Image & channel (int num) const

• void read (char const ∗fname)

• void read (char const ∗fname, filetype ftype)

• void write (char const ∗fname, bool beautify=false)

• void write (char const ∗fname, filetype ftype, bool beautify=false)

• Image ∗ averageImage (void)

• virtual void beautify (int yoffs=0, int xoffs=0, int ysize=0, int xsize=0)

• ColorImage ∗ clone (void) const



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

76 Class Documentation





• virtual void copy (ColorImage &img)

• int quality (void) const

• void quality (int quality)

• ColorImage ∗ crop (int yoffs, int xoffs, int ysize, int xsize) const

• virtual void paste (int yoffs, int xoffs, ColorImage &img)

• virtual void shift (int yoffs, int xoffs)

• void fill (coeff ∗values, int fromY=0, int fromX=0, int toY=-1, int toX=-1)

• void fill (int ∗values, int fromY=0, int fromX=0, int toY=-1, int toX=-1)

• virtual ColorImage ∗ fitInto (int rows, int cols, int ∗fill=NULL, int function=0)

const

• virtual ColorImage ∗ scale (double factor, int function=0) const

• virtual ColorImage ∗ scale (double yFactor, double xFactor, int function=0) const





Protected Member Functions

• void init (Image ∗∗images=NULL, bool isReference=false, bool isMine=false)

• virtual void destroy (void)





Private Attributes

• int m_quality





8.14.1 Detailed Description



An image wrapper for bitmap images of three color components. Objects may import

and export different bitmap formats, such as PPM. The color models can be changed

(RGB or YUV).

Definition at line 24 of file ColorImage.hh.





8.14.2 Constructor & Destructor Documentation



8.14.2.1 ColorImage::ColorImage (int colors = 3, clrmodel cmodel = cm_rgb,

Image ∗∗ images = NULL, bool isReference = false, bool isMine =

false)



Constructor. Creates objects and sets actual start values.



Parameters:

colors the number of colors, and therefore the array’s length

cmodel the color model

images an array of {colors} images to copy the channel data from

ownership if true, only references to the images will be copied, and they will not

be deleted at object destruction, else the images will be cloned and destroyed

in the end



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.14 ColorImage Class Reference 77





isMine if true the incoming images will not be cloned, i.e. ownership is trans-

ferred to this color image





8.14.2.2 ColorImage::ColorImage (int rows, int cols, int colors = 3, clrmodel

cmodel = cm_rgb)



Constructor. Creates an image of a given size.



Parameters:

rows the number of image rows to create

cols the number of image cols to create

colors the number of colors

cmodel the color model





8.14.2.3 virtual ColorImage::∼ColorImage (void) [virtual]



Destructor. Frees allocated objects.





8.14.3 Member Function Documentation



8.14.3.1 Image& ColorImage::channel (int num) [inline]



Returns a reference to one of the color channels. {Don’t change the dimensions of

single channels unless you know what you’re doing!}



Parameters:

num the number of the color channel

Returns:

the color channel as a reference to an Image object



Definition at line 64 of file ColorImage.hh.





8.14.3.2 const Image& ColorImage::channel (int num) const [inline]



Returns a reference to one of the color channels. {Don’t change the dimensions of

single channels unless you know what you’re doing!}



Parameters:

num the number of the color channel

Returns:

the color channel as a reference to an Image object



Definition at line 71 of file ColorImage.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

78 Class Documentation





8.14.3.3 void ColorImage::read (char const ∗ fname)



Read the image. All steps independent of the file format will be performed, like testing

for file readability etc.



Exceptions:



invalid_argument invalid file format

ios_base::failure a read error has occured [not supported by all libraries, so even-

tually {invalid_argument} instead]







8.14.3.4 void ColorImage::read (char const ∗ fname, filetype ftype)



Read an image. Reads an image from a file using the specified file type. Currently

PGM, RAW and PFI are supported.



Exceptions:



invalid_argument the file type is either not supported or could not be determined

from the given file name



Parameters:

fname the file name, if {NULL}, then {stdin}

ftype the file type









8.14.3.5 void ColorImage::write (char const ∗ fname, bool beautify = false)



Write the image. All steps independent of the file format will be performed, like testing

for file writeability etc.



Exceptions:



ios_base::failure a read error has occured [not supported by all libraries, so even-

tually {invalid_argument} instead]

invalid_argument the source image has a different number of colors than the tar-

get format allows



Parameters:

fname the target file name

beautify beautify images that have not had more analysis than synthesis steps?







Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.14 ColorImage Class Reference 79





8.14.3.6 void ColorImage::write (char const ∗ fname, filetype ftype, bool

beautify = false)



Write an image (abstract). Writes an image to a file using the specified file type.



Parameters:

ftype the file type

fname the file name, if {NULL}, then {stdout}

beautify beautify images that have not had more analysis than synthesis steps?







8.14.3.7 Image∗ ColorImage::averageImage (void)



Return a new greyscale image containing the three color channels’ averages



Returns:

the new image







8.14.3.8 virtual void ColorImage::beautify (int yoffs = 0, int xoffs = 0, int ysize

= 0, int xsize = 0) [virtual]



Do an intelligent kind of beautification considering previous transform steps. The orig-

inal data will be overwritten, so this should only be used on clones or if the image is

not going to be transformed afterwise. One region inside the image could be the low-

pass subband and should thus be handled separately. If that is desired, the {ysize} and

{xsize} parameters should be set to nonzero values.



Parameters:

ysize the horizontal size of the region that should be handled separately

xsize the vertical size of the region that should be handled separately

yoffs the horizontal offset of the region that should be handled separately

xoffs the vertical offset of the region that should be handled separately



Implements ColorBuffer.





8.14.3.9 ColorImage∗ ColorImage::clone (void) const



Produce a copy of this image.



Returns:

the copy





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

80 Class Documentation





8.14.3.10 virtual void ColorImage::copy (ColorImage & img) [virtual]



Copy all data from a source image.



Parameters:

img the source image



Exceptions:



invalid_argument if the two images’ number of color channels do not match







8.14.3.11 int ColorImage::quality (void) const [inline]



Return the current image quality factor.



Returns:

the current image quality factor



Definition at line 152 of file ColorImage.hh.





8.14.3.12 void ColorImage::quality (int quality) [inline]



Sets a new image quality factor.



Returns:

the new image quality factor



Definition at line 156 of file ColorImage.hh.





8.14.3.13 ColorImage∗ ColorImage::crop (int yoffs, int xoffs, int ysize, int

xsize) const



Returns a subimage.



Parameters:

yoffs the row where to start

xoffs the col where to start

ysize the vertical size

xsize the horizontal size



Returns:

the new image





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.14 ColorImage Class Reference 81





8.14.3.14 virtual void ColorImage::paste (int yoffs, int xoffs, ColorImage &

img) [virtual]



Inserts a subimage.



Parameters:

yoffs the row where to start

xoffs the col where to start

img the image to insert



Exceptions:



invalid_argument if the two images’ number of color channels do not match







8.14.3.15 virtual void ColorImage::shift (int yoffs, int xoffs) [virtual]



Shift an Image.



Parameters:

yoffs the rows to shift

xoffs the cols to shift





8.14.3.16 void ColorImage::fill (coeff ∗ values, int fromY = 0, int fromX = 0,

int toY = -1, int toX = -1)



Fills an image (or regions of it) with a given value



Parameters:

values an array of this->colors() entries containing the the new values one per

channel for the selected positions (coeff values)

fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower image border)

toX the second point’s col (-1 if right image border)





8.14.3.17 void ColorImage::fill (int ∗ values, int fromY = 0, int fromX = 0, int

toY = -1, int toX = -1)



Fills an image (or regions of it) with a given value



Parameters:

values an array of this->colors() entries containing the the new values one per

channel for the selected positions (int values)



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

82 Class Documentation





fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower image border)

toX the second point’s col (-1 if right image border)





8.14.3.18 virtual ColorImage∗ ColorImage::fitInto (int rows, int cols, int ∗ fill

= NULL, int function = 0) const [virtual]



Produce a scaled version of the image which just fits into the given dimensions. If

the aspect ratio does not fit into the new dimensions the remaining areas can be filled

with a given color or alternatively the resulting image will be smaller than the target

dimensions keeping its aspect ratio.



Exceptions:



invalid_argument the factor is negative or the function argument is invalid



Parameters:

rows the target number of rows

cols the target number of columns

fill if not NULL it must point to an array of as many values as color channels,

so that each of the image’s channels has its own fill greyscale value for the

remaining space (else the a smaller image size will be chosen if the aspect

ratio does not match)

function interpolation function (0: bilinear interpolation, 1: average, 2: nearest

neighbour).



Returns:

a new rescaled image





8.14.3.19 virtual ColorImage∗ ColorImage::scale (double factor, int function =

0) const [virtual]



Produce a scaled version of the image. The aspect ratio will remain the same.



Exceptions:



invalid_argument the factor is negative or the function argument is invalid



Parameters:

factor the scale factor (>= 0, 1 for no change)

function interpolation function (0: bilinear interpolation, 1: average, 2: nearest

neighbour).



Returns:

a new rescaled image





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.14 ColorImage Class Reference 83





8.14.3.20 virtual ColorImage∗ ColorImage::scale (double yFactor, double

xFactor, int function = 0) const [virtual]



Produce a scaled version of the image. The aspect ratio depends on the two scale

factors



Exceptions:



invalid_argument the factor is negative or the function argument is invalid



Parameters:

yFactor the vertical scale factor (>= 0, 1 for no change)

xFactor the horizontal scale factor (>= 0, 1 for no change)

function interpolation function (0: bilinear interpolation, 1: average, 2: nearest

neighbour).



Returns:

a new rescaled image







8.14.3.21 void ColorImage::init (Image ∗∗ images = NULL, bool isReference =

false, bool isMine = false) [protected]



Allocate objects and set standard values.



Parameters:

images an array of {colors} images to copy the channel data from

isReference if true, only references to the images will be copied, and they will not

be deleted at object destruction

isMine if true, the ownership of the incoming images will be transferred to this

color image





8.14.3.22 virtual void ColorImage::destroy (void) [protected, virtual]



Deletes allocated objects.

Reimplemented from ColorBuffer.





8.14.4 Member Data Documentation



8.14.4.1 int ColorImage::m_quality [private]



The image quality (if stored in lossy format like JPG)

Definition at line 253 of file ColorImage.hh.

The documentation for this class was generated from the following file:



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

84 Class Documentation





• ColorImage.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.15 ColorVideo Class Reference 85





8.15 ColorVideo Class Reference

#include

Inheritance diagram for ColorVideo:



ColorBuffer









ColorVideo









Collaboration diagram for ColorVideo:





ReferenceVector









ImageVector









FullVector RowVector ColumnVector





m_afull m_arow m_acol





Image





m_images





ColorBuffer









ColorImage





m_colorImage





ColorVideo







Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

86 Class Documentation





Public Member Functions

• ColorVideo (void)

• ColorVideo (const ColorVideo &cv)

• ColorVideo (int colors, clrmodel colormodel, int rows, int cols, int frames)

• virtual ∼ColorVideo (void)

• virtual void swapColors (int ch1, int ch2)

• void colormodelVideo (clrmodel model)

• Image & currentFrameChannel (int num=0)

• ColorImage & currentFrame (void)

• double frameRate (void) const

• void frameRate (double fr)

• int current (void) const

• void current (int current)

• int frames (void) const

• void reframe (int frames, bool keephead)

• void resize (int rows, int cols)

• void read (char const ∗fname, int from=0, int to=0, int rawy=0, int rawx=0, int

colors=3, clrmodel cmodel=cm_rgb, int skip=512)

• void read (char const ∗fname, filetype ftype, int from=0, int to=0, int rawy=0, int

rawx=0, int colors=3, clrmodel cmodel=cm_rgb, int skip=512)

• void write (char const ∗fname, int rawskip=512, bool beautify=false)

• void write (char const ∗fname, filetype ftype, int rawskip=512, bool beau-

tify=false)

• virtual coeff smax (void) const

• virtual coeff smin (void) const

• virtual bool equals (ColorBuffer &buf) const

• virtual bool epsilons (ColorBuffer &buf, coeff epsilon) const

• bool epsilonsFrames (int f1, int f2, coeff epsilon) const

• bool equalsFrames (int f1, int f2) const

• virtual void truncate (coeff min=0, coeff max=255)

• virtual void beautify (int yoffs=0, int xoffs=0, int ysize=0, int xsize=0)

• virtual coeff averageColor (int fromY=0, int fromX=0, int toY=-1, int toX=-1)

• virtual unsigned char ∗ toPixmap (clrmodel cmodel)

• ColorVideo ∗ clone (void) const





Static Public Member Functions

• static void videoDimensions (const char ∗fname, int &y, int &x, int &z, int col-

ors, int skip=0)





Protected Member Functions

• virtual void destroy (void)

• bool epsilonsVideo (ColorVideo &cv, coeff epsilon) const

• void init (int colors, clrmodel cmodel, int rows, int cols, int frames)



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.15 ColorVideo Class Reference 87





Protected Attributes



• int m_frames

• int m_current

• int m_xyzsize

• VideoArray ∗∗ m_arrays

• ColorImage ∗ m_colorImage

• double m_frameRate





8.15.1 Detailed Description



An wrapper for videos containing several color components. Objects may import and

export different video formats, such as RAW. The color models can be changed (RGB

or YUV).

Definition at line 24 of file ColorVideo.hh.





8.15.2 Constructor & Destructor Documentation



8.15.2.1 ColorVideo::ColorVideo (void)



Default Constructor. Creates objects and sets actual start values.





8.15.2.2 ColorVideo::ColorVideo (const ColorVideo & cv)



Copy Constructor.



Parameters:

cv the other color video







8.15.2.3 ColorVideo::ColorVideo (int colors, clrmodel colormodel, int rows,

int cols, int frames)



Constructor setting a particular size etc. Initialization not done.



Parameters:

colors the number of colors

colormodel the initial color model

rows the number of rows

cols the number of cols

frames the number of frames





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

88 Class Documentation





8.15.2.4 virtual ColorVideo::∼ColorVideo (void) [virtual]



Destructor. Frees allocated objects.





8.15.3 Member Function Documentation



8.15.3.1 virtual void ColorVideo::swapColors (int ch1, int ch2) [virtual]



Swap two color channels.



Exceptions:



invalid_argument if the channel specs are out of bounds



Parameters:

ch1 the first channel

ch2 the second channel



Reimplemented from ColorBuffer.





8.15.3.2 void ColorVideo::colormodelVideo (clrmodel model)



Convert the video to a new colormodel. This applies the ‘ColorBuffercolormodel()’

operation on the whole video instead of only the current frame.



Parameters:

model the new colormodel ({cm_rgb} or {cm_yuv})







8.15.3.3 Image& ColorVideo::currentFrameChannel (int num = 0)

[inline]



Returns a reference to one of the color channels of the current frame. {Don’t change

the dimensions of single channels unless you know what you’re doing!}



Parameters:

num the number of the color channel



Returns:

the frame as a reference to an VideoFrame object



Definition at line 66 of file ColorVideo.hh.

References ColorBuffer::m_images.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.15 ColorVideo Class Reference 89





8.15.3.4 ColorImage& ColorVideo::currentFrame (void) [inline]



Returns a reference to a color video containing the color channels of the current

frame.



Returns:

the frame as a reference to an ColorImage object



Definition at line 71 of file ColorVideo.hh.

References m_colorImage.





8.15.3.5 double ColorVideo::frameRate (void) const [inline]



Returns the frame rate



Returns:

the frameRate



Definition at line 75 of file ColorVideo.hh.

References m_frameRate.





8.15.3.6 void ColorVideo::frameRate (double fr) [inline]



Sets the frame rate



Parameters:

fr the frameRate



Definition at line 79 of file ColorVideo.hh.

References m_frameRate.





8.15.3.7 int ColorVideo::current (void) const [inline]



Returns the number of the current frame.



Returns:

the current frame (counted from 0)



Definition at line 83 of file ColorVideo.hh.

References m_current.





8.15.3.8 void ColorVideo::current (int current)



Returns the number of the current frame.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

90 Class Documentation



Returns:

the current frame (counted from 0)





8.15.3.9 int ColorVideo::frames (void) const [inline]



Returns the number of frames

Returns:

the number of frames



Definition at line 91 of file ColorVideo.hh.

References m_frames.





8.15.3.10 void ColorVideo::reframe (int frames, bool keephead)



Sets new number of frames. The old frames will be copied to the new ones as far as

they fit in. The new number must be greater than zero.



Exceptions:



invalid_argument the new number of frames is either negative or zero



Parameters:

frames the new number of frames.

keephead if shrinking the video, frames will be deleted at the end.





8.15.3.11 void ColorVideo::resize (int rows, int cols)



Resize the video. The old values will be copied to the new dimension as far as they fit

in. The new dimensions must all be greater than zero.



Exceptions:



invalid_argument one or both dimensions are either negative or zero



Parameters:

rows the new number of rows

cols the new number of cols





8.15.3.12 void ColorVideo::read (char const ∗ fname, int from = 0, int to =

0, int rawy = 0, int rawx = 0, int colors = 3, clrmodel cmodel =

cm_rgb, int skip = 512)



Read the video. All steps independent of the file format will be performed, like testing

for file readability etc.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.15 ColorVideo Class Reference 91



Exceptions:



invalid_argument invalid file format

ios_base::failure a read error has occured [not supported by all libraries, so even-

tually {invalid_argument} instead]



Parameters:

fname the file name to read from

rawy the number of rows (only needed for RAW format)

rawx the number of cols (only needed for RAW format)

colors the number of colors (if known, necessary for raw videos)

from the frame to start with (from 0)

to one greater than the last frame, if equal to ‘from’ then the whole video will be

read, if 0, then the video will be read from ‘from’ to the end

cmodel the color model

skip the amount of bytes to skip as a header before contents







8.15.3.13 void ColorVideo::read (char const ∗ fname, filetype ftype, int from =

0, int to = 0, int rawy = 0, int rawx = 0, int colors = 3, clrmodel

cmodel = cm_rgb, int skip = 512)



Read an video. Reads an video from a file using the specified file type. Currently PGM,

RAW and PFI are supported.



Exceptions:



invalid_argument the file type is either not supported or could not be determined

from the given file name



Parameters:

fname the file name, if {NULL}, then {stdin}

ftype the file type

rawy the number of rows (only needed for RAW format)

rawx the number of cols (only needed for RAW format)

colors the number of colors (if known, necessary for raw videos)

from the frame to start with (from 0)

to one greater than the last frame, if equal to ‘from’ then the whole video will be

read, if 0, then the video will be read from ‘from’ to the end

cmodel the color model

skip the amount of bytes to skip as a header before contents





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

92 Class Documentation





8.15.3.14 void ColorVideo::write (char const ∗ fname, int rawskip = 512, bool

beautify = false)



Write the video. All steps independent of the file format will be performed, like testing

for file writeability etc.



Exceptions:



ios_base::failure a read error has occured [not supported by all libraries, so even-

tually {invalid_argument} instead]

invalid_argument the source video has a different number of colors than the target

format allows



Parameters:

fname the target file name

rawskip the amount of header area before contents (will be filled with zeroes)

beautify beautify video that have not had more analysis than synthesis steps?







8.15.3.15 void ColorVideo::write (char const ∗ fname, filetype ftype, int

rawskip = 512, bool beautify = false)



Write an video. Writes an video to a file using the specified file type.



Parameters:

ftype the file type

fname the file name, if {NULL}, then {stdout}

rawskip the amount of header area before contents (will be filled with zeroes)

beautify beautify videos that have not had more analysis than synthesis steps?







8.15.3.16 virtual coeff ColorVideo::smax (void) const [virtual]



Returns the maximum value. Signs will be considered.



Exceptions:



invalid_argument empty video



Returns:

the maximum



Reimplemented from ColorBuffer.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.15 ColorVideo Class Reference 93





8.15.3.17 virtual coeff ColorVideo::smin (void) const [virtual]



Returns the maximum value. Signs will be considered.



Exceptions:



invalid_argument empty video



Returns:

the maximum



Reimplemented from ColorBuffer.





8.15.3.18 virtual bool ColorVideo::equals (ColorBuffer & buf) const

[virtual]



Compares two videos. Return {true} if both are equal.



Parameters:

buf The other {ColorBuffer} object



Returns:

if equals: {true}, else {false}



Reimplemented from ColorBuffer.





8.15.3.19 virtual bool ColorVideo::epsilons (ColorBuffer & buf, coeff epsilon)

const [virtual]



Rough comparison. See if two videos are similar according to a given {epsilon} (im-

portant for floating-point comparisons).



Parameters:

buf the other {ColorBuffer} object

epsilon the epsilon



Returns:

if both are identical: {true}, else {false}



Reimplemented from ColorBuffer.





8.15.3.20 bool ColorVideo::epsilonsFrames (int f1, int f2, coeff epsilon) const



Rough comparison. See if this and another frame are similar according to a given

{epsilon} (important for floating-point comparisons).



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

94 Class Documentation



Exceptions:



invalid_argument one of the frames is out of bounds



Parameters:

f1 the first frame

f2 the second frame

epsilon the epsilon



Returns:

if both are identical: {true}, else {false}





8.15.3.21 bool ColorVideo::equalsFrames (int f1, int f2) const



Exact comparison. See if two frames are similar.



Exceptions:



invalid_argument one of the frames is out of bounds



Parameters:

f1 the first frame

f2 the second frame if both are identical: {true}, else {false}





8.15.3.22 virtual void ColorVideo::truncate (coeff min = 0, coeff max = 255)

[virtual]



Do a dumb kind of beautification by just truncating values to their possible maxima

depending on the video format or whatever. The original data will be overwritten, so

this should only be used on clones or if the original data is not needed anymore.



Parameters:

min the minimum allowed value

max the maximum allowed value



Reimplemented from ColorBuffer.





8.15.3.23 virtual void ColorVideo::beautify (int yoffs = 0, int xoffs = 0, int

ysize = 0, int xsize = 0) [virtual]



Do an intelligent kind of beautification considering previous transform steps. The orig-

inal data will be overwritten, so this should only be used on clones or if the video is

not going to be transformed afterwise. One region inside the video could be the low-

pass subband and should thus be handled separately. If that is desired, the {ysize} and

{xsize} parameters should be set to nonzero values. Note that the current implementa-

tion is very memory consuming.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.15 ColorVideo Class Reference 95



Parameters:

ysize the horizontal size of the region that should be handled separately

xsize the vertical size of the region that should be handled separately

yoffs the horizontal offset of the region that should be handled separately

xoffs the vertical offset of the region that should be handled separately



Implements ColorBuffer.





8.15.3.24 virtual coeff ColorVideo::averageColor (int fromY = 0, int fromX = 0,

int toY = -1, int toX = -1) [virtual]



Return the average color for a rectangular region inside the video drawn from one point

within and the second point just outside the region



Parameters:

fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower video border)

toX the second point’s col (-1 if right video border)



Returns:

the average color



Reimplemented from ColorBuffer.





8.15.3.25 virtual unsigned char∗ ColorVideo::toPixmap (clrmodel cmodel)

[virtual]



Export the video for other applications. This only works if the video has three chan-

nels!



Exceptions:



invalid_argument if the current colormodel or the one passed as parameter is un-

supported.



Parameters:

cmodel the color model in which the video is exported. Currently {cm_rgb} and

{cm_yuv} are supported.



Returns:

a new buffer containing the video pixels in the format according on the cmodel

parameter



Reimplemented from ColorBuffer.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

96 Class Documentation





8.15.3.26 ColorVideo∗ ColorVideo::clone (void) const



Produce a copy of this video



Returns:

the copy





8.15.3.27 static void ColorVideo::videoDimensions (const char ∗ fname, int &

y, int & x, int & z, int colors, int skip = 0) [static]



Try to determine some of a video file’s dimensions: If the file is a raw video, two out

of the three need to be specified, for AVI files all three can be determined from the

header.



Exceptions:



invalid_argument if there was an error



Parameters:

fname the file name of the video

y the video’s rows

x the video’s columns

z the video’s number of frames

colors the number of colors (always 3 with AVI files)

skip the size of the header (only raw videos)







8.15.3.28 virtual void ColorVideo::destroy (void) [protected, virtual]



Deletes allocated objects.

Reimplemented from ColorBuffer.





8.15.3.29 bool ColorVideo::epsilonsVideo (ColorVideo & cv, coeff epsilon)

const [protected]



Compares two videos



Parameters:

cv the other video

epsilon the min difference



Returns:

true if they equal according to epsilon





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.15 ColorVideo Class Reference 97





8.15.3.30 void ColorVideo::init (int colors, clrmodel cmodel, int rows, int cols,

int frames) [protected]



Allocate objects and set standard values.



Exceptions:



invalid_argument if any of the arguments does not make sense



Parameters:

colors the number of colors

cmodel the initial color model

rows the number of rows

cols the number of cols

frames the number of frames





8.15.4 Member Data Documentation



8.15.4.1 int ColorVideo::m_frames [protected]



A the number of frames

Definition at line 322 of file ColorVideo.hh.

Referenced by frames().





8.15.4.2 int ColorVideo::m_current [protected]



A counter for the current frame

Definition at line 324 of file ColorVideo.hh.

Referenced by current().





8.15.4.3 int ColorVideo::m_xyzsize [protected]



The video’s total size.

Definition at line 326 of file ColorVideo.hh.





8.15.4.4 VideoArray∗∗ ColorVideo::m_arrays [protected]



An array of {colors} Image objects

Definition at line 328 of file ColorVideo.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

98 Class Documentation





8.15.4.5 ColorImage∗ ColorVideo::m_colorImage [protected]



All channels of the current frame bundled in a ColorImage object.

Definition at line 330 of file ColorVideo.hh.

Referenced by currentFrame().





8.15.4.6 double ColorVideo::m_frameRate [protected]



The frame rate (if known)

Definition at line 332 of file ColorVideo.hh.

Referenced by frameRate().

The documentation for this class was generated from the following file:



• ColorVideo.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.16 ColumnVector Class Reference 99





8.16 ColumnVector Class Reference



#include

Inheritance diagram for ColumnVector:





ReferenceVector









ImageVector









ColumnVector









Collaboration diagram for ColumnVector:





ReferenceVector









ImageVector









ColumnVector









Public Member Functions



• ColumnVector (ImageArray ∗ar)

• virtual ∼ColumnVector (void)

• virtual void go (int root)

• virtual coeff at (int pos)

• virtual void to (int pos, coeff val)

• virtual int size (void)

• virtual void update (void)







8.16.1 Detailed Description



Column-reference. A reference to a two-dimensional array’s column.

Definition at line 21 of file ColumnVector.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

100 Class Documentation





8.16.2 Constructor & Destructor Documentation



8.16.2.1 ColumnVector::ColumnVector (ImageArray ∗ ar)

[inline]



Constructor. As we’ve got no default constructor we need to call the mother’s class’

constructor here...

Definition at line 28 of file ColumnVector.hh.

References go().





8.16.2.2 virtual ColumnVector::∼ColumnVector (void) [inline,

virtual]



Destructor. Does nothing.

Definition at line 30 of file ColumnVector.hh.





8.16.3 Member Function Documentation



8.16.3.1 virtual void ColumnVector::go (int root) [virtual]



Sets a new root. In this context this “new root” means a new col.



Exceptions:



invalid_argument the new root is greater than the number of columns



Parameters:

root the new row



Reimplemented from ImageVector.

Referenced by ColumnVector().





8.16.3.2 virtual coeff ColumnVector::at (int pos) [virtual]



Get a value. Return the value at a given column from the current row.



Exceptions:



invalid_argument a negative value was given for the new root



Parameters:

pos the column



Returns:

the value



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.16 ColumnVector Class Reference 101





Implements ImageVector.





8.16.3.3 virtual void ColumnVector::to (int pos, coeff val) [virtual]



Assigns a new value. Sets a new value at a given column from the current column.



Parameters:

pos the column

val the new value



Implements ImageVector.





8.16.3.4 virtual int ColumnVector::size (void) [virtual]



The vector’s size. Returns the vector’s size (the number of cols)



Returns:

the number of cols



Implements ImageVector.





8.16.3.5 virtual void ColumnVector::update (void) [virtual]



Updates the vector’s settings. This is necessary each time after the array has been

resized.

Reimplemented from ImageVector.

The documentation for this class was generated from the following file:



• ColumnVector.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

102 Class Documentation





8.17 common_struct Struct Reference



#include







Public Attributes



• uint16_t wFormatTag

• uint16_t wChannels

• uint32_t dwSamplesPerSec

• uint32_t dwAvgBytesPerSec

• uint16_t wBlockAlign

• uint16_t wBitsPerSample







8.17.1 Detailed Description



Definition at line 485 of file avilib.h.







8.17.2 Member Data Documentation



8.17.2.1 uint16_t common_struct::wFormatTag



Definition at line 487 of file avilib.h.





8.17.2.2 uint16_t common_struct::wChannels



Definition at line 488 of file avilib.h.





8.17.2.3 uint32_t common_struct::dwSamplesPerSec



Definition at line 489 of file avilib.h.





8.17.2.4 uint32_t common_struct::dwAvgBytesPerSec



Definition at line 490 of file avilib.h.





8.17.2.5 uint16_t common_struct::wBlockAlign



Definition at line 491 of file avilib.h.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.17 common_struct Struct Reference 103





8.17.2.6 uint16_t common_struct::wBitsPerSample



Definition at line 492 of file avilib.h.

The documentation for this struct was generated from the following file:



• avilib.h









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

104 Class Documentation





8.18 FileName Class Reference

#include





Public Member Functions

• FileName (char const ∗name)

• ∼FileName (void)

• bool isext (const char ∗ext) const

• void toext (const char ∗ext)

• filetype guess (void) const

• char ∗ file (void) const

• char ∗ dir (void) const

• char ∗ base (void) const

• char ∗ ext (void) const

• bool dos (void) const





Private Member Functions

• void guessext (void)





Private Attributes

• char ∗ m_fname

• char ∗ m_dirname

• char ∗ m_basename

• char ∗ m_extension

• bool m_isdos

• filetype m_ftype





8.18.1 Detailed Description



File names. This splits a DOS- or Unix-like filespec into its parts (dir, name without

extension, extension) and guesses what kind of (image) file it is according to the (case

insignificant) file extension.

Definition at line 30 of file FileName.hh.





8.18.2 Constructor & Destructor Documentation



8.18.2.1 FileName::FileName (char const ∗ name)



Constructor. The file name is being set, and the filename is split into its bits. At last the

file type is guessed.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.18 FileName Class Reference 105



Parameters:

name the file name



Exceptions:



invalid_argument the file name is a {NULL} pointer







8.18.2.2 FileName::∼FileName (void)



Destructor. Releases allocated memory.





8.18.3 Member Function Documentation



8.18.3.1 bool FileName::isext (const char ∗ ext) const



Compares two extensions. The comparison is case insensitive.



Parameters:

ext the other extension



Returns:

they are equal: {true} else {false}







8.18.3.2 void FileName::toext (const char ∗ ext)



Set a new extension. This might be useful if we want to create an output file name.



Parameters:

ext the new extension







8.18.3.3 filetype FileName::guess (void) const [inline]



Return the guessed type. No calculation is done here.



Returns:

the file type



Definition at line 59 of file FileName.hh.

References m_ftype.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

106 Class Documentation





8.18.3.4 char∗ FileName::file (void) const [inline]



Return the file name.



Returns:

the file name



Definition at line 63 of file FileName.hh.

References m_fname.





8.18.3.5 char∗ FileName::dir (void) const [inline]



Return the directory name.



Returns:

the directory name



Definition at line 67 of file FileName.hh.

References m_dirname.





8.18.3.6 char∗ FileName::base (void) const [inline]



Return the basename without extension.



Returns:

the name without extension



Definition at line 71 of file FileName.hh.

References m_basename.





8.18.3.7 char∗ FileName::ext (void) const [inline]



Return the file extension.



Returns:

the file extension



Definition at line 75 of file FileName.hh.

References m_extension.





8.18.3.8 bool FileName::dos (void) const [inline]



Is it a DOS-like name?



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.18 FileName Class Reference 107



Returns:

if a DOS-like name: {true}, else {false}



Definition at line 79 of file FileName.hh.

References m_isdos.





8.18.3.9 void FileName::guessext (void) [private]



Guess the type. This sets the {m_ftype} variable.





8.18.4 Member Data Documentation



8.18.4.1 char∗ FileName::m_fname [private]



The complete filename

Definition at line 83 of file FileName.hh.

Referenced by file().





8.18.4.2 char∗ FileName::m_dirname [private]



The directory name

Definition at line 85 of file FileName.hh.

Referenced by dir().





8.18.4.3 char∗ FileName::m_basename [private]



The file name without extension

Definition at line 87 of file FileName.hh.

Referenced by base().





8.18.4.4 char∗ FileName::m_extension [private]



The file extension

Definition at line 89 of file FileName.hh.

Referenced by ext().





8.18.4.5 bool FileName::m_isdos [private]



Is it a DOS-like filespec? It is as soon as we find a backslash somewhere in it!

Definition at line 92 of file FileName.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

108 Class Documentation





Referenced by dos().





8.18.4.6 filetype FileName::m_ftype [private]



The file type. This is guessed from the file’s extension.

Definition at line 94 of file FileName.hh.

Referenced by guess().

The documentation for this class was generated from the following file:



• FileName.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.19 Filter Class Reference 109





8.19 Filter Class Reference

#include





Public Member Functions

• Filter (void)

• Filter (int m_size, int firstIndex=0, coeff ∗coeffs=NULL)

• Filter (const Filter &filter)

• ∼Filter (void)

• void init (int m_size, int filterFirst, coeff ∗coeffs)

• void dump (void)

• coeff at (int index)

• int fsize (void)

• int first (void)





Protected Member Functions

• void copy (const Filter &filter)

• void tof (int index, coeff value)

• coeff atf (int index)





Protected Attributes

• int m_size

• int m_firstIndex

• coeff ∗ m_coeffs





Friends

• class FilterSet





8.19.1 Detailed Description



Definition at line 42 of file Filter.hh.





8.19.2 Constructor & Destructor Documentation



8.19.2.1 Filter::Filter (void) [inline]



Definition at line 47 of file Filter.hh.

References m_coeffs, m_firstIndex, m_size, and NULL.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

110 Class Documentation





8.19.2.2 Filter::Filter (int m_size, int firstIndex = 0, coeff ∗ coeffs = NULL)

[inline]



Definition at line 48 of file Filter.hh.

References init().





8.19.2.3 Filter::Filter (const Filter & filter) [inline]



Definition at line 50 of file Filter.hh.

References copy(), m_coeffs, and NULL.





8.19.2.4 Filter::∼Filter (void)



8.19.3 Member Function Documentation



8.19.3.1 void Filter::init (int m_size, int filterFirst, coeff ∗ coeffs)



Referenced by Filter().





8.19.3.2 void Filter::dump (void)



8.19.3.3 coeff Filter::at (int index) [inline]



Definition at line 55 of file Filter.hh.

References m_coeffs.





8.19.3.4 int Filter::fsize (void) [inline]



Definition at line 56 of file Filter.hh.

References m_size.





8.19.3.5 int Filter::first (void) [inline]



Definition at line 57 of file Filter.hh.

References m_firstIndex.





8.19.3.6 void Filter::copy (const Filter & filter) [protected]



Referenced by Filter().



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.19 Filter Class Reference 111





8.19.3.7 void Filter::tof (int index, coeff value) [inline, protected]



Definition at line 64 of file Filter.hh.

References m_coeffs, and m_firstIndex.





8.19.3.8 coeff Filter::atf (int index) [inline, protected]



Definition at line 66 of file Filter.hh.

References m_coeffs, and m_firstIndex.





8.19.4 Friends And Related Function Documentation



8.19.4.1 friend class FilterSet [friend]



Definition at line 44 of file Filter.hh.





8.19.5 Member Data Documentation



8.19.5.1 int Filter::m_size [protected]



Definition at line 60 of file Filter.hh.

Referenced by Filter(), and fsize().





8.19.5.2 int Filter::m_firstIndex [protected]



Definition at line 61 of file Filter.hh.

Referenced by atf(), Filter(), first(), and tof().





8.19.5.3 coeff∗ Filter::m_coeffs [protected]



Definition at line 63 of file Filter.hh.

Referenced by at(), atf(), Filter(), and tof().

The documentation for this class was generated from the following file:



• Filter.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

112 Class Documentation





8.20 FilterSet Class Reference

#include

Collaboration diagram for FilterSet:



Filter





m_synthesisHigh

m_analysisHigh

m_analysisLow

m_synthesisLow





FilterSet









Public Member Functions

• FilterSet (void)

• FilterSet (bool symmetric, coeff ∗anLow, int anLowSize, int anLowFirst, coeff

∗synLow=NULL, int synLowSize=0, int synLowFirst=0)

• FilterSet (const FilterSet &filterset)

• ∼FilterSet (void)

• Filter & alow (void)

• Filter & ahigh (void)

• Filter & slow (void)

• Filter & shigh (void)

• bool issym (void)

• void dump (void)

• void init (bool symmetric, coeff ∗anLow, int anLowSize, int anLowFirst, coeff

∗synLow, int synLowSize, int synLowFirst)





Static Public Member Functions

• static FilterSet & filterFromString (char ∗str)

• static const char ∗ filterToString (FilterSet &filter)





Protected Member Functions

• void copy (const FilterSet &filterset)





Protected Attributes

• bool m_symmetric

• Filter ∗ m_analysisLow

• Filter ∗ m_analysisHigh

• Filter ∗ m_synthesisLow

• Filter ∗ m_synthesisHigh



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.20 FilterSet Class Reference 113





8.20.1 Detailed Description



Originally this was wavelet.hh from Geoff Davis’ Wavelet construction kit. This ver-

sion has been adapted to my classes resulting in small changes to names and formatting

etc. I also removed the class Wavelet which looks different in my code!

Definition at line 79 of file Filter.hh.





8.20.2 Constructor & Destructor Documentation



8.20.2.1 FilterSet::FilterSet (void) [inline]



Definition at line 82 of file Filter.hh.

References m_analysisHigh, m_analysisLow, m_symmetric, m_synthesisHigh, m_-

synthesisLow, and NULL.





8.20.2.2 FilterSet::FilterSet (bool symmetric, coeff ∗ anLow, int anLowSize,

int anLowFirst, coeff ∗ synLow = NULL, int synLowSize = 0, int

synLowFirst = 0)



8.20.2.3 FilterSet::FilterSet (const FilterSet & filterset)



8.20.2.4 FilterSet::∼FilterSet (void)



8.20.3 Member Function Documentation



8.20.3.1 Filter& FilterSet::alow (void) [inline]



Definition at line 91 of file Filter.hh.

References m_analysisLow.





8.20.3.2 Filter& FilterSet::ahigh (void) [inline]



Definition at line 92 of file Filter.hh.

References m_analysisHigh.





8.20.3.3 Filter& FilterSet::slow (void) [inline]



Definition at line 93 of file Filter.hh.

References m_synthesisLow.





8.20.3.4 Filter& FilterSet::shigh (void) [inline]



Definition at line 94 of file Filter.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

114 Class Documentation





References m_synthesisHigh.





8.20.3.5 bool FilterSet::issym (void) [inline]



Definition at line 95 of file Filter.hh.

References m_symmetric.





8.20.3.6 void FilterSet::dump (void)



8.20.3.7 void FilterSet::init (bool symmetric, coeff ∗ anLow, int anLowSize, int

anLowFirst, coeff ∗ synLow, int synLowSize, int synLowFirst)



8.20.3.8 static FilterSet& FilterSet::filterFromString (char ∗ str) [static]



Return a FilterSet from a String.



Exceptions:



invalid_argument the filter in the string was not found



Returns:

a reference to the filter set





8.20.3.9 static const char∗ FilterSet::filterToString (FilterSet & filter)

[static]



8.20.3.10 void FilterSet::copy (const FilterSet & filterset) [protected]



8.20.4 Member Data Documentation



8.20.4.1 bool FilterSet::m_symmetric [protected]



Definition at line 112 of file Filter.hh.

Referenced by FilterSet(), and issym().





8.20.4.2 Filter∗ FilterSet::m_analysisLow [protected]



Definition at line 113 of file Filter.hh.

Referenced by alow(), and FilterSet().





8.20.4.3 Filter∗ FilterSet::m_analysisHigh [protected]



Definition at line 114 of file Filter.hh.

Referenced by ahigh(), and FilterSet().



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.20 FilterSet Class Reference 115





8.20.4.4 Filter∗ FilterSet::m_synthesisLow [protected]



Definition at line 115 of file Filter.hh.

Referenced by FilterSet(), and slow().





8.20.4.5 Filter∗ FilterSet::m_synthesisHigh [protected]



Definition at line 116 of file Filter.hh.

Referenced by FilterSet(), and shigh().

The documentation for this class was generated from the following file:



• Filter.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

116 Class Documentation





8.21 FullVector Class Reference

#include

Inheritance diagram for FullVector:



ReferenceVector









ImageVector









FullVector









Collaboration diagram for FullVector:



ReferenceVector









ImageVector









FullVector









Public Member Functions

• FullVector (ImageArray ∗ar)

• virtual ∼FullVector (void)

• virtual void go (int root)

• virtual coeff at (int pos)

• virtual void to (int pos, coeff val)

• virtual int size (void)

• virtual void update (void)





Private Attributes

• int m_xysize





8.21.1 Detailed Description



Full reference. A reference to a one-dimensional array.

Definition at line 21 of file FullVector.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.21 FullVector Class Reference 117





8.21.2 Constructor & Destructor Documentation



8.21.2.1 FullVector::FullVector (ImageArray ∗ ar) [inline]



Constructor. As we’ve got no default constructor we need to call the mother’s class’

constructor here...

Definition at line 28 of file FullVector.hh.

References go(), ImageVector::m_xsize, m_xysize, and ImageVector::m_ysize.





8.21.2.2 virtual FullVector::∼FullVector (void) [inline, virtual]



Destructor. Does nothing.

Definition at line 31 of file FullVector.hh.





8.21.3 Member Function Documentation



8.21.3.1 virtual void FullVector::go (int root) [virtual]



Sets a new root. In this context this “new root” means a new row.



Exceptions:



invalid_argument the new root is greater than the number of rows



Parameters:

root the new row



Reimplemented from ImageVector.

Referenced by FullVector().





8.21.3.2 virtual coeff FullVector::at (int pos) [virtual]



Get a value. Return the value at a given column from the current row.



Exceptions:



invalid_argument a negative value was given for the new root



Parameters:

pos the column



Returns:

the value



Implements ImageVector.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

118 Class Documentation





8.21.3.3 virtual void FullVector::to (int pos, coeff val) [virtual]



Assigns a new value. Sets a new value at a given column from the current row.



Parameters:

pos the column

val the new value



Implements ImageVector.





8.21.3.4 virtual int FullVector::size (void) [virtual]



The vector’s size. Returns the vector’s size (the number of cols)



Returns:

the number of cols



Implements ImageVector.





8.21.3.5 virtual void FullVector::update (void) [virtual]



Updates the vector’s settings. This is necessary each time after the array has been

resized.

Reimplemented from ImageVector.





8.21.4 Member Data Documentation



8.21.4.1 int FullVector::m_xysize [private]



The encapsulated array’s size.

Definition at line 62 of file FullVector.hh.

Referenced by FullVector().

The documentation for this class was generated from the following file:



• FullVector.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.22 GreymapFile Class Reference 119





8.22 GreymapFile Class Reference

#include

Inheritance diagram for GreymapFile:





GreymapFile









GreymapReader GreymapWriter









PfgReader PgmReader RawReader PfgWriter PgmWriter RawWriter









Public Member Functions

• GreymapFile (char const ∗name, ImageArray &data)

• virtual ∼GreymapFile (void)





Protected Attributes

• ImageArray ∗ m_pixels

• ImageArray ∗ m_coeffs

• char const ∗ m_fname





8.22.1 Detailed Description



An abstract image file. A framework to create readers and writers on any greyscale

images.

Definition at line 24 of file GreymapFile.hh.





8.22.2 Constructor & Destructor Documentation



8.22.2.1 GreymapFile::GreymapFile (char const ∗ name, ImageArray & data)



Constructor. Initializes internal fields and gets an {ImageArray} object that may al-

ready contain an image or will get one later.

Parameters:

name the file name

data the array for the values





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

120 Class Documentation





8.22.2.2 virtual GreymapFile::∼GreymapFile (void) [virtual]



Destructor. Releases some memory.





8.22.3 Member Data Documentation



8.22.3.1 ImageArray∗ GreymapFile::m_pixels [protected]



The pixels. These are one-byte integer values representing pixels stored in typical

image formats.

Definition at line 44 of file GreymapFile.hh.





8.22.3.2 ImageArray∗ GreymapFile::m_coeffs [protected]



Coefficients. These are long floating-point numbers to represent positive or negative

floating-point values created through a transform.

Definition at line 48 of file GreymapFile.hh.





8.22.3.3 char const∗ GreymapFile::m_fname [protected]



The file name. The name of the file associated with this object.

Definition at line 50 of file GreymapFile.hh.

The documentation for this class was generated from the following file:



• GreymapFile.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.23 GreymapReader Class Reference 121





8.23 GreymapReader Class Reference

#include

Inheritance diagram for GreymapReader:



GreymapFile









GreymapReader









PfgReader PgmReader RawReader









Collaboration diagram for GreymapReader:



GreymapFile









GreymapReader









Public Member Functions



• GreymapReader (char const ∗name, ImageArray &data)

• virtual ∼GreymapReader (void)

• virtual void read (void)





Protected Member Functions



• virtual int readfmt (void)=0





Private Member Functions



• void unpixel (void)





8.23.1 Detailed Description



An abstract greyscale image reader. The image is being read putting its content into an

{ImageArray} object. A reference to such an object is passed by the constructor, the

actual object belongs to the outer world.

Definition at line 25 of file GreymapReader.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

122 Class Documentation





8.23.2 Constructor & Destructor Documentation



8.23.2.1 GreymapReader::GreymapReader (char const ∗ name, ImageArray & data) [inline]



Constructor. Only calls the mother class’ constructor to initialize the {ImageArray}

reference.



Parameters:

name the file name, if {NULL}, then {stdin}

data the reference to the {ImageArray} object



Definition at line 36 of file GreymapReader.hh.





8.23.2.2 virtual GreymapReader::∼GreymapReader (void) [inline,

virtual]



Destructor - does nothing.

Definition at line 40 of file GreymapReader.hh.





8.23.3 Member Function Documentation



8.23.3.1 virtual void GreymapReader::read (void) [virtual]



Read the image. All steps independent of the file format will be performed, like testing

for file readability etc.



Exceptions:



invalid_argument invalid file format

ios_base::failure a read error has occured [not supported by all libraries, so even-

tually {invalid_argument} instead]







8.23.3.2 void GreymapReader::unpixel (void) [private]



Fill the coefficient array. If the file contains pixels rather than coefficients (like any

bitmap format) this function will be called to create and fill the coefficient array.





8.23.3.3 virtual int GreymapReader::readfmt (void) [protected, pure

virtual]



Read different file formats (abstract). This is the method to be implemented for every

image file format. It will be called by the {read ()} method.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.23 GreymapReader Class Reference 123



Returns:

0 if successful, -1 on read error, -2 on file format error.



Implemented in PfgReader, PgmReader, and RawReader.

The documentation for this class was generated from the following file:



• GreymapReader.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

124 Class Documentation





8.24 GreymapWriter Class Reference

#include

Inheritance diagram for GreymapWriter:



GreymapFile









GreymapWriter









PfgWriter PgmWriter RawWriter









Collaboration diagram for GreymapWriter:



GreymapFile









GreymapWriter









Public Member Functions



• GreymapWriter (char const ∗name, ImageArray &data)

• virtual ∼GreymapWriter (void)

• void write (void)





Protected Member Functions



• virtual int writefmt (void)=0





Private Member Functions



• void pixelize (void)





8.24.1 Detailed Description



An abstract image writer. The image is being written putting its content from an {Im-

ageArray} object into the file. A reference to the object holding the image is passed by

the constructor, the actual object belongs to the outer world.

Definition at line 25 of file GreymapWriter.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.24 GreymapWriter Class Reference 125





8.24.2 Constructor & Destructor Documentation



8.24.2.1 GreymapWriter::GreymapWriter (char const ∗ name, ImageArray & data) [inline]



Constructor. Only calls the mother class’ constructor to initialize the {ImageArray}

reference.



Parameters:

name the file name, if {NULL}, then {stdout}

data the reference to the {ImageArray} object



Definition at line 36 of file GreymapWriter.hh.





8.24.2.2 virtual GreymapWriter::∼GreymapWriter (void) [inline,

virtual]



Destructor - does nothing.

Definition at line 40 of file GreymapWriter.hh.





8.24.3 Member Function Documentation



8.24.3.1 void GreymapWriter::write (void)



Write the image. All steps independent of the file format will be performed, like testing

for file writeability etc.



Exceptions:



ios_base::failure a read error has occured [not supported by all libraries, so even-

tually {invalid_argument} instead]





8.24.3.2 void GreymapWriter::pixelize (void) [private]



Fill the pixels array. This is not trivial as the coefficients may contain negative values

that have to be represented as grey-scale pixels.





8.24.3.3 virtual int GreymapWriter::writefmt (void) [protected, pure

virtual]



Write different file formats (abstract). This is the method to be implemented for every

image file format. It will be called by the {write ()} method.



Returns:

0 if successful, -1 on write error.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

126 Class Documentation





Implemented in PfgWriter, PgmWriter, and RawWriter.

The documentation for this class was generated from the following file:



• GreymapWriter.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.25 Histogram Class Reference 127





8.25 Histogram Class Reference

#include

Collaboration diagram for Histogram:





ReferenceVector









ImageVector









FullVector RowVector ColumnVector CoeffInformation





m_afull m_arow m_acol m_coeffs





Image ImageInformation Histogram::hist





m_ii

m_image m_values

m_data





Histogram









Public Member Functions

• Histogram (Image &img, double dlt=1.0)

• Histogram (ImageInformation &ii, double dlt=1.0)

• ∼Histogram (void)

• int at (int pos, coeff &lower)

• int at (coeff value)

• int size (void)

• double delta (void)

• void update (void)

• void print (void)

• void add (coeff value, int number)





Protected Attributes

• Image ∗ m_image

• ImageInformation ∗ m_data



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

128 Class Documentation





• ImageInformation ∗ m_ii

• double m_dlt

• struct hist ∗ m_values

• int m_nvals





Classes

• struct hist





8.25.1 Detailed Description



A class for histograms.

Definition at line 21 of file Histogram.hh.





8.25.2 Constructor & Destructor Documentation



8.25.2.1 Histogram::Histogram (Image & img, double dlt = 1.0)



Constructor. Creates the histogram from an Image object.



Exceptions:



invalid_argument a zero value for {dlt} was specified



Parameters:

img the image to look at

dlt the quantization step (necessary for histograms in the DWT domain







8.25.2.2 Histogram::Histogram (ImageInformation & ii, double dlt = 1.0)



Constructor. Creates the histogram from an ImageInformation object.



Exceptions:



invalid_argument a zero value for {dlt} was specified



Parameters:

ii the image data to look at (will be duplicated)

dlt the quantization step (necessary for histograms in the DWT domain







8.25.2.3 Histogram::∼Histogram (void)



Destructor. Releases allocated memory



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.25 Histogram Class Reference 129





8.25.3 Member Function Documentation



8.25.3.1 int Histogram::at (int pos, coeff & lower)



Get a value via an index.

Exceptions:



invalid_argument the index {pos} is out of bounds.



Parameters:

pos The index position.

lower The lower greyscale boundary (returned value).



Returns:

the value





8.25.3.2 int Histogram::at (coeff value)



Get a value via a greyscale value.

Parameters:

value the greyscale value.



Returns:

the value





8.25.3.3 int Histogram::size (void) [inline]



Return the number of numbers stored.

Returns:

the number of numbers.



Definition at line 59 of file Histogram.hh.

References m_nvals.





8.25.3.4 double Histogram::delta (void) [inline]



Get the histogram’s delta.

Returns:

the delta



Definition at line 62 of file Histogram.hh.

References m_dlt.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

130 Class Documentation





8.25.3.5 void Histogram::update (void)



Update the Histogram. This may be necessary after changes to the image.





8.25.3.6 void Histogram::print (void)



Print the histogram to stdout.





8.25.3.7 void Histogram::add (coeff value, int number)



Add an occurrence number for a given value.



Exceptions:



invalid_argument adding number would make the result negative



Parameters:

value the value

number the number to be added





8.25.4 Member Data Documentation



8.25.4.1 Image∗ Histogram::m_image [protected]



A pointer as a reference to the image.

Definition at line 78 of file Histogram.hh.





8.25.4.2 ImageInformation∗ Histogram::m_data [protected]



A pointer as a reference to the ImageInformation object (needs to be stored in order to

be able to update the histogram after changes to the original image).

Definition at line 82 of file Histogram.hh.





8.25.4.3 ImageInformation∗ Histogram::m_ii [protected]



A helper object for getting the image’s coefficients sorted.

Definition at line 84 of file Histogram.hh.





8.25.4.4 double Histogram::m_dlt [protected]



The delta between two histogram slots.

Definition at line 86 of file Histogram.hh.

Referenced by delta().



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.25 Histogram Class Reference 131





8.25.4.5 struct hist∗ Histogram::m_values [read, protected]



The internal histogram (an array of hist structs).

Definition at line 97 of file Histogram.hh.





8.25.4.6 int Histogram::m_nvals [protected]



The number of histogram slots.

Definition at line 99 of file Histogram.hh.

Referenced by size().

The documentation for this class was generated from the following file:



• Histogram.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

132 Class Documentation





8.26 Histogram::hist Struct Reference

#include





Public Attributes

• coeff lower

• coeff upper

• int number





8.26.1 Detailed Description



An internal structure for the histogram

Definition at line 88 of file Histogram.hh.





8.26.2 Member Data Documentation



8.26.2.1 coeff Histogram::hist::lower



The lower bound (value > lower)

Definition at line 90 of file Histogram.hh.





8.26.2.2 coeff Histogram::hist::upper



The upper bound (value >= lower)

Definition at line 92 of file Histogram.hh.





8.26.2.3 int Histogram::hist::number



The number of occurrences

Definition at line 94 of file Histogram.hh.

The documentation for this struct was generated from the following file:



• Histogram.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.27 Image Class Reference 133





8.27 Image Class Reference

#include

Inheritance diagram for Image:



Image









StillImage









VideoFrame









Collaboration diagram for Image:



ReferenceVector









ImageVector









FullVector RowVector ColumnVector





m_afull m_arow m_acol





Image









Public Member Functions

• Image (void)

• virtual ∼Image (void)

• int rows (void) const

• int cols (void) const

• int size (void) const

• ColumnVector & col (int x=0)

• RowVector & row (int y=0)

• FullVector & full (int xy=0)

• virtual coeff at (int y, int x) const =0

• virtual coeff at (int abs) const =0

• virtual void to (int y, int x, coeff val)=0

• virtual void to (int abs, coeff val)=0

• virtual int abs (int y, int x) const =0

• virtual bool epsilons (Image &img, coeff epsilon) const =0

• bool epsilonsAt (int y, int x, coeff value, coeff epsilon) const



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

134 Class Documentation





• bool epsilonsAt (int abs, coeff value, coeff epsilon) const

• virtual bool equals (Image &img) const =0

• virtual double iproduct (Image &img) const

• virtual void normalize (coeff factor)

• virtual void unnormalize (coeff factor)

• virtual void gammaCorrection (double factor, int yoffs=0, int xoffs=0, int ysize=-

1, int xsize=-1, int norm=255)

• double gammaCorrectionAuto (int rows, int columns, int yoffs=0, int xoffs=0,

int ysize=-1, int xsize=-1, int norm=255)

• virtual void histEqualization (int yoffs=0, int xoffs=0, int ysize=-1, int xsize=-1,

int startH=0, int endH=255)

• virtual void beautify (int yoffs=0, int xoffs=0, int ysize=0, int xsize=0)

• virtual void truncate (coeff min=0, coeff max=255)

• virtual void pixelize (void)

• void valadjust (void)

• virtual void read (char const ∗fname, int rawy=0, int rawx=0)=0

• virtual void read (char const ∗fname, filetype ftype, int rawy=0, int rawx=0)=0

• virtual void write (char const ∗fname, bool beautify=false)=0

• virtual void write (char const ∗fname, filetype ftype, bool beautify=false)=0

• virtual void importCoeffs (int rows, int cols, coeff ∗buf)

• virtual coeff ∗ exportCoeffs (void)

• virtual void importPixels (int rows, int cols, pixel ∗buf)

• virtual pixel ∗ exportPixels (void) const

• virtual Image ∗ clone (void) const =0

• virtual void copy (Image &img)

• Image ∗ crop (int yoffs, int xoffs, int ysize, int xsize) const

• virtual void paste (int yoffs, int xoffs, Image &img)

• virtual void shift (int yoffs, int xoffs)

• int anasteps (void) const

• int synsteps (void) const

• void anasteps (int steps)

• void synsteps (int steps)

• void fill (coeff value, int fromY=0, int fromX=0, int toY=-1, int toX=-1)

• virtual coeff smax (int fromY=0, int fromX=0, int toY=-1, int toX=-1) const =0

• virtual coeff smin (int fromY=0, int fromX=0, int toY=-1, int toX=-1) const =0

• virtual coeff amax (int fromY=0, int fromX=0, int toY=-1, int toX=-1) const =0

• virtual coeff amin (int fromY=0, int fromX=0, int toY=-1, int toX=-1) const =0

• virtual coeff saverage (int fromY=0, int fromX=0, int toY=-1, int toX=-1) const

=0

• virtual coeff aaverage (int fromY=0, int fromX=0, int toY=-1, int toX=-1) const

=0

• virtual coeff sqvariance (int fromY=0, int fromX=0, int toY=-1, int toX=-1)

const

• virtual coeff variance (int fromY, int fromX, int toY, int toX, coeff avg, bool abs)

const

• virtual coeff variance (int fromY=0, int fromX=0, int toY=-1, int toX=-1, bool

abs=false) const



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.27 Image Class Reference 135





• virtual coeff sdeviation (int fromY=0, int fromX=0, int toY=-1, int toX=-1, bool

abs=false) const

• virtual void resize (int rows, int cols)=0

• virtual Image ∗ fitInto (int rows, int cols, int fill=-1, int function=0) const

• virtual Image ∗ scale (double factor, int function=0) const

• virtual Image ∗ scale (double yFactor, double xFactor, int function=0) const







Protected Member Functions



• void dimcheck (const Image &img) const

• virtual Image ∗ mkImage (int rows=0, int cols=0) const =0







Protected Attributes



• ColumnVector ∗ m_acol

• RowVector ∗ m_arow

• FullVector ∗ m_afull

• int m_ysize

• int m_xsize

• int m_xysize

• int m_asteps

• int m_ssteps







8.27.1 Detailed Description



An image (abstract). A (grey-scale) more-than-one-dimensional image.

Definition at line 29 of file Image.hh.







8.27.2 Constructor & Destructor Documentation



8.27.2.1 Image::Image (void)



Constructor. Only sets standard values.





8.27.2.2 virtual Image::∼Image (void) [inline, virtual]



Destructor. Does nothing.

Definition at line 37 of file Image.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

136 Class Documentation





8.27.3 Member Function Documentation



8.27.3.1 int Image::rows (void) const [inline]



Return the number of rows.



Returns:

the number of rows



Definition at line 42 of file Image.hh.

Referenced by StillImage::makeEmpty().





8.27.3.2 int Image::cols (void) const [inline]



Return the number of columns.



Returns:

the number of columns



Definition at line 46 of file Image.hh.

Referenced by StillImage::makeEmpty().





8.27.3.3 int Image::size (void) const [inline]



Return the overall size.



Returns:

the overall size



Definition at line 50 of file Image.hh.





8.27.3.4 ColumnVector& Image::col (int x = 0) [inline]



Return a column reference. Returns a pseudo-vector that provides a reference to one

column of the image.



Parameters:

x The number of the column to be returned



Returns:

the column reference



Definition at line 58 of file Image.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.27 Image Class Reference 137





8.27.3.5 RowVector& Image::row (int y = 0) [inline]



Return a row reference. Returns a pseudo-vector that provides a reference to one row

of the image.



Parameters:

y The number of the row to be returned



Returns:

the row reference



Definition at line 65 of file Image.hh.





8.27.3.6 FullVector& Image::full (int xy = 0) [inline]



Return a full reference. Returns a pseudo-vector that provides a reference to the image

as a big vector.



Parameters:

xy The position where to start



Returns:

the full reference



Definition at line 73 of file Image.hh.





8.27.3.7 virtual coeff Image::at (int y, int x) const [pure virtual]



Get a value. Returns the value at row {y} and col {x}.



Parameters:

y the row

x the col



Returns:

the value



Implemented in StillImage.





8.27.3.8 virtual coeff Image::at (int abs) const [pure virtual]



Get a value. Returns the value at absolute position {abs}.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

138 Class Documentation



Parameters:

abs the position



Returns:

the value



Implemented in StillImage.





8.27.3.9 virtual void Image::to (int y, int x, coeff val) [pure virtual]



Set a value. Sets the value at row {y} and col {x}.



Parameters:

y the row

x the col

val the new value



Returns:

the value



Implemented in StillImage.





8.27.3.10 virtual void Image::to (int abs, coeff val) [pure virtual]



Set a value. Sets the value at absolute position {abs}.



Parameters:

abs the position

val the new value



Implemented in StillImage.





8.27.3.11 virtual int Image::abs (int y, int x) const [pure virtual]



Return the absolute offset of a position.



Parameters:

y the position’s row

x the position’s col



Returns:

the absolute offset



Implemented in StillImage.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.27 Image Class Reference 139





8.27.3.12 virtual bool Image::epsilons (Image & img, coeff epsilon) const

[pure virtual]



Rough comparison. See if two images are similar according to a given {epsilon} (im-

portant for floating-point comparisons).



Parameters:

img the other {Image} object

epsilon the epsilon



Returns:

if both are identical: {true}, else {false}



Implemented in StillImage.





8.27.3.13 bool Image::epsilonsAt (int y, int x, coeff value, coeff epsilon) const



Rough comparison. See if an image value is equal to some value according to a given

{epsilon} (important for floating-point comparisons).



Parameters:

y the row

x the col

value the value to compare to

epsilon the epsilon



Returns:

if both are identical: {true}, else {false}







8.27.3.14 bool Image::epsilonsAt (int abs, coeff value, coeff epsilon) const



Rough comparison. See if an image value is equal to some value according to a given

{epsilon} (important for floating-point comparisons).



Parameters:

abs the absolute position

value the value to compare to

epsilon the epsilon



Returns:

if both are identical: {true}, else {false}





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

140 Class Documentation





8.27.3.15 virtual bool Image::equals (Image & img) const [pure virtual]



Compares two images. Return {true} if both are equal.



Parameters:

img The other {Image} object



Returns:

if equals: {true}, else {false}



Implemented in StillImage.





8.27.3.16 virtual double Image::iproduct (Image & img) const [virtual]



Computes the inner product between this and another image. Both images have to have

identical dimensions.



Exceptions:



invalid_argument The images don’t have identical dimensions



Parameters:

img The other {Image} object



Returns:

the inner product







8.27.3.17 virtual void Image::normalize (coeff factor) [virtual]



Normalize coefficients.



Parameters:

factor the normalization factor







8.27.3.18 virtual void Image::unnormalize (coeff factor) [virtual]



Unnormalize coefficients.



Parameters:

factor the unnormalization factor





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.27 Image Class Reference 141





8.27.3.19 virtual void Image::gammaCorrection (double factor, int yoffs =

0, int xoffs = 0, int ysize = -1, int xsize = -1, int norm = 255)

[virtual]



Perform a gamma correction. Since this is normally only defined for the spatial domain

(the pixels need to be normalized) the normalization factor is set to 255 by default, if

values are found in the image outside the specified [0..norm] range, the range will

be increased. If the range is increased a new normalization factor is automatically

calculated as the difference between the image’s maximum (if more than norm) and

minimum (if less than 0) coefficient value.



Parameters:

factor the gamma factor (0..1.0)

ysize the horizontal size of the region to process

xsize the vertical size of the region to process

yoffs the horizontal offset of the region to process

xoffs the vertical offset of the region to process

norm the normalization factor ( default = 255 )





8.27.3.20 double Image::gammaCorrectionAuto (int rows, int columns, int

yoffs = 0, int xoffs = 0, int ysize = -1, int xsize = -1, int norm = 255)



Does a automatic gamma correction. This function breaks the image up into smaller

matrices and then calculates their averages. The highest and lowest average is then

used to calculate a gamma value which is used to a parameter in a call to gammaCor-

rection().



Note:

If the image can not be split into the required sub-areas without a remainder the

nearest solution (down) is used.



Parameters:

rows Split image horizontly into subsections

columns Split image vertically into subsections

yoffs Vertical offset

xoffs Horizontal offset

ysize Vertical size

xsize Horizontal size

norm the normalization factor ( default = 255 )



Returns:

the gamma value - (use it to undo operation if needed)





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

142 Class Documentation





8.27.3.21 virtual void Image::histEqualization (int yoffs = 0, int xoffs = 0,

int ysize = -1, int xsize = -1, int startH = 0, int endH = 255)

[virtual]



Perform a histogram equalisation. The operation performs a floating-point to int quan-

tisation and uses a given color range if 0..255 is not desired. Explicit values for the

color range can be necessary e.g. for Wavelet-decomposed images; for example for

Haar LL Level 1 a good choice would be 0..1023 and -512..511 for Haar non LL Level

1. Code provided by Johan Ehlers.



Warning:



Use unnormalised coefficients else the operation has un-determinable results.



Parameters:

ysize the horizontal size of the region to process

xsize the vertical size of the region to process

yoffs the horizontal offset of the region to process

xoffs the vertical offset of the region to process

startH the start value for range of histogram default = 0

endH the end value for the range of the histogram default = 255







8.27.3.22 virtual void Image::beautify (int yoffs = 0, int xoffs = 0, int ysize = 0,

int xsize = 0) [virtual]



Do an intelligent kind of beautification considering previous transform steps. The orig-

inal data will be overwritten, so this should only be used on clones or if the image is

not going to be transformed afterwise. One region inside the image could be the low-

pass subband and should thus be handled separately. If that is desired, the {ysize} and

{xsize} parameters should be set to nonzero values.



Parameters:

yoffs the horizontal offset of the region that should be handled separately

xoffs the vertical offset of the region that should be handled separately

ysize the horizontal size of the region that should be handled separately

xsize the vertical size of the region that should be handled separately







8.27.3.23 virtual void Image::truncate (coeff min = 0, coeff max = 255)

[virtual]



Do a dumb kind of beautification by just truncating values to their possible maxima

depending on the image format or whatever. The original data will be overwritten, so

this should only be used on clones or if the original data is not needed anymore.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.27 Image Class Reference 143



Parameters:

min the minimum allowed value

max the maximum allowed value





8.27.3.24 virtual void Image::pixelize (void) [virtual]



First truncate the values to the [0..255] range, and then round them to integer numbers.







8.27.3.25 void Image::valadjust (void)



Adjust the coefficients to make them pixelizable.





8.27.3.26 virtual void Image::read (char const ∗ fname, int rawy = 0, int rawx

= 0) [pure virtual]



Read an image (abstract). Reads an image from a file guessing the file type from the

file name’s extension.

Parameters:

fname the file name, if {NULL}, then {stdin}

rawy the number of rows (only needed for RAW format)

rawx the number of cols (only needed for RAW format)



Implemented in StillImage.





8.27.3.27 virtual void Image::read (char const ∗ fname, filetype ftype, int rawy

= 0, int rawx = 0) [pure virtual]



Read an image (abstract). Reads an image from a file using the specified file type.



Parameters:

fname the file name, if {NULL}, then {stdin}

ftype the file type (image format)

rawy the number of rows (only needed for RAW format)

rawx the number of cols (only needed for RAW format)



Implemented in StillImage.





8.27.3.28 virtual void Image::write (char const ∗ fname, bool beautify =

false) [pure virtual]



Write an image (abstract). Writes an image to a file guessing the file type from the file

name’s extension.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

144 Class Documentation



Parameters:

fname the file name, if {NULL}, then {stdout}

beautify beautify images that have not had more analysis than synthesis steps?



Implemented in StillImage.





8.27.3.29 virtual void Image::write (char const ∗ fname, filetype ftype, bool

beautify = false) [pure virtual]



Write an image (abstract). Writes an image to a file using the specified file type.



Parameters:

ftype the file type

fname the file name, if {NULL}, then {stdout}

beautify beautify images that have not had more analysis than synthesis steps?



Implemented in StillImage.





8.27.3.30 virtual void Image::importCoeffs (int rows, int cols, coeff ∗ buf)

[virtual]



Import an image. The values will be copied.



Parameters:

rows the number of image rows (logical)

cols the number of image cols (logical)

buf the buffer holding the image coefficients (consists of rows ∗ cols elements)





8.27.3.31 virtual coeff∗ Image::exportCoeffs (void) [virtual]



Exports an image.



Returns:

a new buffer holding the image coefficients (consists of rows ∗ cols elements)





8.27.3.32 virtual void Image::importPixels (int rows, int cols, pixel ∗ buf)

[virtual]



Import a raw image. The values will be copied.



Parameters:

rows the number of image rows (logical)

cols the number of image cols (logical)

buf the buffer holding the image pixels (consists of rows ∗ cols elements)





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.27 Image Class Reference 145





8.27.3.33 virtual pixel∗ Image::exportPixels (void) const [virtual]



Exports a raw image. Values exceeding the 0..255 range will be truncated.



Returns:

a new buffer holding the image pixels (consists of rows ∗ cols elements)







8.27.3.34 virtual Image∗ Image::clone (void) const [pure virtual]



Produce a copy (abstract). Every dynamically object will be cloned rather than passing

on the reference.



Returns:

the new, copied object.



Implemented in StillImage, and VideoFrame.





8.27.3.35 virtual void Image::copy (Image & img) [virtual]



Copy all data from a source image.



Parameters:

img the source image







8.27.3.36 Image∗ Image::crop (int yoffs, int xoffs, int ysize, int xsize) const



Returns a subimage.



Parameters:

yoffs the row where to start

xoffs the col where to start

ysize the vertical size

xsize the horizontal size



Returns:

the new image







8.27.3.37 virtual void Image::paste (int yoffs, int xoffs, Image & img)

[virtual]



Inserts a subimage.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

146 Class Documentation



Parameters:

yoffs the row where to start

xoffs the col where to start

img the image to insert







8.27.3.38 virtual void Image::shift (int yoffs, int xoffs) [virtual]



Shift an Image.



Parameters:

yoffs the rows to shift

xoffs the cols to shift







8.27.3.39 int Image::anasteps (void) const [inline]



Returns the number of analysis steps performed so far.



Returns:

the number of steps



Definition at line 393 of file Image.hh.





8.27.3.40 int Image::synsteps (void) const [inline]



Returns the number of synthesis steps performed so far.



Returns:

the number of steps



Definition at line 397 of file Image.hh.





8.27.3.41 void Image::anasteps (int steps) [inline]



Sets the number of analysis steps performed so far.



Parameters:

steps the number of steps



Definition at line 401 of file Image.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.27 Image Class Reference 147





8.27.3.42 void Image::synsteps (int steps) [inline]



Sets the number of synthesis steps performed so far.



Parameters:

steps the number of steps



Definition at line 405 of file Image.hh.





8.27.3.43 void Image::fill (coeff value, int fromY = 0, int fromX = 0, int toY =

-1, int toX = -1)



Fills an image (or regions of it) with a given value



Parameters:

val the new value for the selected positions

fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower image border)

toX the second point’s col (-1 if right image border)







8.27.3.44 virtual coeff Image::smax (int fromY = 0, int fromX = 0, int toY = -1,

int toX = -1) const [pure virtual]



Returns the maximum value in a region. Signs will be considered.



Parameters:

fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower image border)

toX the second point’s col (-1 if right image border)



Returns:

the maximum



Implemented in StillImage.





8.27.3.45 virtual coeff Image::smin (int fromY = 0, int fromX = 0, int toY = -1,

int toX = -1) const [pure virtual]



Returns the maximum value in a region. Signs will be considered.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

148 Class Documentation



Parameters:

fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower image border)

toX the second point’s col (-1 if right image border)



Returns:

the maximum



Implemented in StillImage.





8.27.3.46 virtual coeff Image::amax (int fromY = 0, int fromX = 0, int toY =

-1, int toX = -1) const [pure virtual]



Returns the minimum absolute value in a region. Signs will be discarded.



Parameters:

fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower image border)

toX the second point’s col (-1 if right image border)



Returns:

the maximum



Implemented in StillImage.





8.27.3.47 virtual coeff Image::amin (int fromY = 0, int fromX = 0, int toY = -1,

int toX = -1) const [pure virtual]



Returns the minimum absolute value in a region. Signs will be discarded.



Parameters:

fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower image border)

toX the second point’s col (-1 if right image border)



Returns:

the minimum



Implemented in StillImage.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.27 Image Class Reference 149





8.27.3.48 virtual coeff Image::saverage (int fromY = 0, int fromX = 0, int toY =

-1, int toX = -1) const [pure virtual]



Return the average color for a rectangular region inside the image drawn from one

point within and the second point just outside the region. The coefficients’ signedness

will be considered.



Parameters:

fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower image border)

toX the second point’s col (-1 if right image border)



Returns:

the average color



Implemented in StillImage.





8.27.3.49 virtual coeff Image::aaverage (int fromY = 0, int fromX = 0, int toY =

-1, int toX = -1) const [pure virtual]



Return the average color for a rectangular region inside the image drawn from one

point within and the second point just outside the region. The coefficients’ signedness

will be discarded.



Parameters:

fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower image border)

toX the second point’s col (-1 if right image border)



Returns:

the average color



Implemented in StillImage.





8.27.3.50 virtual coeff Image::sqvariance (int fromY = 0, int fromX = 0, int toY

= -1, int toX = -1) const [virtual]



Return the square variance for a rectangular region inside the image drawn from one

point within and the second point just outside the region. Signs will be considered. Use

this method if you want statistics on a region in the image. For other cases you may

want to use ImageInformation::sqvariance().



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

150 Class Documentation



Parameters:

fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower image border)

toX the second point’s col (-1 if right image border)



Returns:

the square variance







8.27.3.51 virtual coeff Image::variance (int fromY, int fromX, int toY, int toX,

coeff avg, bool abs) const [virtual]



Return the variance for a rectangular region inside the image drawn from one point

within and the second point just outside the region. Use this method if you want

statistics on a region in the image. For other cases you may want to use ImageIn-

formation::variance(). This version of the method takes the average (either absolute or

signed) as argument so that it does not need to be calculated again.



Parameters:

fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower image border)

toX the second point’s col (-1 if right image border)

avg the average for the region

abs true if signs are discarded



Returns:

the square variance







8.27.3.52 virtual coeff Image::variance (int fromY = 0, int fromX = 0, int toY =

-1, int toX = -1, bool abs = false) const [virtual]



Return the variance for a rectangular region inside the image drawn from one point

within and the second point just outside the region. Use this method if you want statis-

tics on a region in the image. For other cases you may want to use ImageInforma-

tion::variance().



Parameters:

fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower image border)



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.27 Image Class Reference 151





toX the second point’s col (-1 if right image border)

abs true if signs are discarded



Returns:

the square variance









8.27.3.53 virtual coeff Image::sdeviation (int fromY = 0, int fromX = 0, int toY

= -1, int toX = -1, bool abs = false) const [virtual]



Returns the standard deviation for a rectangular region inside the image drawn from

one point within and the second point just outside the region. Signs will be considered.

Use this method if you want statistics on a region in the image. For other cases you

may want to use ImageInformation::sdeviation().



Parameters:

fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower image border)

toX the second point’s col (-1 if right image border)

abs true if signs are discarded



Returns:

the standard deviation.









8.27.3.54 virtual void Image::resize (int rows, int cols) [pure virtual]



Resize the image’s x/y dimensions. The old values will remain as far as they fit in the

new dimensions. The new dimensions must all be greater than zero.



Exceptions:



invalid_argument one or both dimensions are either negative or zero



Parameters:

rows the new number of rows

cols the new number of cols





Implemented in StillImage.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

152 Class Documentation





8.27.3.55 virtual Image∗ Image::fitInto (int rows, int cols, int fill = -1, int

function = 0) const [virtual]



Produce a scaled version of the image which just fits into the given dimensions. If

the aspect ratio does not fit into the new dimensions the remaining areas can be filled

with a given color or alternatively the resulting image will be smaller than the target

dimensions keeping its aspect ratio.



Exceptions:



invalid_argument the factor is negative or the function argument is invalid



Parameters:

rows the target number of rows

cols the target number of columns

fill if not less than zero use this to fill remaining space (else the a smaller image

size will be chosen if the aspect ratio does not match)

function interpolation function (0: bilinear interpolation, 1: average, 2: nearest

neighbour).



Returns:

a new rescaled image







8.27.3.56 virtual Image∗ Image::scale (double factor, int function = 0) const

[virtual]



Produce a scaled version of the image. The aspect ratio will remain the same.



Exceptions:



invalid_argument the factor is negative or the function argument is invalid



Parameters:

factor the scale factor (>= 0, 1 for no change)

function interpolation function (0: bilinear interpolation, 1: average, 2: nearest

neighbour).



Returns:

a new rescaled image







8.27.3.57 virtual Image∗ Image::scale (double yFactor, double xFactor, int

function = 0) const [virtual]



Produce a scaled version of the image. The aspect ratio depends on the two scale

factors



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.27 Image Class Reference 153



Exceptions:



invalid_argument the factor is negative or the function argument is invalid



Parameters:

yFactor the vertical scale factor (>= 0, 1 for no change)

xFactor the horizontal scale factor (>= 0, 1 for no change)

function interpolation function (0: bilinear interpolation, 1: average, 2: nearest

neighbour).



Returns:

a new rescaled image





8.27.3.58 void Image::dimcheck (const Image & img) const [protected]



Make sure the other image’s dimensions match.



Exceptions:



invalid_argument The other image’s dimensions differ



Parameters:

img the other image





8.27.3.59 virtual Image∗ Image::mkImage (int rows = 0, int cols = 0) const

[protected, pure virtual]



Abstract factory method to get a new instance of a given size filled with zeroes.



Parameters:

rows the number of rows

cols the number of cols



Returns:

the new image



Implemented in StillImage.





8.27.4 Member Data Documentation



8.27.4.1 ColumnVector∗ Image::m_acol [protected]



Column reference. A vector that can be set to any column to allow iterating over its

values.

Definition at line 605 of file Image.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

154 Class Documentation





8.27.4.2 RowVector∗ Image::m_arow [protected]



Row reference. A vector that can be set to any row to allow iterating over its values.

Definition at line 608 of file Image.hh.





8.27.4.3 FullVector∗ Image::m_afull [protected]



Full reference. A vector that can be set anywhere within the pixels to iterating over its

values.

Definition at line 611 of file Image.hh.





8.27.4.4 int Image::m_ysize [protected]



Number of rows.

Definition at line 613 of file Image.hh.





8.27.4.5 int Image::m_xsize [protected]



Number of cols.

Definition at line 615 of file Image.hh.





8.27.4.6 int Image::m_xysize [protected]



Overall size.

Definition at line 617 of file Image.hh.





8.27.4.7 int Image::m_asteps [protected]



The number of steps performed in the last analysis.

Definition at line 619 of file Image.hh.





8.27.4.8 int Image::m_ssteps [protected]



The number of steps performed in the last synthesis.

Definition at line 621 of file Image.hh.

The documentation for this class was generated from the following file:



• Image.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.28 ImageArray Class Template Reference 155





8.28 ImageArray Class Template Reference

#include

Inheritance diagram for ImageArray:





ImageArray











VideoArray ImageArray ImageArray











VideoArray







Collaboration diagram for ImageArray:



T





m_ar





ImageArray









Public Member Functions

• ImageArray (void)

• ImageArray (int rows, int cols)

• virtual ∼ImageArray (void)

• int rows (void) const

• int cols (void) const

• int size (void) const

• T at (int y, int x) const

• virtual T at (int abs) const

• void to (int y, int x, T val)

• virtual void to (int abs, T val)

• virtual int abs (int y, int x) const

• T smax (int fromY=0, int fromX=0, int toY=-1, int toX=-1) const

• T smin (int fromY=0, int fromX=0, int toY=-1, int toX=-1) const

• T amax (int fromY=0, int fromX=0, int toY=-1, int toX=-1) const



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

156 Class Documentation





• T amin (int fromY=0, int fromX=0, int toY=-1, int toX=-1) const

• T saverage (int fromY=0, int fromX=0, int toY=-1, int toX=-1) const

• T aaverage (int fromY=0, int fromX=0, int toY=-1, int toX=-1) const

• virtual void resize (int rows, int cols)

• virtual void import (int rows, int cols, T ∗array)

• virtual ImageArray ∗ clone (void) const

• virtual void copy (ImageArray &ia)

• void copy (ImageArray ∗ia)

• virtual bool epsilons (ImageArray &ia, T epsilon) const

• bool epsilons (ImageArray ∗ia, T epsilon) const

• bool equals (ImageArray &ia) const

• bool equals (ImageArray ∗ia) const

• T ∗& array (void)





Protected Member Functions



• virtual void updateRowsArray (void)





Protected Attributes



• int m_xsize

• int m_ysize

• int m_xysize

• T ∗ m_ar

• int ∗ m_rows





8.28.1 Detailed Description



template class ImageArray



A two-dimensional array wrapper. This allows us to access the image’s pixels or coef-

ficients and provides some utility methods. It is the main working horse for the Image

framework.

Definition at line 23 of file ImageArray.hh.





8.28.2 Constructor & Destructor Documentation



8.28.2.1 template ImageArray::ImageArray (void)



Constructor. Sets the dimension to zero.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.28 ImageArray Class Template Reference 157





8.28.2.2 template ImageArray::ImageArray (int rows, int cols)



Constructor. Sets the dimension and allocates space. A size of zero is allowed, negative

values not.



Parameters:

rows the vertical size

cols the horizontal size





8.28.2.3 template virtual ImageArray::∼ImageArray (void)

[virtual]



Destructor. Releases allocated memory.





8.28.3 Member Function Documentation



8.28.3.1 template int ImageArray::rows (void) const

[inline]



Returns the vertical size.



Returns:

the vertical size



Definition at line 43 of file ImageArray.hh.





8.28.3.2 template int ImageArray::cols (void) const

[inline]



Returns the horizontal size.



Returns:

the horizontal size



Definition at line 47 of file ImageArray.hh.





8.28.3.3 template int ImageArray::size (void) const

[inline]



Returns the overall size (x∗y).



Returns:

the overall size



Definition at line 51 of file ImageArray.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

158 Class Documentation





8.28.3.4 template T ImageArray::at (int y, int x) const

[inline]



Returns the value at (x,y).



Parameters:

y the row

x the col



Returns:

the value



Reimplemented in VideoArray, and VideoArray.

Definition at line 59 of file ImageArray.hh.





8.28.3.5 template virtual T ImageArray::at (int abs) const

[inline, virtual]



Returns the array’s {n}th value.



Parameters:

abs the offset from the array start



Returns:

the value



Reimplemented in VideoArray, and VideoArray.

Definition at line 66 of file ImageArray.hh.





8.28.3.6 template void ImageArray::to (int y, int x, T val)

[inline]



Sets the value at (x,y).



Parameters:

y the row

x the col

val the value



Reimplemented in VideoArray, and VideoArray.

Definition at line 74 of file ImageArray.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.28 ImageArray Class Template Reference 159





8.28.3.7 template virtual void ImageArray::to (int abs, T val)

[inline, virtual]



Sets the array’s {n}th value.



Parameters:

abs the offset from the array start

val the value



Reimplemented in VideoArray, and VideoArray.

Definition at line 80 of file ImageArray.hh.





8.28.3.8 template virtual int ImageArray::abs (int y, int x)

const [inline, virtual]



Return the absolute offset of a position.



Parameters:

y the position’s row

x the position’s col



Returns:

the absolute offset



Reimplemented in VideoArray, and VideoArray.

Definition at line 89 of file ImageArray.hh.

Referenced by ImageArray::at(), and ImageArray::to().





8.28.3.9 template T ImageArray::smax (int fromY = 0, int

fromX = 0, int toY = -1, int toX = -1) const



Returns the maximum value in a region. Signs will be considered.



Parameters:

fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower image border)

toX the second point’s col (-1 if right image border)



Returns:

the maximum





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

160 Class Documentation





8.28.3.10 template T ImageArray::smin (int fromY = 0, int

fromX = 0, int toY = -1, int toX = -1) const



Returns the minimum value in a region. Signs will be considered.



Parameters:

fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower image border)

toX the second point’s col (-1 if right image border)



Returns:

the minimum







8.28.3.11 template T ImageArray::amax (int fromY = 0, int

fromX = 0, int toY = -1, int toX = -1) const



Returns the maximum absolute value in a region. Signs will be discarded.



Parameters:

fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower image border)

toX the second point’s col (-1 if right image border)



Returns:

the maximum







8.28.3.12 template T ImageArray::amin (int fromY = 0, int

fromX = 0, int toY = -1, int toX = -1) const



Returns the minimum absolute value in a region. Signs will be discarded.



Parameters:

fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower image border)

toX the second point’s col (-1 if right image border)



Returns:

the minimum





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.28 ImageArray Class Template Reference 161





8.28.3.13 template T ImageArray::saverage (int fromY = 0,

int fromX = 0, int toY = -1, int toX = -1) const



Return the average color for a rectangular region inside the image drawn from one

point within and the second point just outside the region. The coefficients’ signedness

will be considered.



Parameters:

fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower image border)

toX the second point’s col (-1 if right image border)



Returns:

the average color







8.28.3.14 template T ImageArray::aaverage (int fromY = 0,

int fromX = 0, int toY = -1, int toX = -1) const



Return the average color for a rectangular region inside the image drawn from one

point within and the second point just outside the region. The coefficients’ signedness

will be discarded.



Parameters:

fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower image border)

toX the second point’s col (-1 if right image border)



Returns:

the average color







8.28.3.15 template virtual void ImageArray::resize (int rows,

int cols) [virtual]



Resize the array. The old values will be copied to the new dimension as far as they fit

in. The new dimensions must all be greater than zero.



Exceptions:



invalid_argument one or both dimensions are either negative or zero



Parameters:

rows the new number of rows



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

162 Class Documentation





cols the new number of cols



Reimplemented in VideoArray, and VideoArray.





8.28.3.16 template virtual void ImageArray::import (int rows,

int cols, T ∗ array) [virtual]



Import a raw array. The new dimensions and the new array will be stored discarding

the old ones.

Parameters:

rows the new number of rows

cols the new number of cols

array the new array



Reimplemented in VideoArray, and VideoArray.





8.28.3.17 template virtual ImageArray∗ ImageArray::clone (void) const [virtual]



Create a copy. All values will be duplicated rather than the references.

Returns:

the new object



Reimplemented in VideoArray, and VideoArray.





8.28.3.18 template virtual void ImageArray::copy

(ImageArray & ia) [virtual]



Copy from a different array.

Parameters:

ia the other array



Reimplemented in VideoArray, and VideoArray.

Referenced by ImageArray::copy().





8.28.3.19 template void ImageArray::copy (ImageArray

∗ ia) [inline]



Copy from a different array.

Parameters:

ia the other array



Definition at line 173 of file ImageArray.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.28 ImageArray Class Template Reference 163





8.28.3.20 template virtual bool ImageArray::epsilons

(ImageArray & ia, T epsilon) const [virtual]



Rough comparison. See if two arrays are similar according to a given {epsilon} (im-

portant for floating-point comparisons).



Parameters:

ia the other {ImageArray} object

epsilon the epsilon



Returns:

if both are identical: {true}, else {false}



Reimplemented in VideoArray, and VideoArray.

Referenced by ImageArray::epsilons(), and ImageArray::equals().





8.28.3.21 template bool ImageArray::epsilons (ImageArray ∗ ia, T epsilon) const [inline]



Rough comparison. See if two arrays are similar according to a given {epsilon} (im-

portant for floating-point comparisons).



Parameters:

ia the other {ImageArray} object

epsilon the epsilon



Returns:

if both are identical: {true}, else {false}



Definition at line 191 of file ImageArray.hh.





8.28.3.22 template bool ImageArray::equals (ImageArray & ia) const [inline]



Exact comparison. See if two arrays are similar.



Parameters:

ia the other {ImageArray} object



Returns:

if both are identical: {true}, else {false}



Definition at line 198 of file ImageArray.hh.

Referenced by ImageArray::equals().



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

164 Class Documentation





8.28.3.23 template bool ImageArray::equals (ImageArray ∗ ia) const [inline]



Exact comparison. See if two arrays are similar.



Parameters:

ia the other {ImageArray} object



Returns:

if both are identical: {true}, else {false}



Definition at line 205 of file ImageArray.hh.





8.28.3.24 template T∗& ImageArray::array (void)

[inline]



Physical access to the array. This is dangerous but necessary for performance reasons

because we sometimes need to fill the array with more than one value at a time.



Returns:

a reference to the array



Definition at line 212 of file ImageArray.hh.





8.28.3.25 template virtual void ImageArray::updateRowsArray (void) [protected, virtual]



Allocates and sets the ‘m_rows’ member (e.g. after a resize or in the constructor). If

‘m_rows’ is not NULL it will be deleted first





8.28.4 Member Data Documentation



8.28.4.1 template int ImageArray::m_xsize [protected]



The array’s horizontal size.

Definition at line 216 of file ImageArray.hh.

Referenced by ImageArray::cols().





8.28.4.2 template int ImageArray::m_ysize [protected]



The array’s vertical size.

Definition at line 218 of file ImageArray.hh.

Referenced by ImageArray::rows().



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.28 ImageArray Class Template Reference 165





8.28.4.3 template int ImageArray::m_xysize [protected]



The array’s overall size (x∗y).

Definition at line 220 of file ImageArray.hh.

Referenced by ImageArray::size().





8.28.4.4 template T∗ ImageArray::m_ar [protected]



The actual array.

Definition at line 222 of file ImageArray.hh.

Referenced by ImageArray::array(), VideoArray::at(),

ImageArray::at(), VideoArray::to(), and ImageArray::to().





8.28.4.5 template int∗ ImageArray::m_rows [protected]



An array holding all rows’ offsets (optimizes addressing)

Definition at line 224 of file ImageArray.hh.

Referenced by VideoArray::abs(), and ImageArray::abs().

The documentation for this class was generated from the following file:



• ImageArray.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

166 Class Documentation





8.29 ImageComparison Class Reference

#include

Collaboration diagram for ImageComparison:



ReferenceVector









ImageVector









FullVector RowVector ColumnVector





m_afull m_arow m_acol





logvals Image





m_lqcache m_images





ImageComparison









Public Member Functions

• ImageComparison (const Image &img1, const Image &img2)

• ∼ImageComparison (void)

• int rows (void) const

• int cols (void) const

• int size (void) const

• Image ∗ difference (coeff magnify=1, bool reverse=false)

• double cmpsnr (void)

• double cmpmse (void)

• lq distlq (double percent, FilterSet &flt, imgtype type)

• double distlqd (double percent, FilterSet &flt, imgtype type)





Protected Member Functions

• int level (int pos)

• double weight (int y, int x, imgtype type)

• double lq_sum (imgtype type, bool reverse, bool oldLqd=false)





Protected Attributes

• int m_ysize

• int m_xsize

• int m_xysize

• Image ∗ m_images [2]



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.29 ImageComparison Class Reference 167





• logvals ∗ m_lqcache

• double m_weights [2][6]

• int m_lqcachesize





8.29.1 Detailed Description



A class for differences between two images

Definition at line 40 of file ImageComparison.hh.





8.29.2 Constructor & Destructor Documentation



8.29.2.1 ImageComparison::ImageComparison (const Image & img1, const

Image & img2)



Constructor. Creates copies of the two images. If the two images have different dimen-

sions they will be resized to the largest common dimensions.



Parameters:

img1 the first image

img2 the second image





8.29.2.2 ImageComparison::∼ImageComparison (void)



Destructor. Releases allocated memory.





8.29.3 Member Function Documentation



8.29.3.1 int ImageComparison::rows (void) const [inline]



Return the number of rows.



Returns:

the number of rows



Definition at line 57 of file ImageComparison.hh.

References m_ysize.





8.29.3.2 int ImageComparison::cols (void) const [inline]



Return the number of columns.



Returns:

the number of columns



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

168 Class Documentation





Definition at line 61 of file ImageComparison.hh.

References m_xsize.





8.29.3.3 int ImageComparison::size (void) const [inline]



Return the overall size.



Returns:

the overall size



Definition at line 65 of file ImageComparison.hh.

References m_xysize.





8.29.3.4 Image∗ ImageComparison::difference (coeff magnify = 1, bool reverse

= false)



Produce an image holding the difference between the first and the second image



Parameters:

magnify multiply the result by a factor to increase / decrease visibility

reverse reverse the subtraction (take img1 - img2)



Returns:

a new image containing the difference







8.29.3.5 double ImageComparison::cmpsnr (void)



Compare with another image producing the PSNR. Stolen from Geoff Davis’ Wavelet

Coder kit.



Returns:

The PSNR







8.29.3.6 double ImageComparison::cmpmse (void)



Compare with another image producing the mean square error. Stolen from Geoff

Davis’ Wavelet Coder kit.



Returns:

The MSE





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.29 ImageComparison Class Reference 169





8.29.3.7 lq ImageComparison::distlq (double percent, FilterSet & flt, imgtype

type)



Calculate the distance to another image according to the $L∧ q$ norm. Idea and basic

algorithm from Jacobs, Finkelstein, Salesin: "Fast multiresolution image querying",

Proc. of SIGGRAPH, 95.



Exceptions:



invalid_argument image is not square



Parameters:

percent the relative number of Wavelet coefficients to compare

flt the filter to use

type the type of the images to be assumed (drawn or scanned)



Returns:

The $L∧ q$ norm







8.29.3.8 double ImageComparison::distlqd (double percent, FilterSet & flt,

imgtype type)



Calculate the distance to another image according to the old $L∧ qd$ norm. Idea and

basic algorithm from Jacobs, Finkelstein, Salesin: "Fast multiresolution image query-

ing", Proc. of SIGGRAPH, 95.



Exceptions:



invalid_argument image is not square



Parameters:

percent the relative number of Wavelet coefficients to compare

flt the filter to use

type the type of the images to be assumed (drawn or scanned)



Returns:

The $L∧ qd$ norm







8.29.3.9 int ImageComparison::level (int pos) [protected]



Helper method for distlq(). Calculates the weighing level for a position



Parameters:

pos the position (row or col)



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

170 Class Documentation



Returns:

the level







8.29.3.10 double ImageComparison::weight (int y, int x, imgtype type)

[protected]



Helper method for distlq(). Calculate the weight for a position (y, x).



Parameters:

y the row

x the col

type the images’ type to be assumed (drawn or scanned)



Returns:

the position’s weight







8.29.3.11 double ImageComparison::lq_sum (imgtype type, bool reverse, bool

oldLqd = false) [protected]



Helper method for distlq(). Calculate the sum of differences of the two decomposed

images.



Parameters:

type the type (drawn or scanned) to be assumed

reverse if true, subract the first from the second image

oldLqd if true, calculate the old Lqd way: add up the score for differing locations

instead of subtracting the scores for identical values





8.29.4 Member Data Documentation



8.29.4.1 int ImageComparison::m_ysize [protected]



Number of rows.

Definition at line 123 of file ImageComparison.hh.

Referenced by rows().





8.29.4.2 int ImageComparison::m_xsize [protected]



Number of cols.

Definition at line 125 of file ImageComparison.hh.

Referenced by cols().



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.29 ImageComparison Class Reference 171





8.29.4.3 int ImageComparison::m_xysize [protected]



Overall size.

Definition at line 127 of file ImageComparison.hh.

Referenced by size().





8.29.4.4 Image∗ ImageComparison::m_images[2] [protected]



An array holding the two images to be compared.

Definition at line 130 of file ImageComparison.hh.





8.29.4.5 logvals∗ ImageComparison::m_lqcache [protected]



A cache needed by distlq() to avoid repeated calculation of floor (log (i) / log (2)).

Definition at line 134 of file ImageComparison.hh.





8.29.4.6 double ImageComparison::m_weights[2][6] [protected]



The six weights for scanned images, needed by distlq(), Y channel, according to Jacobs

et.al.

Definition at line 138 of file ImageComparison.hh.





8.29.4.7 int ImageComparison::m_lqcachesize [protected]



The size of the m_lqcache. Always as big as MAX (rows, cols).

Definition at line 141 of file ImageComparison.hh.

The documentation for this class was generated from the following file:



• ImageComparison.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

172 Class Documentation





8.30 ImageDenoiser Class Reference



#include

Collaboration diagram for ImageDenoiser:





ReferenceVector









ImageVector









Filter VectorPosition FullVector RowVector ColumnVector





m_synthesisHigh m_analow

m_shpad

m_analysisHigh m_anahigh

m_apad m_afull m_arow m_acol

m_analysisLow m_synhigh

m_slpad

m_synthesisLow m_synlow





FilterSet Wavelet Image





m_buffer

m_filter m_wavelet

m_image





WaveletTransform





m_filter m_image





PyramidTransform





m_transform





ImageDenoiser









Public Member Functions



• ImageDenoiser (Image &img, unsigned areas, int fromSub, int toSub=1, double

alpha=1.0, FilterSet &filter=Daub4, int isSingleSignificant=0, int replacement-

Function=0)

• virtual ∼ImageDenoiser (void)

• virtual void denoise (void)



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.30 ImageDenoiser Class Reference 173





Protected Member Functions

• coeff threshold (int subband, area channel)

• virtual void processFrom (PyramidTree &tree, coeff ∗thresholds, area channel,

int level)

• virtual bool isCoeffSingleSignificant (CoeffInformation &c, area channel, coeff

threshold, bool &stop)

• virtual bool isSingleSignificantInRegion (CoeffInformation &c, area channel,

coeff threshold, bool &stop)

• virtual bool isSingleSignificantInChannel (CoeffInformation &c, area channel,

coeff threshold, bool &stop)

• virtual void replaceSimple (int y, int x, area channel, coeff threshold)

• virtual void replaceChannel (int y, int x, area channel, coeff threshold)





Protected Attributes

• Image ∗ m_image

• PyramidTransform ∗ m_transform

• FilterSet ∗ m_filter

• int m_from

• int m_to

• unsigned m_areas

• double m_alpha

• int m_significanceFunction

• int m_replacementFunction





8.30.1 Detailed Description



A simple DWT-based image denoiser. It uses the same tree structure as in Shapiro’s

Zerotree compression algorithm. Denoising means reducing the power of significant

coefficients in finer subbands that have insignificant parents in the coarser subbands.

Definition at line 39 of file ImageDenoiser.hh.





8.30.2 Constructor & Destructor Documentation



8.30.2.1 ImageDenoiser::ImageDenoiser (Image & img, unsigned areas, int

fromSub, int toSub = 1, double alpha = 1.0, FilterSet & filter =

Daub4, int isSingleSignificant = 0, int replacementFunction = 0)



Constructor, initializes internal structures, sets up preferences.



Parameters:

img a reference to the image to operate on.

areas the areas to operate on. Use a binary OR to combine more than one area

(see macros above).



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

174 Class Documentation





fromSub the subband to start building the trees

toSub the target subband where the tree terminates

alpha the scaling factor to the standard deviation for determining the significance

threshold

filter the filterset for decomposition

isSingleSignificant the kind of function used to determine significance, 0: single

values, 1: 3x3 regions, 2: channels in 3x3 environments

replacementFunction the kind of function used to replace coefficient we consider

as noise, 0: +-0.9∗threshold, 1: more complicated formula depending on

channel (see below)



Exceptions:



invalid_argument if the areas argument is zero or not at least two subbands are

selected or an invalid significance function is selected







8.30.2.2 virtual ImageDenoiser::∼ImageDenoiser (void) [virtual]



Destructor, clean up.





8.30.3 Member Function Documentation



8.30.3.1 virtual void ImageDenoiser::denoise (void) [virtual]



Apply the denoising algorithm to the image.



Exceptions:



invalid_argument if some error occurs during decomposition or reconstruction of

the image







8.30.3.2 coeff ImageDenoiser::threshold (int subband, area channel)

[protected]



Calculate the threshold for a given area/subband.



Parameters:

channel the area

subband the subband



Returns:

the threshold





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.30 ImageDenoiser Class Reference 175





8.30.3.3 virtual void ImageDenoiser::processFrom (PyramidTree & tree, coeff

∗ thresholds, area channel, int level) [protected, virtual]



Process one tree or subtree by applying the thresholds



Parameters:

tree the tree structure to process

thresholds an array holding depth thresholds

channel which area inside a subband

level the current position’s decomposition level





8.30.3.4 virtual bool ImageDenoiser::isCoeffSingleSignificant

(CoeffInformation & c, area channel, coeff threshold, bool & stop)

[protected, virtual]



Return true if the coefficient’s value is significant with respect to the threshold.



Parameters:

c the coefficient

channel which area inside a subband

threshold the threshold

stop set to true if we found an edge and want the processing of this tree to stop

(always false here)



Returns:

true if the coefficient is significant







8.30.3.5 virtual bool ImageDenoiser::isSingleSignificantInRegion

(CoeffInformation & c, area channel, coeff threshold, bool & stop)

[protected, virtual]



Return true if the coefficient is significant with respect to the threshold but the sur-

rounding square region is not.



Parameters:

c the coefficient

channel which area inside a subband

threshold the threshold

stop set to true if we found an edge and want the processing of this tree to stop



Returns:

true if the coefficient’s region is significant





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

176 Class Documentation





8.30.3.6 virtual bool ImageDenoiser::isSingleSignificantInChannel

(CoeffInformation & c, area channel, coeff threshold, bool & stop)

[protected, virtual]



Return true if the coefficient is significant with respect to the threshold but the sur-

rounding channel-dependent region is not.



Parameters:

c the coefficient

channel which area inside a subband

threshold the threshold

stop set to true if we found an edge and want the processing of this tree to stop



Returns:

true if the coefficient’s region is significant







8.30.3.7 virtual void ImageDenoiser::replaceSimple (int y, int x, area channel,

coeff threshold) [protected, virtual]



Replace a coefficient that we think is noise. This method simply replaces it by the

threshold multiplied by the original value’s sign and 0.99.



Parameters:

y the row in the image

x the column in the image

channel which area inside a subband

threshold the threshold







8.30.3.8 virtual void ImageDenoiser::replaceChannel (int y, int x, area

channel, coeff threshold) [protected, virtual]



Replace a coefficient that we think is noise. This method uses the formula found in

"Image Denoising Using a Local Gaussian Scale Mixture Model in the Wavelet Do-

main" by Strela/Portilla/Simoncelli: I_xy = sqrt (sum_n(I_xnyn∧ 2)/n), however we

only count vertical, horizontal or diagonal values depending on which channel a value

is in.



Parameters:

y the row in the image

x the column in the image

channel which area inside a subband

threshold the threshold



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.30 ImageDenoiser Class Reference 177





8.30.4 Member Data Documentation



8.30.4.1 Image∗ ImageDenoiser::m_image [protected]



A reference to the image to process.

Definition at line 139 of file ImageDenoiser.hh.





8.30.4.2 PyramidTransform∗ ImageDenoiser::m_transform [protected]



The wavelet transform to be used.

Definition at line 141 of file ImageDenoiser.hh.





8.30.4.3 FilterSet∗ ImageDenoiser::m_filter [protected]



The filterset used for decomposition

Definition at line 143 of file ImageDenoiser.hh.





8.30.4.4 int ImageDenoiser::m_from [protected]



The subband to start building the trees

Definition at line 145 of file ImageDenoiser.hh.





8.30.4.5 int ImageDenoiser::m_to [protected]



The target subband where the tree terminates

Definition at line 147 of file ImageDenoiser.hh.





8.30.4.6 unsigned ImageDenoiser::m_areas [protected]



The areas to operate on. Use a binary OR to combine more than one area (see macros

above).

Definition at line 150 of file ImageDenoiser.hh.





8.30.4.7 double ImageDenoiser::m_alpha [protected]



The scaling factor to the standard deviation for determining the significance threshold

Definition at line 153 of file ImageDenoiser.hh.





8.30.4.8 int ImageDenoiser::m_significanceFunction [protected]



The significance function used.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

178 Class Documentation





Definition at line 155 of file ImageDenoiser.hh.





8.30.4.9 int ImageDenoiser::m_replacementFunction [protected]



The replacement function used.

Definition at line 157 of file ImageDenoiser.hh.

The documentation for this class was generated from the following file:



• ImageDenoiser.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.31 ImageInformation Class Reference 179





8.31 ImageInformation Class Reference

#include

Collaboration diagram for ImageInformation:



CoeffInformation





m_coeffs





ImageInformation









Public Member Functions

• ImageInformation (int size=0)

• ImageInformation (Image &img)

• ∼ImageInformation (void)

• int size (void) const

• ImageInformation ∗ head (int n)

• ImageInformation ∗ tail (int n)

• ImageInformation ∗ append (ImageInformation &ii)

• ImageInformation ∗ clone (void)

• void shrink (int newsize, bool leavehead=true)

• bool equals (ImageInformation &ii)

• CoeffInformation & at (int pos)

• void to (CoeffInformation &c, int pos)

• void to (const CoeffInformation &c, int pos)

• void resize (int size)

• void swap (int pos1, int pos2)

• void gensort (cipredicate isless)

• void ssort (void)

• void asort (void)

• void psort (void)

• void yxsort (void)

• void xysort (void)

• void isort (void)

• void shuffle (void)

• bool ssorted (void) const

• bool asorted (void) const

• bool psorted (void) const

• bool isorted (void) const

• bool isIn (int abs) const

• bool isIn (int y, int x) const

• int locate (int abs) const

• int locate (int y, int x) const



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

180 Class Documentation





• coeff amax (void)

• coeff smax (void)

• coeff amin (void)

• coeff smin (void)

• void dump (const char ∗delim=" ", const char ∗file="") const

• coeff aaverage (void) const

• coeff saverage (void) const

• double sqvariance (void) const

• double variance (bool abs=false) const

• double sdeviation (bool abs=false) const





Protected Member Functions



• void copyCoeffs (CoeffInformation ∗coeffs, int size, bool head)

• ImageInformation ∗ subimage (int size, bool head)

• int randint (int from, int to)

• void quicksort (int from, int to, cipredicate isless)





Protected Attributes



• CoeffInformation ∗ m_coeffs

• int m_size





8.31.1 Detailed Description



Image information. The information consists coefficient information nodes, so the

original image can be reconstructed from this. Tool methods for sorting, shuffleing etc.

are used for watermark.

Definition at line 35 of file ImageInformation.hh.





8.31.2 Constructor & Destructor Documentation



8.31.2.1 ImageInformation::ImageInformation (int size = 0)



Constructor. Initializes a number of empty components.



Parameters:

size the number of components





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.31 ImageInformation Class Reference 181





8.31.2.2 ImageInformation::ImageInformation (Image & img)



Constructor. Gets information from an image.



Parameters:

img the source image







8.31.2.3 ImageInformation::∼ImageInformation (void)



Destructor. Frees allocated objects.





8.31.3 Member Function Documentation



8.31.3.1 int ImageInformation::size (void) const [inline]



Get the number of stored coeffs.



Returns:

the number of stored coeffs



Definition at line 51 of file ImageInformation.hh.





8.31.3.2 ImageInformation∗ ImageInformation::head (int n)



Get the first n coeffs.



Parameters:

n the number of coeffs



Returns:

a new info object containing the coeffs







8.31.3.3 ImageInformation∗ ImageInformation::tail (int n)



Get the last n coeffs.



Parameters:

n the number of coeffs



Returns:

a new info object containing the coeffs





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

182 Class Documentation





8.31.3.4 ImageInformation∗ ImageInformation::append (ImageInformation &

ii)



Append another ImageInformation object.



Parameters:

ii the other ImageInformation object.



Returns:

a new info object containing the coeffs







8.31.3.5 ImageInformation∗ ImageInformation::clone (void) [inline]



Get a copy of this.



Returns:

a new info object containing a copy of this



Definition at line 73 of file ImageInformation.hh.





8.31.3.6 void ImageInformation::shrink (int newsize, bool leavehead = true)



Shrink (discard some of the coeffs).



Parameters:

newsize the new number of coeffs, if greater than the actual size, the operation

has no effect

leavehead if {true} discard from behind, else discard from the top







8.31.3.7 bool ImageInformation::equals (ImageInformation & ii)



Equality test.



Parameters:

ii other info object



Returns:

if number of coeffs, order and the coeffs themselves are equal: {true}, else {false}







Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.31 ImageInformation Class Reference 183





8.31.3.8 CoeffInformation& ImageInformation::at (int pos) [inline]



Return a coeff info.



Parameters:

pos the info’s position in this object (array index)



Returns:

a reference to the coeff info node





Definition at line 103 of file ImageInformation.hh.





8.31.3.9 void ImageInformation::to (CoeffInformation & c, int pos)

[inline]



Set a position from a CoeffInformation object.



Parameters:

c the CoeffInformation object

pos the info’s position in this object (array index)



Definition at line 109 of file ImageInformation.hh.





8.31.3.10 void ImageInformation::to (const CoeffInformation & c, int pos)

[inline]



Set a position from a CoeffInformation object.



Parameters:

c the CoeffInformation object

pos the info’s position in this object (array index)



Definition at line 115 of file ImageInformation.hh.





8.31.3.11 void ImageInformation::resize (int size)



Resize the object preserving as many old values as possible.



Parameters:

size the new size





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

184 Class Documentation





8.31.3.12 void ImageInformation::swap (int pos1, int pos2)



Swap two coefficients.



Parameters:

pos1 the first object’s position

pos2 the second object’s position





8.31.3.13 void ImageInformation::gensort (cipredicate isless)



Sort the coeffs according to their values.



Parameters:

isless the comparison function to use.





8.31.3.14 void ImageInformation::ssort (void)



Sort the coeffs according to their values.





8.31.3.15 void ImageInformation::asort (void)



Sort the coeffs according to their absolute values.





8.31.3.16 void ImageInformation::psort (void)



Sort the coeffs according to their absolute positions in the image.





8.31.3.17 void ImageInformation::yxsort (void)



Sort the coeffs according to their rows/cols positions in the image.





8.31.3.18 void ImageInformation::xysort (void)



Sort the coeffs according to their cols/rows positions in the image.





8.31.3.19 void ImageInformation::isort (void)



Sort the coeffs according to their IDs.





8.31.3.20 void ImageInformation::shuffle (void)



Mix coeffs using pseudo-random numbers.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.31 ImageInformation Class Reference 185





8.31.3.21 bool ImageInformation::ssorted (void) const



Are the coeffs sorted according to their values?



Returns:

if sorted according to their values: {true}, else {false}







8.31.3.22 bool ImageInformation::asorted (void) const



Are the coeffs sorted according to their absolute values?



Returns:

if sorted according to their values: {true}, else {false}







8.31.3.23 bool ImageInformation::psorted (void) const



Are the coeffs sorted according to their position in their image?



Returns:

if sorted according to their positions: {true}, else {false}







8.31.3.24 bool ImageInformation::isorted (void) const



Are the coeffs sorted according to their IDs?



Returns:

if sorted according to their IDs: {true}, else {false}







8.31.3.25 bool ImageInformation::isIn (int abs) const [inline]



Returns true if a position is in this ImageInformation object.



Parameters:

abs the absolute position in the image



Returns:

true if the position was found



Definition at line 163 of file ImageInformation.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

186 Class Documentation





8.31.3.26 bool ImageInformation::isIn (int y, int x) const [inline]



Returns true if a position is in this ImageInformation object.



Parameters:

y the row in the image

x the col in the image



Returns:

true if the position was found



Definition at line 168 of file ImageInformation.hh.





8.31.3.27 int ImageInformation::locate (int abs) const



Returns true a position’s index if it is is in this ImageInformation object.



Parameters:

abs the absolute position in the image



Returns:

the index if found, else -1







8.31.3.28 int ImageInformation::locate (int y, int x) const



Returns true a position’s index if it is is in this ImageInformation object.



Parameters:

y the row in the image

x the col in the image



Returns:

the index if found, else -1







8.31.3.29 coeff ImageInformation::amax (void)



Get the maximum signed value from the selected coefficients.



Returns:

the maximum value





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.31 ImageInformation Class Reference 187





8.31.3.30 coeff ImageInformation::smax (void)



Get the maximum absolute value from the selected coefficients.



Returns:

the maximum value







8.31.3.31 coeff ImageInformation::amin (void)



Get the minimum absolute value from the selected coefficients.



Returns:

the minimum value







8.31.3.32 coeff ImageInformation::smin (void)



Get the minimum signed value from the selected coefficients.



Returns:

the minimum value







8.31.3.33 void ImageInformation::dump (const char ∗ delim = " ", const char

∗ file = "") const



Write the contents to stdout or a file.



Exceptions:



ios_base::failure if the file could not be opened for writing.



Parameters:

delim what to print between two entries

file the name of the file (empty string for stdout)







8.31.3.34 coeff ImageInformation::aaverage (void) const



Return the average absolute greyscale value.



Returns:

the average absolute greyscale value





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

188 Class Documentation





8.31.3.35 coeff ImageInformation::saverage (void) const



Return the average (signed) greyscale value.



Returns:

the average greyscale value





8.31.3.36 double ImageInformation::sqvariance (void) const



Return the square variance.



Returns:

the square variance





8.31.3.37 double ImageInformation::variance (bool abs = false) const



Return the variance.

Parameters:

abs true if signs are discarded.



Returns:

the variance





8.31.3.38 double ImageInformation::sdeviation (bool abs = false) const



Returns the standard deviation.

Parameters:

abs true if signs are discarded.



Returns:

the standard deviation.





8.31.3.39 void ImageInformation::copyCoeffs (CoeffInformation ∗ coeffs, int

size, bool head) [protected]



Obtain a subset of the coeffs.

Parameters:

coeffs the address of the CoeffInformation array to write to

size the new array’s size

head if {true} the subset will be taken from the top, else from the bottom





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.31 ImageInformation Class Reference 189





8.31.3.40 ImageInformation∗ ImageInformation::subimage (int size, bool

head) [protected]



Obtain a new info object containging a subset of the coeffs.



Parameters:

size the number of coeffs to be stored

head if {true} the subset will be taken from the top, else from the bottom



Returns:

the new info object







8.31.3.41 int ImageInformation::randint (int from, int to) [protected]



Obtain positive pseudo-random numbers.



Parameters:

from the minimum number

to one more than the maximum number



Returns:

the pseudo-random number







8.31.3.42 void ImageInformation::quicksort (int from, int to, cipredicate isless)

[protected]



Sort the coefficients. A Quicksort algorithm according to Jon Bentley.



Parameters:

from the start index

to the end index (included in sort)

isless the the comparison function, {true} when the left arg is less than the right

one





8.31.4 Member Data Documentation



8.31.4.1 CoeffInformation∗ ImageInformation::m_coeffs [protected]



An array containing the coefficient nodes.

Definition at line 238 of file ImageInformation.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

190 Class Documentation





8.31.4.2 int ImageInformation::m_size [protected]



The number of coeffs.

Definition at line 240 of file ImageInformation.hh.

The documentation for this class was generated from the following file:



• ImageInformation.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.32 ImageResizer Class Reference 191





8.32 ImageResizer Class Reference

#include

Collaboration diagram for ImageResizer:





ReferenceVector









ImageVector









FullVector RowVector ColumnVector





m_afull m_arow m_acol





Image





m_images





ColorBuffer Filter





m_synthesisHigh

m_analysisHigh

m_maxDetail

m_analysisLow

m_synthesisLow





ColorImage FilterSet





m_image m_filter





ImageResizer









Public Member Functions

• ImageResizer (const ColorImage &img, FilterSet &flt, int ∗fill=NULL, coeff

threshold=0.001, bool optimizeImage=false, int scalingStrategy=0)

• ∼ImageResizer (void)

• ColorImage ∗ resize (int rows, int cols, int steps=1)

• ColorImage ∗ redimension (int rows, int cols, int steps=1)

• double getInnerAvgPerSize (void) const



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

192 Class Documentation





• double getInnerSDeviation (void) const

• int getInnerRegionSize (void) const

• double threshold (void) const

• void threshold (double threshold)

• void optimizeImage (bool optimizeImage)

• bool optimizeImage (void)





Protected Types

• enum { CROP_COLS, CROP_ROWS, CROP_BOTH_OR_NONE, CROP_-

AUTOMATICALLY }





Protected Member Functions

• void calcDimensions (int rows, int cols)

• int fixDimensions (int rows, int cols)

• void calcOptimization (void)

• void calcOuterStats (coeff &avg, coeff &variance, int firstTop, int firstLeft, int

firstBottom, int firstRight, int secondTop, int secondLeft, int secondBottom, int

secondRight)

• void calcInnerStats (coeff &avg, coeff &sDev, int top, int left, int bottom, int

right)

• void calcStats (int nRows, int nCols, coeff &outerAvg, coeff &outerSDev, coeff

&innerAvg, coeff &innerSDev)

• void genMaxDetail (int steps)

• ColorImage ∗ getUnscaledImage (int rows, int cols, int discardRows, int discard-

Cols)

• ColorImage ∗ getScaledImage (int rows, int cols, int discardRows, int discard-

Cols)

• ColorImage ∗ getCroppedImage (int discardRows, int discardCols)

• ColorImage ∗ doResize (int rows, int cols, int steps, bool redimensionOnly)





Protected Attributes

• const ColorImage & m_image

• Image ∗ m_maxDetail

• FilterSet & m_filter

• float m_qRows

• float m_qCols

• int ∗ m_fill

• int m_scalingStrategy

• double m_innerAvgPerSize

• double m_innerSDeviation

• int m_innerRegionSize

• coeff m_threshold

• bool m_optimizeImage



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.32 ImageResizer Class Reference 193





• bool m_optimizationCalculated

• int m_cropMaxRows

• int m_cropMaxCols

• double m_rowsMapping

• double m_colsMapping

• int m_steps

• enum ImageResizer:: { ... } m_cropWhat





8.32.1 Detailed Description



A class for advanced resizing of images, i.e. wavelet-based techniques can be used to

intelligently crop images to fit

This class will only discard background pixels if the image is shrunk.

Definition at line 26 of file ImageResizer.hh.





8.32.2 Member Enumeration Documentation



8.32.2.1 anonymous enum [protected]



Enumerator:

CROP_COLS

CROP_ROWS

CROP_BOTH_OR_NONE

CROP_AUTOMATICALLY



Definition at line 296 of file ImageResizer.hh.





8.32.3 Constructor & Destructor Documentation



8.32.3.1 ImageResizer::ImageResizer (const ColorImage & img, FilterSet & flt,

int ∗ fill = NULL, coeff threshold = 0.001, bool optimizeImage =

false, int scalingStrategy = 0)



Constructor, loads an image, sets Wavelet to be used.



Parameters:

img a reference to the image

flt a reference to the filterset

fill if not NULL it must point to an array of as many values as color channels,

so that each of the image’s channels has its own fill greyscale value for the

remaining space (else the a smaller image size will be chosen if the aspect

ratio does not match)



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

194 Class Documentation





optimizeImage if set to true, we will try to locate the actual contents regardless of

whether the target dimensions fit or not

threshold the threshold for the aggressiveness of the cropping (

Inheritance diagram for ImageVector:



ReferenceVector









ImageVector









ColumnVector FullVector RowVector









Collaboration diagram for ImageVector:



ReferenceVector









ImageVector









Public Member Functions

• ImageVector (ImageArray ∗ar)

• virtual ∼ImageVector (void)

• virtual bool sanity (void)

• virtual void update (void)

• virtual void go (int root)

• virtual coeff at (int pos)=0

• virtual void to (int pos, coeff val)=0

• virtual int size (void)=0

• coeff weight (void)





Protected Attributes

• ImageArray ∗ m_array

• int m_xsize

• int m_ysize





8.33.1 Detailed Description



Pseudo-vector (abstract) for use with two-dimensional objects, like images. Provide a

two-dimensional array’s rows and columns as vectors with array addressing.

Definition at line 26 of file ImageVector.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

204 Class Documentation





8.33.2 Constructor & Destructor Documentation



8.33.2.1 ImageVector::ImageVector (ImageArray ∗ ar)



Constructor. Sets the array reference.





8.33.2.2 virtual ImageVector::∼ImageVector (void) [inline, virtual]



Destructor. Does nothing.

Definition at line 34 of file ImageVector.hh.





8.33.3 Member Function Documentation



8.33.3.1 virtual bool ImageVector::sanity (void) [virtual]



Checks integrity. If the array’s dimensions have been changed (resize operation) {false}

will be returned.

Implements ReferenceVector.





8.33.3.2 virtual void ImageVector::update (void) [virtual]



Updates the vector’s settings. This is necessary each time after the array has been

resized.

Implements ReferenceVector.

Reimplemented in ColumnVector, FullVector, and RowVector.





8.33.3.3 virtual void ImageVector::go (int root) [virtual]



Set new root. Depending of what concrete instance is the current row or col will be

set.

Exceptions:



invalid_argument a negative value was given for the new root



Parameters:

root the new root



Implements ReferenceVector.

Reimplemented in ColumnVector, FullVector, and RowVector.





8.33.3.4 virtual coeff ImageVector::at (int pos) [pure virtual]



Return a value (abstract). The value is taken from the vector’s position {pos}.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.33 ImageVector Class Reference 205



Parameters:

pos the position



Returns:

the value at that position



Implements ReferenceVector.

Implemented in ColumnVector, FullVector, and RowVector.





8.33.3.5 virtual void ImageVector::to (int pos, coeff val) [pure virtual]



Assign a value (abstract). A new value {val} is assigned to the vector’s position

{pos}.



Parameters:

pos the position

val the new value



Implements ReferenceVector.

Implemented in ColumnVector, FullVector, and RowVector.





8.33.3.6 virtual int ImageVector::size (void) [pure virtual]



Return the vector’s size (abstract). Depending on the concrete instance we will get the

associated array’s number of rows or cols.



Returns:

the vector’s size



Implements ReferenceVector.

Implemented in ColumnVector, FullVector, and RowVector.





8.33.3.7 coeff ImageVector::weight (void)



Return the sum of the vector’s absolute values

Returns:

the sum of the vector’s absolute values





8.33.4 Member Data Documentation



8.33.4.1 ImageArray∗ ImageVector::m_array [protected]



A reference to encapsuled array. Rows and cols will be taken from this array.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

206 Class Documentation





Definition at line 80 of file ImageVector.hh.





8.33.4.2 int ImageVector::m_xsize [protected]



The encapsulated array’s cols.

Definition at line 82 of file ImageVector.hh.

Referenced by FullVector::FullVector().





8.33.4.3 int ImageVector::m_ysize [protected]



The encapsulated array’s rows .

Definition at line 84 of file ImageVector.hh.

Referenced by FullVector::FullVector().

The documentation for this class was generated from the following file:



• ImageVector.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.34 JpgReader Class Reference 207





8.34 JpgReader Class Reference









#include

Inheritance diagram for JpgReader:









PixmapFile









PixmapReader









JpgReader









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

208 Class Documentation





Collaboration diagram for JpgReader:





ReferenceVector









ImageVector









FullVector RowVector ColumnVector





m_afull m_arow m_acol





Image





m_images





PixmapFile









PixmapReader









JpgReader









Public Member Functions



• JpgReader (char const ∗name, Image ∗images[ ])







Protected Member Functions



• virtual int readfmt (void)



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.34 JpgReader Class Reference 209





8.34.1 Detailed Description



A JPG file reader. Only JPGs version 6 are supported.

BUGS: Only color depths of 1 and 3 are supported.

Definition at line 23 of file JpgReader.hh.





8.34.2 Constructor & Destructor Documentation



8.34.2.1 JpgReader::JpgReader (char const ∗ name, Image ∗ images[ ])

[inline]



Constructor. Only calls the mother class’ constructor to initialize the {ImageArray}

reference.



Parameters:

name the file name

images the array of greyscale images for the values



Definition at line 33 of file JpgReader.hh.





8.34.3 Member Function Documentation



8.34.3.1 virtual int JpgReader::readfmt (void) [protected, virtual]



Read the JPG file format. This does the actual work of reading and parsing the image

file. It gets called by the {read ()} method.



Returns:

0 if successful, -1 on read error, -2 on file format error.



Implements PixmapReader.

The documentation for this class was generated from the following file:



• JpgReader.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

210 Class Documentation





8.35 JpgWriter Class Reference









#include

Inheritance diagram for JpgWriter:









PixmapFile









PixmapWriter









JpgWriter









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.35 JpgWriter Class Reference 211





Collaboration diagram for JpgWriter:





ReferenceVector









ImageVector









FullVector RowVector ColumnVector





m_afull m_arow m_acol





Image





m_images





PixmapFile









PixmapWriter









JpgWriter









Public Member Functions



• JpgWriter (char const ∗name, Image ∗images[ ], int colors=3, int quality=90)







Protected Member Functions



• virtual int writefmt (void)



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

212 Class Documentation





Protected Attributes

• int m_quality





8.35.1 Detailed Description



A JPG image file writer. Dimensions are known from the {Image} object. Only JPG

version 6 is supported.

Definition at line 22 of file JpgWriter.hh.





8.35.2 Constructor & Destructor Documentation



8.35.2.1 JpgWriter::JpgWriter (char const ∗ name, Image ∗ images[ ], int

colors = 3, int quality = 90) [inline]



Constructor. Only calls the mother class’ constructor to initialize the {ImageArray}

reference and set the offset if necessary.



Parameters:

name the file name

images the array of greyscale images for the values

colors the number of colors

quality the JPEG quality



Definition at line 37 of file JpgWriter.hh.

References m_quality.





8.35.3 Member Function Documentation



8.35.3.1 virtual int JpgWriter::writefmt (void) [protected, virtual]



Write a JPG image file. This is the method that does the actual work. It will be called

by the {write ()} method.



Returns:

0 if successful, -1 on write error.



Implements PixmapWriter.





8.35.4 Member Data Documentation



8.35.4.1 int JpgWriter::m_quality [protected]



The JPEG quality factor



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.35 JpgWriter Class Reference 213





Definition at line 48 of file JpgWriter.hh.

Referenced by JpgWriter().

The documentation for this class was generated from the following file:



• JpgWriter.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

214 Class Documentation





8.36 logvals Struct Reference

#include





Public Attributes

• int val

• bool init





8.36.1 Detailed Description



A data structure for a cache of (log (i) / log (2)) entries.

Definition at line 32 of file ImageComparison.hh.





8.36.2 Member Data Documentation



8.36.2.1 int logvals::val



Definition at line 33 of file ImageComparison.hh.





8.36.2.2 bool logvals::init



Definition at line 34 of file ImageComparison.hh.

The documentation for this struct was generated from the following file:



• ImageComparison.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.37 lq Struct Reference 215





8.37 lq Struct Reference

#include





Public Attributes

• double colors

• double details





8.37.1 Detailed Description



A data structure for an $L∧ q$ norm.

Definition at line 24 of file ImageComparison.hh.





8.37.2 Member Data Documentation



8.37.2.1 double lq::colors



The weighted distance between the average colors

Definition at line 26 of file ImageComparison.hh.





8.37.2.2 double lq::details



The weighted distances between the top coefficients

Definition at line 28 of file ImageComparison.hh.

The documentation for this struct was generated from the following file:



• ImageComparison.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

216 Class Documentation





8.38 MirrorPosition Class Reference

#include

Inheritance diagram for MirrorPosition:





VectorPosition









MirrorPosition









Collaboration diagram for MirrorPosition:





VectorPosition









MirrorPosition









Public Member Functions



• MirrorPosition (bool laxis=false, bool raxis=false)

• MirrorPosition (int newsize)

• int pos (int position, int start, int end, int &sign)

• void setlaxis (bool laxis)

• void setraxis (bool raxis)

• bool laxis (void)

• bool raxis (void)





Private Member Functions



• int noaxis (int position, int start, int length, int &sign)

• int twoaxis (int position, int start, int length, int &sign)

• int oneleftaxis (int position, int start, int length, int &sign)

• int onerightaxis (int position, int start, int length, int &sign)





Private Attributes



• bool m_leftaxis

• bool m_rightaxis



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.38 MirrorPosition Class Reference 217





8.38.1 Detailed Description



A Mirror index (abstract). Performs symmetric, periodic and whatever extensions to a

vector or a part of it.

Definition at line 23 of file MirrorPosition.hh.





8.38.2 Constructor & Destructor Documentation



8.38.2.1 MirrorPosition::MirrorPosition (bool laxis = false, bool raxis =

false)



Constructor. Allows to specify nonstandard symmetry details.



Parameters:

laxis an additional mirroring axis is used on the left side, like 3-2-1-0-|-0-1-2-3

raxis an additional mirroring axis is used on the right side, like 3-2-1-0-|-0-1-2-3







8.38.2.2 MirrorPosition::MirrorPosition (int newsize) [inline]



Constructor. Calls the superclass’ constructor.

Definition at line 37 of file MirrorPosition.hh.

References m_leftaxis, and m_rightaxis.





8.38.3 Member Function Documentation



8.38.3.1 int MirrorPosition::pos (int position, int start, int end, int & sign)

[virtual]



Calculate real position assuming a given vector start and length. If a position is greater

than the assumed size or less than the assumed start position we mirror the position

back into range.



Parameters:

position the requested position

start the assumed start

end the assumed end point

sign -1 if {symmetry} is set and we’re in the first half of a period, else 1



Returns:

the new position



Implements VectorPosition.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

218 Class Documentation





8.38.3.2 void MirrorPosition::setlaxis (bool laxis) [inline]



Set left mirroring axis.



Parameters:

laxis an additional mirroring axis is used on the left side, like 3-2-1-0-|-0-1-2-3



Definition at line 60 of file MirrorPosition.hh.

References m_leftaxis.





8.38.3.3 void MirrorPosition::setraxis (bool raxis) [inline]



Set right mirroring axis.



Parameters:

raxis an additional mirroring axis is used on the reft side, like 0-1-2-3-|-3-2-1-0



Definition at line 66 of file MirrorPosition.hh.

References m_rightaxis.





8.38.3.4 bool MirrorPosition::laxis (void) [inline]



Return the left side axis settings.



Returns:

if an invisible axis exists: {true} else {false}



Definition at line 71 of file MirrorPosition.hh.

References m_leftaxis.





8.38.3.5 bool MirrorPosition::raxis (void) [inline]



Return the right side axis settings.



Returns:

if an invisible axis exists: {true} else {false}



Definition at line 75 of file MirrorPosition.hh.

References m_rightaxis.





8.38.3.6 int MirrorPosition::noaxis (int position, int start, int length, int &

sign) [private]



Mirroring with the outer elements as axis on both sides.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.38 MirrorPosition Class Reference 219



Parameters:

position the requested position

start the assumed start

length the assumed length

sign -1 if {m_symmetry} is set and we’re in the first half of a period, else 1



Returns:

the new position







8.38.3.7 int MirrorPosition::twoaxis (int position, int start, int length, int &

sign) [private]



Mirroring with invisible axis on both sides.



Parameters:

position the requested position

start the assumed start

length the assumed length

sign -1 if {m_symmetry} is set and we’re in the first half of a period, else 1



Returns:

the new position







8.38.3.8 int MirrorPosition::oneleftaxis (int position, int start, int length, int &

sign) [private]



Mirroring with invisible axis on the left, but none on the right side.



Parameters:

position the requested position

start the assumed start

length the assumed length

sign -1 if {m_symmetry} is set and we’re in the first half of a period, else 1



Returns:

the new position







Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

220 Class Documentation





8.38.3.9 int MirrorPosition::onerightaxis (int position, int start, int length, int

& sign) [private]



Mirroring with invisible axis on the right, but none on the left side.



Parameters:

position the requested position

start the assumed start

length the assumed length

sign -1 if {m_symmetry} is set and we’re in the first half of a period, else 1



Returns:

the new position





8.38.4 Member Data Documentation



8.38.4.1 bool MirrorPosition::m_leftaxis [private]



Invisible left axis for mirroring?

Definition at line 79 of file MirrorPosition.hh.

Referenced by laxis(), MirrorPosition(), and setlaxis().





8.38.4.2 bool MirrorPosition::m_rightaxis [private]



Invisible right axis for mirroring?

Definition at line 81 of file MirrorPosition.hh.

Referenced by MirrorPosition(), raxis(), and setraxis().

The documentation for this class was generated from the following file:



• MirrorPosition.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.39 NTree Class Template Reference 221





8.39 NTree Class Template Reference

#include

Inheritance diagram for NTree:



NTree











NTree









PyramidTree









Collaboration diagram for NTree:



Type





m_data





NTree









Public Member Functions

• NTree (int nChildren, NTree ∗parent=NULL, int position=-1)

• NTree (int nChildren, Type &data, int position=-1, NTree

∗parent=NULL)

• ∼NTree (void)

• bool isRoot (void) const

• int position (void) const

• int aryness (void) const

• bool hasLeftSibling (void) const

• bool hasRightSibling (void) const

• bool hasChildAt (int pos) const

• bool hasChildren (void) const

• int card (void) const

• bool equals (const NTree &tree) const

• NTree ∗ clone (void) const

• void destroyAt (int pos)

• void appendAt (int pos, NTree ∗tree)

• void appendAt (int pos, const Type &data)

• Type & data (void)

• NTree & childAt (int pos)

• NTree & leftSibling (void)

• NTree & rightSibling (void)



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

222 Class Documentation





Protected Member Functions

• void init (int nChildren, int position, NTree ∗parent)

• void appendNGenerations (int levels)

• bool indexOK (int pos) const

• void copyLeaves (NTree &dst, const NTree &src) const





Protected Attributes

• NTree ∗∗ m_children

• NTree ∗ m_parent

• Type m_data

• int m_aryness

• int m_position





8.39.1 Detailed Description



template class NTree



A class for n-ary trees. Rather relaxed attitude towards position checking; crashes are

avoided but errors not always flagged!

Definition at line 28 of file NTree.hh.





8.39.2 Constructor & Destructor Documentation



8.39.2.1 template NTree::NTree (int nChildren, NTree ∗ parent = NULL, int position = -1)



Constructor, creates one empty tree node. The data is uninitialized after creation.



Parameters:

nChildren the number of children to this node

position the position in the parent node if applicable

parent the parent node or NULL if root node





8.39.2.2 template NTree::NTree (int nChildren, Type &

data, int position = -1, NTree ∗ parent = NULL)



Constructor, creates and initializes one tree node.



Parameters:

nChildren the number of children to this node

data the data to initialize with (the data will be assigned using the assignment

operator)



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.39 NTree Class Template Reference 223





position the position in the parent node if applicable

parent the parent node or NULL if root node







8.39.2.3 template NTree::∼NTree (void)



Destructor. Releases memory.





8.39.3 Member Function Documentation



8.39.3.1 template bool NTree::isRoot (void) const

[inline]



Is this node the root of a tree?



Returns:

true if root, false if not



Definition at line 50 of file NTree.hh.

Referenced by NTree::hasLeftSibling(), and NTree::hasRightSibling().





8.39.3.2 template int NTree::position (void) const

[inline]



Returns the position of this node in the parent node.



Returns:

the position in the parent node, -1 if this is a root node



Definition at line 53 of file NTree.hh.





8.39.3.3 template int NTree::aryness (void) const

[inline]



Returns the kind of tree this is (i.e. how many children each node has).



Returns:

the aryness



Definition at line 56 of file NTree.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

224 Class Documentation





8.39.3.4 template bool NTree::hasLeftSibling (void)

const [inline]



Has this node any neighbour nodes to its left?



Returns:

true if there are



Definition at line 59 of file NTree.hh.

Referenced by NTree::leftSibling().





8.39.3.5 template bool NTree::hasRightSibling (void)

const [inline]



Has this node any neighbour nodes to its right?



Returns:

true if there are



Definition at line 65 of file NTree.hh.

Referenced by NTree::rightSibling().





8.39.3.6 template bool NTree::hasChildAt (int pos)

const [inline]



Has this node any children at a particular position?



Parameters:

pos the position



Returns:

true if it has any children at that position



Definition at line 72 of file NTree.hh.

Referenced by NTree::hasChildren().





8.39.3.7 template bool NTree::hasChildren (void) const

[inline]



Has this node any children at all?



Returns:

true if it has children



Definition at line 77 of file NTree.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.39 NTree Class Template Reference 225





8.39.3.8 template int NTree::card (void) const



Returns the number of nodes.



Returns:

the number of nodes





8.39.3.9 template bool NTree::equals (const NTree & tree) const



Compares two trees. The ‘==’ equality operator will be used for the data fields



Parameters:

tree the other tree



Returns:

true if the trees have identical data / number of children







8.39.3.10 template NTree∗ NTree::clone (void)

const



Produce a copy of this tree. The data fields will be copied.



Returns:

the copy





8.39.3.11 template void NTree::destroyAt (int pos)

[inline]



Destroy the subtree at a particular position.



Parameters:

pos the position



Definition at line 94 of file NTree.hh.





8.39.3.12 template void NTree::appendAt (int pos,

NTree ∗ tree)



Appends a tree at a particular position. The tree will not be duplicated.



Parameters:

pos the position



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

226 Class Documentation





tree the tree



Exceptions:



invalid_argument if the tree has a different aryness from this

invalid_argument if the position is not empty





8.39.3.13 template void NTree::appendAt (int pos,

const Type & data)



Creates a new node and appends it at a particular position.



Parameters:

pos the position

data the data to append



Exceptions:



invalid_argument if the position is not empty





8.39.3.14 template Type& NTree::data (void)

[inline]



Return a reference to this node’s data.

Returns:

a reference to the data



Definition at line 109 of file NTree.hh.





8.39.3.15 template NTree& NTree::childAt

(int pos) [inline]



Return a reference to the node/subtree at a particular position.



Parameters:

pos the position



Returns:

the subtree



Exceptions:



invalid_argument if the given position is empty



Definition at line 114 of file NTree.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.39 NTree Class Template Reference 227





8.39.3.16 template NTree& NTree::leftSibling

(void) [inline]



Return a reference to the node/subtree left to this.



Returns:

the left sibling



Exceptions:



invalid_argument if there is no left sibling



Definition at line 124 of file NTree.hh.





8.39.3.17 template NTree& NTree::rightSibling (void) [inline]



Return a reference to the node/subtree right to this.



Returns:

the right sibling



Exceptions:



invalid_argument if there is no right sibling



Definition at line 134 of file NTree.hh.





8.39.3.18 template void NTree::init (int nChildren, int

position, NTree ∗ parent) [protected]



Initialize the node.



Parameters:

nChildren the number of children (aryness)

position the position in the parent node if applicable

parent the parent node or NULL if root





8.39.3.19 template void NTree::appendNGenerations

(int levels) [protected]



Create empty child nodes to this.



Parameters:

levels the number of generations to add.





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

228 Class Documentation





8.39.3.20 template bool NTree::indexOK (int pos) const

[inline, protected]



Check whether an index is out of bounds.



Parameters:

pos the index



Returns:

false if the index is out of bounds



Definition at line 154 of file NTree.hh.

Referenced by NTree::childAt(), and NTree::hasChildAt().





8.39.3.21 template void NTree::copyLeaves (NTree & dst, const NTree & src) const [protected]



Copy one tree’s leaves to another tree. Data fields will be copied using the ‘=’ assign-

ment operator. Both trees need to have identical arynesses.



Parameters:

dst the destination tree

src the source tree



Exceptions:



invalid_argument if the dimensions do not match





8.39.4 Member Data Documentation



8.39.4.1 template NTree∗∗ NTree::m_children

[protected]



An array of ‘aryness’ elements holding the children’s addresses

Definition at line 164 of file NTree.hh.

Referenced by NTree::childAt(), NTree::destroyAt(), and NTree::hasChildAt().





8.39.4.2 template NTree∗ NTree::m_parent

[protected]



The parent node’s address or NULL if root

Definition at line 167 of file NTree.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.39 NTree Class Template Reference 229





Referenced by NTree::hasLeftSibling(), NTree::hasRightSibling(), NTree::isRoot(), NTree::leftSibling(), and NTree::rightSibling().





8.39.4.3 template Type NTree::m_data [protected]



The data field.

Definition at line 170 of file NTree.hh.

Referenced by NTree::data().





8.39.4.4 template int NTree::m_aryness

[protected]



The number of children this node can have

Definition at line 173 of file NTree.hh.

Referenced by NTree::aryness(), NTree::hasChildren(), NTree::hasRightSibling(), and NTree::indexOK().





8.39.4.5 template int NTree::m_position

[protected]



This node’s position in the parent node or -1 if root

Definition at line 175 of file NTree.hh.

Referenced by NTree::hasLeftSibling(), NTree::hasRightSibling(), NTree::leftSibling(), NTree::position(), and NTree::rightSibling().

The documentation for this class was generated from the following file:



• NTree.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

230 Class Documentation





8.40 PeriodicPosition Class Reference

#include

Inheritance diagram for PeriodicPosition:



VectorPosition









PeriodicPosition









Collaboration diagram for PeriodicPosition:



VectorPosition









PeriodicPosition









Public Member Functions

• PeriodicPosition (void)

• PeriodicPosition (int newsize)

• int pos (int pos, int start, int end, int &sign)





8.40.1 Detailed Description



A Periodic index (abstract). Performs symmetric, periodic and whatever extensions to

a vector or a part of it.

Definition at line 23 of file PeriodicPosition.hh.





8.40.2 Constructor & Destructor Documentation



8.40.2.1 PeriodicPosition::PeriodicPosition (void) [inline]



Constructor. Calls the superclass’ constructor.

Definition at line 28 of file PeriodicPosition.hh.





8.40.2.2 PeriodicPosition::PeriodicPosition (int newsize) [inline]



Constructor. Calls the superclass’ constructor.

Definition at line 31 of file PeriodicPosition.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.40 PeriodicPosition Class Reference 231





8.40.3 Member Function Documentation



8.40.3.1 int PeriodicPosition::pos (int pos, int start, int end, int & sign)

[virtual]



Calculate real position assuming a given vector start and length. If a position is greater

than the assumed size or less than the assumed start position we mirror the position

back into range.



Parameters:

pos the requested position

start the assumed start

end the assumed end point

sign always 1



Returns:

the new position



Implements VectorPosition.

The documentation for this class was generated from the following file:



• PeriodicPosition.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

232 Class Documentation





8.41 PfcReader Class Reference









#include

Inheritance diagram for PfcReader:









PixmapFile









PixmapReader









PfcReader









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.41 PfcReader Class Reference 233





Collaboration diagram for PfcReader:





ReferenceVector









ImageVector









FullVector RowVector ColumnVector





m_afull m_arow m_acol





Image





m_images





PixmapFile









PixmapReader









PfcReader









Public Member Functions



• PfcReader (char const ∗name, Image ∗images[ ], int colors=3)

• virtual ∼PfcReader (void)







Protected Member Functions



• virtual int readfmt (void)



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

234 Class Documentation





8.41.1 Detailed Description



A PFC file reader. Only PFCs version 6 are supported.

Definition at line 21 of file PfcReader.hh.





8.41.2 Constructor & Destructor Documentation



8.41.2.1 PfcReader::PfcReader (char const ∗ name, Image ∗ images[ ], int

colors = 3) [inline]



Constructor. Only calls the mother class’ constructor to initialize the {ImageArray}

reference.



Parameters:

name the file name

images the array of greyscale images for the values

colors the number of colors



Definition at line 33 of file PfcReader.hh.





8.41.2.2 virtual PfcReader::∼PfcReader (void) [inline, virtual]



Destructor - does nothing.

Definition at line 37 of file PfcReader.hh.





8.41.3 Member Function Documentation



8.41.3.1 virtual int PfcReader::readfmt (void) [protected, virtual]



Read the PFC file format. This does the actual work of reading and parsing the image

file. It gets called by the {read ()} method.



Returns:

0 if successful, -1 on read error, -2 on file format error.



Implements PixmapReader.

The documentation for this class was generated from the following file:



• PfcReader.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.42 PfcWriter Class Reference 235





8.42 PfcWriter Class Reference









#include

Inheritance diagram for PfcWriter:









PixmapFile









PixmapWriter









PfcWriter









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

236 Class Documentation





Collaboration diagram for PfcWriter:





ReferenceVector









ImageVector









FullVector RowVector ColumnVector





m_afull m_arow m_acol





Image





m_images





PixmapFile









PixmapWriter









PfcWriter









Public Member Functions



• PfcWriter (char const ∗name, Image ∗images[ ], int colors=3, clrmodel

cmodel=cm_rgb)

• virtual ∼PfcWriter (void)





Protected Member Functions



• virtual int writefmt (void)



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.42 PfcWriter Class Reference 237





8.42.1 Detailed Description



A PFC image file writer. Dimensions are known from the {Image} object. Only PFC

version 6 is supported.

Definition at line 21 of file PfcWriter.hh.





8.42.2 Constructor & Destructor Documentation



8.42.2.1 PfcWriter::PfcWriter (char const ∗ name, Image ∗ images[ ], int

colors = 3, clrmodel cmodel = cm_rgb) [inline]



Constructor. Only calls the mother class’ constructor to initialize the {ImageArray}

reference and set the offset if necessary.



Parameters:

name the file name

images the array of greyscale images for the values

colors the number of colors

cmodel the color model



Definition at line 36 of file PfcWriter.hh.

References PixmapFile::colormodel().





8.42.2.2 virtual PfcWriter::∼PfcWriter (void) [inline, virtual]



Destructor - does nothing.

Definition at line 41 of file PfcWriter.hh.





8.42.3 Member Function Documentation



8.42.3.1 virtual int PfcWriter::writefmt (void) [protected, virtual]



Write a PFC image file. This is the method that does the actual work. It will be called

by the {write ()} method.



Returns:

0 if successful, -1 on write error.



Implements PixmapWriter.

The documentation for this class was generated from the following file:



• PfcWriter.hh





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

238 Class Documentation





8.43 PfgReader Class Reference



#include

Inheritance diagram for PfgReader:





GreymapFile









GreymapReader









PfgReader









Collaboration diagram for PfgReader:





GreymapFile









GreymapReader









PfgReader









Public Member Functions



• PfgReader (char const ∗name, ImageArray &data)

• virtual ∼PfgReader (void)







Protected Member Functions



• virtual int readfmt (void)







8.43.1 Detailed Description



A PFG file reader. Only grey-scale PFGs are supported.

Definition at line 21 of file PfgReader.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.43 PfgReader Class Reference 239





8.43.2 Constructor & Destructor Documentation



8.43.2.1 PfgReader::PfgReader (char const ∗ name, ImageArray &

data) [inline]



Constructor. Only calls the mother class’ constructor to initialize the {ImageArray}

reference.



Parameters:

name the file name

data the reference to the {ImageArray} object



Definition at line 31 of file PfgReader.hh.





8.43.2.2 virtual PfgReader::∼PfgReader (void) [inline, virtual]



Destructor - does nothing.

Definition at line 35 of file PfgReader.hh.





8.43.3 Member Function Documentation



8.43.3.1 virtual int PfgReader::readfmt (void) [protected, virtual]



Read the PFG file format. This does the actual work of reading and parsing the image

file. It gets called by the {read ()} method.



Returns:

0 if successful, -1 on read error, -2 on file format error.



Implements GreymapReader.

The documentation for this class was generated from the following file:



• PfgReader.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

240 Class Documentation





8.44 PfgWriter Class Reference



#include

Inheritance diagram for PfgWriter:





GreymapFile









GreymapWriter









PfgWriter









Collaboration diagram for PfgWriter:





GreymapFile









GreymapWriter









PfgWriter









Public Member Functions



• PfgWriter (char const ∗name, ImageArray &data)

• virtual ∼PfgWriter (void)







Protected Member Functions



• virtual int writefmt (void)







8.44.1 Detailed Description



A PFG image file writer. Dimensions are known from the {ImageArray} object. Only

grey-scale PFGs are supported.

Definition at line 22 of file PfgWriter.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.44 PfgWriter Class Reference 241





8.44.2 Constructor & Destructor Documentation



8.44.2.1 PfgWriter::PfgWriter (char const ∗ name, ImageArray &

data) [inline]



Constructor. Only calls the mother class’ constructor to initialize the {ImageArray}

reference and set the offset if necessary.



Parameters:

name the file name

data the reference to the {ImageArray} object



Definition at line 33 of file PfgWriter.hh.





8.44.2.2 virtual PfgWriter::∼PfgWriter (void) [inline, virtual]



Destructor - does nothing.

Definition at line 37 of file PfgWriter.hh.





8.44.3 Member Function Documentation



8.44.3.1 virtual int PfgWriter::writefmt (void) [protected, virtual]



Write a PFG image file. This is the method that does the actual work. It will be called

by the {write ()} method.



Returns:

0 if successful, -1 on write error.



Implements GreymapWriter.

The documentation for this class was generated from the following file:



• PfgWriter.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

242 Class Documentation





8.45 PgmReader Class Reference



#include

Inheritance diagram for PgmReader:





GreymapFile









GreymapReader









PgmReader









Collaboration diagram for PgmReader:





GreymapFile









GreymapReader









PgmReader









Public Member Functions



• PgmReader (char const ∗name, ImageArray &data)

• virtual ∼PgmReader (void)







Protected Member Functions



• virtual int readfmt (void)







8.45.1 Detailed Description



A PGM file reader. Only PGMs version 5 are supported.

Definition at line 21 of file PgmReader.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.45 PgmReader Class Reference 243





8.45.2 Constructor & Destructor Documentation



8.45.2.1 PgmReader::PgmReader (char const ∗ name, ImageArray &

data) [inline]



Constructor. Only calls the mother class’ constructor to initialize the {ImageArray}

reference.



Parameters:

name the file name

data the reference to the {ImageArray} object



Definition at line 31 of file PgmReader.hh.





8.45.2.2 virtual PgmReader::∼PgmReader (void) [inline, virtual]



Destructor - does nothing.

Definition at line 35 of file PgmReader.hh.





8.45.3 Member Function Documentation



8.45.3.1 virtual int PgmReader::readfmt (void) [protected, virtual]



Read the PGM file format. This does the actual work of reading and parsing the image

file. It gets called by the {read ()} method.



Returns:

0 if successful, -1 on read error, -2 on file format error.



Implements GreymapReader.

The documentation for this class was generated from the following file:



• PgmReader.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

244 Class Documentation





8.46 PgmWriter Class Reference



#include

Inheritance diagram for PgmWriter:





GreymapFile









GreymapWriter









PgmWriter









Collaboration diagram for PgmWriter:





GreymapFile









GreymapWriter









PgmWriter









Public Member Functions



• PgmWriter (char const ∗name, ImageArray &data)

• virtual ∼PgmWriter (void)







Protected Member Functions



• virtual int writefmt (void)







8.46.1 Detailed Description



A PGM image file writer. Dimensions are known from the {ImageArray} object. Only

PGM version 5 is supported.

Definition at line 22 of file PgmWriter.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.46 PgmWriter Class Reference 245





8.46.2 Constructor & Destructor Documentation



8.46.2.1 PgmWriter::PgmWriter (char const ∗ name, ImageArray &

data) [inline]



Constructor. Only calls the mother class’ constructor to initialize the {ImageArray}

reference and set the offset if necessary.



Parameters:

name the file name

data the reference to the {ImageArray} object



Definition at line 33 of file PgmWriter.hh.





8.46.2.2 virtual PgmWriter::∼PgmWriter (void) [inline, virtual]



Destructor - does nothing.

Definition at line 37 of file PgmWriter.hh.





8.46.3 Member Function Documentation



8.46.3.1 virtual int PgmWriter::writefmt (void) [protected, virtual]



Write a PGM image file. This is the method that does the actual work. It will be called

by the {write ()} method.



Returns:

0 if successful, -1 on write error.



Implements GreymapWriter.

The documentation for this class was generated from the following file:



• PgmWriter.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

246 Class Documentation





8.47 PixmapFile Class Reference

#include

Inheritance diagram for PixmapFile:





PixmapFile









PixmapReader PixmapWriter









JpgReader PfcReader PpmReader JpgWriter PfcWriter PpmWriter









Collaboration diagram for PixmapFile:



ReferenceVector









ImageVector









FullVector RowVector ColumnVector





m_afull m_arow m_acol





Image





m_images





PixmapFile









Public Member Functions



• PixmapFile (char const ∗name, Image ∗images[ ], int channels)

• virtual ∼PixmapFile (void)

• clrmodel colormodel (void)

• void colormodel (clrmodel cm)

• int channels (void) const





Protected Member Functions



• void init (Image ∗images[ ])



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.47 PixmapFile Class Reference 247





Protected Attributes



• Image ∗∗ m_images

• int m_channels

• char const ∗ m_fname

• clrmodel m_cmodel





8.47.1 Detailed Description



An abstract image file. A framework to create readers and writers on any color images.

Definition at line 24 of file PixmapFile.hh.





8.47.2 Constructor & Destructor Documentation



8.47.2.1 PixmapFile::PixmapFile (char const ∗ name, Image ∗ images[ ], int

channels)



Constructor. Initializes internal fields and gets an {ImageArray} object that may al-

ready contain an image or will get one later.



Parameters:

name the file name

images the array of greyscale images for the values

channels the number of colors







8.47.2.2 virtual PixmapFile::∼PixmapFile (void) [virtual]



Destructor. Releases some memory.





8.47.3 Member Function Documentation



8.47.3.1 clrmodel PixmapFile::colormodel (void) [inline]



Returns the current color model.



Returns:

the current color model



Definition at line 44 of file PixmapFile.hh.

Referenced by PfcWriter::PfcWriter().



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

248 Class Documentation





8.47.3.2 void PixmapFile::colormodel (clrmodel cm) [inline]



Sets a new color model.



Parameters:

cm the new color model



Definition at line 47 of file PixmapFile.hh.





8.47.3.3 int PixmapFile::channels (void) const [inline]



Return the number of channels.



Returns:

the number of channels



Definition at line 51 of file PixmapFile.hh.





8.47.3.4 void PixmapFile::init (Image ∗ images[ ]) [protected]



internal initialization





8.47.4 Member Data Documentation



8.47.4.1 Image∗∗ PixmapFile::m_images [protected]



The color channels.

Definition at line 56 of file PixmapFile.hh.





8.47.4.2 int PixmapFile::m_channels [protected]



The number of channels (usually: colors).

Definition at line 58 of file PixmapFile.hh.





8.47.4.3 char const∗ PixmapFile::m_fname [protected]



The file name. The name of the file associated with this object.

Definition at line 60 of file PixmapFile.hh.





8.47.4.4 clrmodel PixmapFile::m_cmodel [protected]



Definition at line 62 of file PixmapFile.hh.

The documentation for this class was generated from the following file:



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.47 PixmapFile Class Reference 249





• PixmapFile.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

250 Class Documentation





8.48 PixmapReader Class Reference



#include

Inheritance diagram for PixmapReader:



PixmapFile









PixmapReader









JpgReader PfcReader PpmReader









Collaboration diagram for PixmapReader:



ReferenceVector









ImageVector









FullVector RowVector ColumnVector





m_afull m_arow m_acol





Image





m_images





PixmapFile









PixmapReader









Public Member Functions



• PixmapReader (char const ∗name, Image ∗images[ ], int channels)

• virtual ∼PixmapReader (void)

• virtual void read (void)







Protected Member Functions



• virtual int readfmt (void)=0



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.48 PixmapReader Class Reference 251





8.48.1 Detailed Description



An abstract color image reader. The image is being read putting its color channels into

separate greyscale image objects.

Definition at line 24 of file PixmapReader.hh.





8.48.2 Constructor & Destructor Documentation



8.48.2.1 PixmapReader::PixmapReader (char const ∗ name, Image ∗ images[ ],

int channels) [inline]



Constructor. Only calls the mother class’ constructor to initialize the {ImageArray}

reference.

Parameters:

name the file name

images the array of greyscale images for the values

channels the number of colors



Definition at line 37 of file PixmapReader.hh.





8.48.2.2 virtual PixmapReader::∼PixmapReader (void) [inline,

virtual]



Destructor - does nothing.

Definition at line 41 of file PixmapReader.hh.





8.48.3 Member Function Documentation



8.48.3.1 virtual void PixmapReader::read (void) [virtual]



Read the image. All steps independent of the file format will be performed, like testing

for file readability etc.



Exceptions:



invalid_argument invalid file format

ios_base::failure a read error has occured [not supported by all libraries, so even-

tually {invalid_argument} instead]





8.48.3.2 virtual int PixmapReader::readfmt (void) [protected, pure

virtual]



Read different file formats (abstract). This is the method to be implemented for every

image file format. It will be called by the {read ()} method.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

252 Class Documentation



Returns:

0 if successful, -1 on read error, -2 on file format error.



Implemented in JpgReader, PfcReader, and PpmReader.

The documentation for this class was generated from the following file:



• PixmapReader.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.49 PixmapWriter Class Reference 253





8.49 PixmapWriter Class Reference



#include

Inheritance diagram for PixmapWriter:



PixmapFile









PixmapWriter









JpgWriter PfcWriter PpmWriter









Collaboration diagram for PixmapWriter:



ReferenceVector









ImageVector









FullVector RowVector ColumnVector





m_afull m_arow m_acol





Image





m_images





PixmapFile









PixmapWriter









Public Member Functions



• PixmapWriter (char const ∗name, Image ∗images[ ], int channels)

• virtual ∼PixmapWriter (void)

• void write (void)







Protected Member Functions



• virtual int writefmt (void)=0



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

254 Class Documentation





8.49.1 Detailed Description



An abstract image writer. The image is being written putting its content from an array

of greyscale image objects into the file.

Definition at line 23 of file PixmapWriter.hh.





8.49.2 Constructor & Destructor Documentation



8.49.2.1 PixmapWriter::PixmapWriter (char const ∗ name, Image ∗ images[ ],

int channels) [inline]



Constructor. Only calls the mother class’ constructor to initialize the {ImageArray}

reference.



Parameters:

name the file name

images the array of greyscale images for the values

channels the number of colors



Definition at line 36 of file PixmapWriter.hh.





8.49.2.2 virtual PixmapWriter::∼PixmapWriter (void) [inline,

virtual]



Destructor - does nothing.

Definition at line 40 of file PixmapWriter.hh.





8.49.3 Member Function Documentation



8.49.3.1 void PixmapWriter::write (void)



Write the image. All steps independent of the file format will be performed, like testing

for file writeability etc.



Exceptions:



ios_base::failure a read error has occured [not supported by all libraries, so even-

tually {invalid_argument} instead]







8.49.3.2 virtual int PixmapWriter::writefmt (void) [protected, pure

virtual]



Write different file formats (abstract). This is the method to be implemented for every

image file format. It will be called by the {write ()} method.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.49 PixmapWriter Class Reference 255



Returns:

0 if successful, -1 on write error.



Implemented in JpgWriter, PfcWriter, and PpmWriter.

The documentation for this class was generated from the following file:



• PixmapWriter.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

256 Class Documentation





8.50 PpmReader Class Reference









#include

Inheritance diagram for PpmReader:









PixmapFile









PixmapReader









PpmReader









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.50 PpmReader Class Reference 257





Collaboration diagram for PpmReader:





ReferenceVector









ImageVector









FullVector RowVector ColumnVector





m_afull m_arow m_acol





Image





m_images





PixmapFile









PixmapReader









PpmReader









Public Member Functions



• PpmReader (char const ∗name, Image ∗images[ ])

• virtual ∼PpmReader (void)







Protected Member Functions



• virtual int readfmt (void)



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

258 Class Documentation





8.50.1 Detailed Description



A PPM file reader. Only PPMs version 6 are supported.

Definition at line 21 of file PpmReader.hh.





8.50.2 Constructor & Destructor Documentation



8.50.2.1 PpmReader::PpmReader (char const ∗ name, Image ∗ images[ ])

[inline]



Constructor. Only calls the mother class’ constructor to initialize the {ImageArray}

reference.



Parameters:

name the file name

images the array of greyscale images for the values



Definition at line 31 of file PpmReader.hh.





8.50.2.2 virtual PpmReader::∼PpmReader (void) [inline, virtual]



Destructor - does nothing.

Definition at line 35 of file PpmReader.hh.





8.50.3 Member Function Documentation



8.50.3.1 virtual int PpmReader::readfmt (void) [protected, virtual]



Read the PPM file format. This does the actual work of reading and parsing the image

file. It gets called by the {read ()} method.



Returns:

0 if successful, -1 on read error, -2 on file format error.



Implements PixmapReader.

The documentation for this class was generated from the following file:



• PpmReader.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.51 PpmWriter Class Reference 259





8.51 PpmWriter Class Reference









#include

Inheritance diagram for PpmWriter:









PixmapFile









PixmapWriter









PpmWriter









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

260 Class Documentation





Collaboration diagram for PpmWriter:





ReferenceVector









ImageVector









FullVector RowVector ColumnVector





m_afull m_arow m_acol





Image





m_images





PixmapFile









PixmapWriter









PpmWriter









Public Member Functions



• PpmWriter (char const ∗name, Image ∗images[ ])

• virtual ∼PpmWriter (void)







Protected Member Functions



• virtual int writefmt (void)



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.51 PpmWriter Class Reference 261





8.51.1 Detailed Description



A PPM image file writer. Dimensions are known from the {Image} object. Only PPM

version 6 is supported.

Definition at line 22 of file PpmWriter.hh.





8.51.2 Constructor & Destructor Documentation



8.51.2.1 PpmWriter::PpmWriter (char const ∗ name, Image ∗ images[ ])

[inline]



Constructor. Only calls the mother class’ constructor to initialize the {ImageArray}

reference and set the offset if necessary.



Parameters:

name the file name

images the array of greyscale images for the values



Definition at line 33 of file PpmWriter.hh.





8.51.2.2 virtual PpmWriter::∼PpmWriter (void) [inline, virtual]



Destructor - does nothing.

Definition at line 37 of file PpmWriter.hh.





8.51.3 Member Function Documentation



8.51.3.1 virtual int PpmWriter::writefmt (void) [protected, virtual]



Write a PPM image file. This is the method that does the actual work. It will be called

by the {write ()} method.



Returns:

0 if successful, -1 on write error.



Implements PixmapWriter.

The documentation for this class was generated from the following file:



• PpmWriter.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

262 Class Documentation





8.52 PyramidTransform Class Reference



#include

Inheritance diagram for PyramidTransform:



WaveletTransform









PyramidTransform









Collaboration diagram for PyramidTransform:





ReferenceVector









ImageVector









VectorPosition Filter FullVector RowVector ColumnVector





m_analow m_synthesisHigh

m_shpad

m_anahigh m_analysisHigh

m_apad m_afull m_arow m_acol

m_synhigh m_analysisLow

m_slpad

m_synlow m_synthesisLow





Wavelet FilterSet Image





m_buffer

m_wavelet m_filter

m_image





WaveletTransform









PyramidTransform









Public Member Functions



• PyramidTransform (Image &img, FilterSet &fil)



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.52 PyramidTransform Class Reference 263





Protected Member Functions

• virtual void doanalysis (int steps)

• virtual void dosynthesis (int steps, int prevSteps=0)





8.52.1 Detailed Description



A Pyramid Transform. The transform is two-dimensional, it thus works on images.

Definition at line 23 of file PyramidTransform.hh.





8.52.2 Constructor & Destructor Documentation



8.52.2.1 PyramidTransform::PyramidTransform (Image & img, FilterSet &

fil) [inline]



Constructor. Calls the superclass’ constructor.



Parameters:

img the image

fil the filter (wavelet)



Definition at line 32 of file PyramidTransform.hh.





8.52.3 Member Function Documentation



8.52.3.1 virtual void PyramidTransform::doanalysis (int steps)

[protected, virtual]



Perform a Pyramid transform on the image.



Parameters:

steps the number of transform steps



Implements WaveletTransform.





8.52.3.2 virtual void PyramidTransform::dosynthesis (int steps, int prevSteps =

0) [protected, virtual]



Perform an inverse Pyramid transform on the image.



Parameters:

steps the number of inverse transform steps

prevSteps if greater than 0, the number of previous decomposition steps to as-

sume. This is necessary to reconstruct images that are not square and have

side lengths which are not powers of two.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

264 Class Documentation





Implements WaveletTransform.

The documentation for this class was generated from the following file:



• PyramidTransform.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.53 PyramidTree Class Reference 265





8.53 PyramidTree Class Reference

#include

Inheritance diagram for PyramidTree:



NTree











NTree









PyramidTree









Collaboration diagram for PyramidTree:



ReferenceVector









ImageVector









VectorPosition Filter FullVector RowVector ColumnVector





m_analow m_synthesisHigh

m_shpad

m_anahigh m_analysisHigh

m_apad m_afull m_arow m_acol

m_synhigh m_analysisLow

m_slpad

m_synlow m_synthesisLow





Type Wavelet FilterSet Image





m_buffer

m_data m_wavelet m_filter

m_image





CoeffInformation NTree WaveletTransform





m_data



m_children

NTree m_parent PyramidTransform





m_transform





PyramidTree









Public Member Functions

• PyramidTree (PyramidTransform &t, int y, int x, int position=-1, PyramidTree

∗parent=NULL, int generations=1)



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

266 Class Documentation





• ∼PyramidTree (void)

• void addGenerations (int depth)

• void moveTo (int y, int x, int position=-1, PyramidTree ∗parent=NULL)

• int depth (void)





Protected Member Functions

• void findChildPosition (int y, int x, int &resY, int &resX)

• void shiftBy (int shiftY, int shiftX)





Private Attributes

• PyramidTransform ∗ m_transform





8.53.1 Detailed Description



A class for pyramid trees. Rather relaxed attitude towards position checking; crashes

are avoided but errors not always flagged! Each node can have exactly 4 children.

Child #0 is the upper left, the children are stored linewise from there.

Definition at line 26 of file PyramidTree.hh.





8.53.2 Constructor & Destructor Documentation



8.53.2.1 PyramidTree::PyramidTree (PyramidTransform & t, int y, int x, int

position = -1, PyramidTree ∗ parent = NULL, int generations = 1)



Constructor, creates a tree from a transformed image at a given position and over a

depth of a given number of generations



Parameters:

t the transform

y the row in the image

x the col in the image

position the position in the parent node if applicable

parent a pointer to the parent node or NULL if root

generations the number of generations (including this node)



Exceptions:



invalid_argument if the transform levels are insufficient or the start position in

the image’s LL





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.53 PyramidTree Class Reference 267





8.53.2.2 PyramidTree::∼PyramidTree (void)



Destructor, does nothing (destruction done by parent class)





8.53.3 Member Function Documentation



8.53.3.1 void PyramidTree::addGenerations (int depth)



Create/replace a number of generations to this node according to position and sub-

band.



Exceptions:



invalid_argument if the subband depth is insufficient



Parameters:

depth the depth to recurse into (not counting this node)







8.53.3.2 void PyramidTree::moveTo (int y, int x, int position = -1,

PyramidTree ∗ parent = NULL)



"Move" the tree to a different position in the image by replacing the positions stored in

the leaves.



Parameters:

y the new row

x the new column

position the new position in the parent node (or -1 if no change)

parent the new parent node (or NULL if no change)







8.53.3.3 int PyramidTree::depth (void)



Return the current depth including this node



Returns:

the depth







8.53.3.4 void PyramidTree::findChildPosition (int y, int x, int & resY, int &

resX) [protected]



Find the upper left of the position for a new child



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

268 Class Documentation



Parameters:

y the row in the image

x the col in the image

resY the returned row

resX the returned col



Exceptions:



invalid_argument if (y,x) is in subband 1 or in LL







8.53.3.5 void PyramidTree::shiftBy (int shiftY, int shiftX) [protected]



Shift the stored positions in the node and all children by a given amount.



Parameters:

shiftY the number of rows by which to shift

shiftX the number of columns by which to shift





8.53.4 Member Data Documentation



8.53.4.1 PyramidTransform∗ PyramidTree::m_transform [private]



The transform (contains a reference to the image)

Definition at line 76 of file PyramidTree.hh.

The documentation for this class was generated from the following file:



• PyramidTree.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.54 RawReader Class Reference 269





8.54 RawReader Class Reference

#include

Inheritance diagram for RawReader:



GreymapFile









GreymapReader









RawReader









Collaboration diagram for RawReader:



GreymapFile









GreymapReader









RawReader









Public Member Functions

• RawReader (char const ∗name, ImageArray &data, int y=512, int

x=512, int offs=0)

• virtual ∼RawReader (void)

• void header (int offs)

• void cols (int cols)

• void rows (int rows)





Protected Member Functions

• virtual int readfmt (void)





Private Attributes

• int m_offset

• int m_xsize

• int m_ysize



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

270 Class Documentation





8.54.1 Detailed Description



A RAW file reader. Dimensions and a read offset can be specified through additional

arguments to the constructor or through some methods.

Definition at line 21 of file RawReader.hh.





8.54.2 Constructor & Destructor Documentation



8.54.2.1 RawReader::RawReader (char const ∗ name, ImageArray &

data, int y = 512, int x = 512, int offs = 0) [inline]



Constructor. Calls the mother class’ constructor to initialize the {ImageArray} refer-

ence and eventually sets the image dimensions plus offset.



Parameters:

name the file name

data the reference to the {ImageArray} object

y the number of rows

x the number of cols

offs the offset



Definition at line 39 of file RawReader.hh.

References cols(), header(), and rows().





8.54.2.2 virtual RawReader::∼RawReader (void) [inline, virtual]



Destructor - does nothing.

Definition at line 44 of file RawReader.hh.





8.54.3 Member Function Documentation



8.54.3.1 void RawReader::header (int offs) [inline]



Set the offset.



Parameters:

offs the new offset



Definition at line 49 of file RawReader.hh.

References m_offset.

Referenced by RawReader().



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.54 RawReader Class Reference 271





8.54.3.2 void RawReader::cols (int cols) [inline]



Set the horizontal size.



Parameters:

cols the new number of cols



Definition at line 53 of file RawReader.hh.

References m_xsize.

Referenced by RawReader().





8.54.3.3 void RawReader::rows (int rows) [inline]



Set the vertical size.



Parameters:

rows the new number of rows



Definition at line 57 of file RawReader.hh.

References m_ysize.

Referenced by RawReader().





8.54.3.4 virtual int RawReader::readfmt (void) [protected, virtual]



Read the RAW file format. This does the actual work of reading and parsing the image

file. It gets called by the {read ()} method.



Returns:

0 if successful, -1 on read error, -2 on file format error.



Implements GreymapReader.







8.54.4 Member Data Documentation



8.54.4.1 int RawReader::m_offset [private]



The read offset. Some files have some leading bytes containing no usable information.

If this applies this has a non-zero value.

Definition at line 62 of file RawReader.hh.

Referenced by header().



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

272 Class Documentation





8.54.4.2 int RawReader::m_xsize [private]



The horizontal size.

Definition at line 64 of file RawReader.hh.

Referenced by cols().





8.54.4.3 int RawReader::m_ysize [private]



The vertical size.

Definition at line 66 of file RawReader.hh.

Referenced by rows().

The documentation for this class was generated from the following file:



• RawReader.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.55 RawWriter Class Reference 273





8.55 RawWriter Class Reference

#include

Inheritance diagram for RawWriter:



GreymapFile









GreymapWriter









RawWriter









Collaboration diagram for RawWriter:



GreymapFile









GreymapWriter









RawWriter









Public Member Functions

• RawWriter (char const ∗name, ImageArray &data, int offs=0)

• virtual ∼RawWriter (void)

• void header (int offs)





Protected Member Functions

• virtual int writefmt (void)





Private Attributes

• int m_offset





8.55.1 Detailed Description



A RAW image file writer. Dimensions are known from the {ImageArray} object.

Definition at line 22 of file RawWriter.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

274 Class Documentation





8.55.2 Constructor & Destructor Documentation



8.55.2.1 RawWriter::RawWriter (char const ∗ name, ImageArray &

data, int offs = 0) [inline]



Constructor. Only calls the mother class’ constructor to initialize the {ImageArray}

reference and set the offset if necessary.



Parameters:

name the file name

data the reference to the {ImageArray} object

offs the offset



Definition at line 35 of file RawWriter.hh.

References header().





8.55.2.2 virtual RawWriter::∼RawWriter (void) [inline, virtual]



Destructor - does nothing.

Definition at line 39 of file RawWriter.hh.





8.55.3 Member Function Documentation



8.55.3.1 void RawWriter::header (int offs) [inline]



Set the offset.



Parameters:

offs the new offset



Definition at line 44 of file RawWriter.hh.

References m_offset.

Referenced by RawWriter().





8.55.3.2 virtual int RawWriter::writefmt (void) [protected, virtual]



Write a RAW image file. This is the method that does the actual work. It will be called

by the {write ()} method.



Returns:

0 if successful, -1 on write error.



Implements GreymapWriter.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.55 RawWriter Class Reference 275





8.55.4 Member Data Documentation



8.55.4.1 int RawWriter::m_offset [private]



The read offset. Some files have some leading bytes containing no usable information.

If this applies this has a non-zero value.

Definition at line 49 of file RawWriter.hh.

Referenced by header().

The documentation for this class was generated from the following file:



• RawWriter.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

276 Class Documentation





8.56 ReferenceVector Class Reference

#include

Inheritance diagram for ReferenceVector:



ReferenceVector









ImageVector









ColumnVector FullVector RowVector









Public Member Functions

• ReferenceVector (void)

• virtual ∼ReferenceVector (void)

• int root (void)

• virtual bool sanity (void)=0

• virtual void update (void)=0

• virtual void go (int root)=0

• virtual coeff at (int pos)=0

• virtual void to (int pos, coeff val)=0

• virtual int size (void)=0

• void copy (ReferenceVector &other)





Protected Attributes

• int m_vroot





8.56.1 Detailed Description



Pseudo-vector (abstract). Provide a two-dimensional array’s rows and columns as vec-

tors with array addressing.

Definition at line 23 of file ReferenceVector.hh.





8.56.2 Constructor & Destructor Documentation



8.56.2.1 ReferenceVector::ReferenceVector (void) [inline]



Constructor. Simple initialization.

Definition at line 29 of file ReferenceVector.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.56 ReferenceVector Class Reference 277





8.56.2.2 virtual ReferenceVector::∼ReferenceVector (void) [inline,

virtual]



Destructor. Does nothing.

Definition at line 33 of file ReferenceVector.hh.





8.56.3 Member Function Documentation



8.56.3.1 int ReferenceVector::root (void) [inline]



Returns the root.

Definition at line 36 of file ReferenceVector.hh.





8.56.3.2 virtual bool ReferenceVector::sanity (void) [pure virtual]



Checks integrity. If the array’s dimensions have been changed (resize operation) {false}

will be returned.

Implemented in ImageVector.





8.56.3.3 virtual void ReferenceVector::update (void) [pure virtual]



Updates the vector’s settings. This is necessary each time after the array has been

resized.

Implemented in ColumnVector, FullVector, ImageVector, and RowVector.





8.56.3.4 virtual void ReferenceVector::go (int root) [pure virtual]



Set new root. Depending of what concrete instance is the current row or col will be

set.



Exceptions:



invalid_argument a negative value was given for the new root



Parameters:

root the new root



Implemented in ColumnVector, FullVector, ImageVector, and RowVector.





8.56.3.5 virtual coeff ReferenceVector::at (int pos) [pure virtual]



Return a value (abstract). The value is taken from the vector’s position {pos}.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

278 Class Documentation



Parameters:

pos the position



Returns:

the value at that position



Implemented in ColumnVector, FullVector, ImageVector, and RowVector.

Referenced by copy().





8.56.3.6 virtual void ReferenceVector::to (int pos, coeff val) [pure

virtual]



Assign a value (abstract). A new value {val} is assigned to the vector’s position

{pos}.



Parameters:

pos the position

val the new value



Implemented in ColumnVector, FullVector, ImageVector, and RowVector.





8.56.3.7 virtual int ReferenceVector::size (void) [pure virtual]



Return the vector’s size (abstract). Depending on the concrete instance we will get the

associated array’s number of rows or cols.



Returns:

the vector’s size



Implemented in ColumnVector, FullVector, ImageVector, and RowVector.

Referenced by copy().





8.56.3.8 void ReferenceVector::copy (ReferenceVector & other) [inline]



Copy another vector’s content. If the vectors have different sizes only as much as

possible is being copied.



Parameters:

other the other vector



Definition at line 78 of file ReferenceVector.hh.

References at(), and size().



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.56 ReferenceVector Class Reference 279





8.56.4 Member Data Documentation



8.56.4.1 int ReferenceVector::m_vroot [protected]



The vector’s root. Depending on whether we’re a row or column vector (inherited

classes) this is either the vector’s row or col.

Definition at line 96 of file ReferenceVector.hh.

The documentation for this class was generated from the following file:



• ReferenceVector.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

280 Class Documentation





8.57 riff_struct Struct Reference

#include





Public Attributes

• uint8_t id [4]

• uint32_t len

• uint8_t wave_id [4]





8.57.1 Detailed Description



Definition at line 471 of file avilib.h.





8.57.2 Member Data Documentation



8.57.2.1 uint8_t riff_struct::id[4]



Definition at line 473 of file avilib.h.





8.57.2.2 uint32_t riff_struct::len



Definition at line 474 of file avilib.h.





8.57.2.3 uint8_t riff_struct::wave_id[4]



Definition at line 475 of file avilib.h.

The documentation for this struct was generated from the following file:



• avilib.h









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.58 RowVector Class Reference 281





8.58 RowVector Class Reference

#include

Inheritance diagram for RowVector:



ReferenceVector









ImageVector









RowVector









Collaboration diagram for RowVector:



ReferenceVector









ImageVector









RowVector









Public Member Functions

• RowVector (ImageArray ∗ar)

• virtual ∼RowVector (void)

• virtual void go (int root)

• virtual coeff at (int pos)

• virtual void to (int pos, coeff val)

• virtual int size (void)

• virtual void update (void)





Private Attributes

• int m_rbase





8.58.1 Detailed Description



Row-reference. A reference to a two-dimensional array’s row.

Definition at line 21 of file RowVector.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

282 Class Documentation





8.58.2 Constructor & Destructor Documentation



8.58.2.1 RowVector::RowVector (ImageArray ∗ ar) [inline]



Constructor. As we’ve got no default constructor we need to call the mother’s class’

constructor here...

Definition at line 28 of file RowVector.hh.

References go().





8.58.2.2 virtual RowVector::∼RowVector (void) [inline, virtual]



Destructor. Does nothing.

Definition at line 30 of file RowVector.hh.





8.58.3 Member Function Documentation



8.58.3.1 virtual void RowVector::go (int root) [virtual]



Sets a new root. In this context this “new root” means a new row.



Exceptions:



invalid_argument the new root is greater than the number of rows



Parameters:

root the new row



Reimplemented from ImageVector.

Referenced by RowVector().





8.58.3.2 virtual coeff RowVector::at (int pos) [virtual]



Get a value. Return the value at a given column from the current row.



Exceptions:



invalid_argument a negative value was given for the new root



Parameters:

pos the column



Returns:

the value



Implements ImageVector.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.58 RowVector Class Reference 283





8.58.3.3 virtual void RowVector::to (int pos, coeff val) [virtual]



Assigns a new value. Sets a new value at a given column from the current row.



Parameters:

pos the column

val the new value



Implements ImageVector.





8.58.3.4 virtual int RowVector::size (void) [virtual]



The vector’s size. Returns the vector’s size (the number of cols)



Returns:

the number of cols



Implements ImageVector.





8.58.3.5 virtual void RowVector::update (void) [virtual]



Updates the vector’s settings. This is necessary each time after the array has been

resized.

Reimplemented from ImageVector.





8.58.4 Member Data Documentation



8.58.4.1 int RowVector::m_rbase [private]



Internal value. The base to compute the row’s entries (row∗xsize)

Definition at line 61 of file RowVector.hh.

The documentation for this class was generated from the following file:



• RowVector.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

284 Class Documentation





8.59 StandardTransform Class Reference



#include

Inheritance diagram for StandardTransform:



WaveletTransform









StandardTransform









Collaboration diagram for StandardTransform:





ReferenceVector









ImageVector









VectorPosition Filter FullVector RowVector ColumnVector





m_analow m_synthesisHigh

m_shpad

m_anahigh m_analysisHigh

m_apad m_afull m_arow m_acol

m_synhigh m_analysisLow

m_slpad

m_synlow m_synthesisLow





Wavelet FilterSet Image





m_buffer

m_wavelet m_filter

m_image





WaveletTransform









StandardTransform









Public Member Functions



• StandardTransform (Image &img, FilterSet &fil)



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.59 StandardTransform Class Reference 285





Protected Member Functions

• virtual void doanalysis (int steps)

• virtual void dosynthesis (int steps, int prevSteps=0)





8.59.1 Detailed Description



A Standard Transform. The transform is two-dimensional, it thus works on images.

Definition at line 22 of file StandardTransform.hh.





8.59.2 Constructor & Destructor Documentation



8.59.2.1 StandardTransform::StandardTransform (Image & img, FilterSet &

fil) [inline]



Constructor. Calls the superclass’ constructor.



Parameters:

img the image

fil the filter (wavelet)



Definition at line 31 of file StandardTransform.hh.





8.59.3 Member Function Documentation



8.59.3.1 virtual void StandardTransform::doanalysis (int steps)

[protected, virtual]



Perform a Standard transform on the image. If a symmetric filter is used, an image

can’t get fully decomposed. In this case the maximum number of steps is automatically

limited to level - 1.



Parameters:

steps the number of transform steps



Implements WaveletTransform.





8.59.3.2 virtual void StandardTransform::dosynthesis (int steps, int prevSteps =

0) [protected, virtual]



Perform an inverse Standard transform on the image.



Parameters:

steps the number of inverse transform steps



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

286 Class Documentation





prevSteps if greater than 0, the number of previous decomposition steps to as-

sume. This is necessary to reconstruct images that are not square and have

side lengths which are not powers of two.



Implements WaveletTransform.

The documentation for this class was generated from the following file:



• StandardTransform.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.60 StillImage Class Reference 287





8.60 StillImage Class Reference

#include

Inheritance diagram for StillImage:



Image









StillImage









VideoFrame









Collaboration diagram for StillImage:



ReferenceVector









ImageVector









FullVector RowVector ColumnVector





m_afull m_arow m_acol





Image









StillImage









Public Member Functions

• StillImage (int rows=0, int cols=0)

• StillImage (ImageArray &ia)

• virtual ∼StillImage (void)

• virtual coeff at (int y, int x) const

• virtual coeff at (int abs) const

• virtual void to (int y, int x, coeff val)

• virtual void to (int abs, coeff val)

• virtual int abs (int y, int x) const

• virtual bool epsilons (Image &si, coeff epsilon) const

• virtual bool equals (Image &si) const

• virtual void read (char const ∗fname, int rawy=0, int rawx=0)

• virtual void read (char const ∗fname, filetype ftype, int rawy=0, int rawx=0)



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

288 Class Documentation





• virtual void write (char const ∗fname, bool beautify=false)

• virtual void write (char const ∗fname, filetype ftype, bool beautify=false)

• virtual Image ∗ clone (void) const

• virtual coeff smax (int fromY=0, int fromX=0, int toY=-1, int toX=-1) const

• virtual coeff smin (int fromY=0, int fromX=0, int toY=-1, int toX=-1) const

• virtual coeff amax (int fromY=0, int fromX=0, int toY=-1, int toX=-1) const

• virtual coeff amin (int fromY=0, int fromX=0, int toY=-1, int toX=-1) const

• virtual coeff saverage (int fromY=0, int fromX=0, int toY=-1, int toX=-1) const

• virtual coeff aaverage (int fromY=0, int fromX=0, int toY=-1, int toX=-1) const

• virtual void resize (int rows, int cols)





Static Public Member Functions



• static Image ∗ makeEmpty (int rows=0, int cols=0)





Protected Member Functions



• StillImage (bool dummy)

• virtual Image ∗ mkImage (int rows=0, int cols=0) const





Protected Attributes



• ImageArray ∗ m_coeffs

• bool m_coeffsMustDelete





8.60.1 Detailed Description



A still image. A (grey-scale) two-dimensional image.

Definition at line 21 of file StillImage.hh.





8.60.2 Constructor & Destructor Documentation



8.60.2.1 StillImage::StillImage (int rows = 0, int cols = 0)



Constructor. Creates an empty image with given dimensions.



Parameters:

rows the number of rows

cols the number of cols



Referenced by makeEmpty().



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.60 StillImage Class Reference 289





8.60.2.2 StillImage::StillImage (ImageArray & ia)



Constructor. Imports an existing {ImageArray} object. The array will be dupli-

cated.



Parameters:

ia The source array







8.60.2.3 virtual StillImage::∼StillImage (void) [virtual]



Destructor. Deallocates objects.





8.60.2.4 StillImage::StillImage (bool dummy) [inline, protected]



Dummy constructor, only to be called by derived classes.



Parameters:

dummy only distinguishes this constructor from the others



Definition at line 256 of file StillImage.hh.





8.60.3 Member Function Documentation



8.60.3.1 virtual coeff StillImage::at (int y, int x) const [inline, virtual]



Get a value. Returns the value at row {y} and col {x}.



Parameters:

y the row

x the col



Returns:

the value



Implements Image.

Definition at line 47 of file StillImage.hh.

References m_coeffs.





8.60.3.2 virtual coeff StillImage::at (int abs) const [inline, virtual]



Get a value. Returns the value at absolute position {abs}.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

290 Class Documentation



Parameters:

abs the position



Returns:

the value





Implements Image.

Definition at line 53 of file StillImage.hh.

References m_coeffs.





8.60.3.3 virtual void StillImage::to (int y, int x, coeff val) [inline,

virtual]



Set a value. Sets the value at row {y} and col {x}.



Parameters:

y the row

x the col

val the new value



Returns:

the value





Implements Image.

Definition at line 63 of file StillImage.hh.

References m_coeffs.





8.60.3.4 virtual void StillImage::to (int abs, coeff val) [inline, virtual]



Set a value. Sets the value at absolute position {abs}.



Parameters:

abs the position

val the new value



Implements Image.

Definition at line 69 of file StillImage.hh.

References m_coeffs.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.60 StillImage Class Reference 291





8.60.3.5 virtual int StillImage::abs (int y, int x) const [inline, virtual]



Return the absolute offset of a position.



Parameters:

y the position’s row

x the position’s col



Returns:

the absolute offset



Implements Image.

Definition at line 78 of file StillImage.hh.

References m_coeffs.





8.60.3.6 virtual bool StillImage::epsilons (Image & si, coeff epsilon) const

[virtual]



Rough comparison. See if two images are similar according to a given {epsilon} (im-

portant for floating-point comparisons).



Parameters:

si the other {Image} object

epsilon the epsilon



Returns:

if both are identical: {true}, else {false}



Implements Image.





8.60.3.7 virtual bool StillImage::equals (Image & si) const [virtual]



Compares two still images. Return {true} if both are equal.



Parameters:

si The other {StillImage} object



Returns:

if equals: {true}, else {false}



Implements Image.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

292 Class Documentation





8.60.3.8 virtual void StillImage::read (char const ∗ fname, int rawy = 0, int

rawx = 0) [virtual]



Read an image. Reads an image from a file guessing the file type from the file name’s

extension. Currently PGM, RAW and PFI are supported.



Exceptions:



invalid_argument the file type is either not supported or could not be determined

from the given file name



Parameters:

fname the file name, if {NULL}, then {stdin}

rawy the number of rows (only needed for RAW format)

rawx the number of cols (only needed for RAW format)



Implements Image.





8.60.3.9 virtual void StillImage::read (char const ∗ fname, filetype ftype, int

rawy = 0, int rawx = 0) [virtual]



Read an image. Reads an image from a file using the specified file type. Currently

PGM, RAW and PFI are supported.



Exceptions:



invalid_argument the file type is either not supported or could not be determined

from the given file name



Parameters:

fname the file name, if {NULL}, then {stdin}

ftype the file type

rawy the number of rows (only needed for RAW format)

rawx the number of cols (only needed for RAW format)



Implements Image.





8.60.3.10 virtual void StillImage::write (char const ∗ fname, bool beautify =

false) [virtual]



Write an image (abstract). Writes an image to a file guessing the file type from the file

name’s extension.

Parameters:

fname the file name, if {NULL}, then {stdout}

beautify beautify images that have not had more analysis than synthesis steps?



Implements Image.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.60 StillImage Class Reference 293





8.60.3.11 virtual void StillImage::write (char const ∗ fname, filetype ftype, bool

beautify = false) [virtual]



Write an image (abstract). Writes an image to a file using the specified file type.



Parameters:

ftype the file type

fname the file name, if {NULL}, then {stdout}

beautify beautify images that have not had more analysis than synthesis steps?



Implements Image.





8.60.3.12 virtual Image∗ StillImage::clone (void) const [virtual]



Produce a copy. Every dynamically object will be cloned rather than passing on the

reference.



Returns:

the new, copied object.



Implements Image.

Reimplemented in VideoFrame.





8.60.3.13 static Image∗ StillImage::makeEmpty (int rows = 0, int cols = 0)

[inline, static]



Create an empty StillImage.



Parameters:

rows the number of rows

cols the number of cols



Returns:

the new image



Definition at line 156 of file StillImage.hh.

References Image::cols(), Image::rows(), and StillImage().





8.60.3.14 virtual coeff StillImage::smax (int fromY = 0, int fromX = 0, int toY =

-1, int toX = -1) const [inline, virtual]



Returns the maximum value in a region. Signs will be considered.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

294 Class Documentation



Parameters:

fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower image border)

toX the second point’s col (-1 if right image border)



Returns:

the maximum



Implements Image.

Definition at line 166 of file StillImage.hh.

References m_coeffs.





8.60.3.15 virtual coeff StillImage::smin (int fromY = 0, int fromX = 0, int toY =

-1, int toX = -1) const [inline, virtual]



Returns the maximum absolute value in a region. Signs will be discarded.



Parameters:

fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower image border)

toX the second point’s col (-1 if right image border)



Returns:

the maximum



Implements Image.

Definition at line 177 of file StillImage.hh.

References m_coeffs.





8.60.3.16 virtual coeff StillImage::amax (int fromY = 0, int fromX = 0, int toY

= -1, int toX = -1) const [inline, virtual]



Returns the maximum absolute value in a region. Signs will be discarded.



Parameters:

fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower image border)

toX the second point’s col (-1 if right image border)



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.60 StillImage Class Reference 295



Returns:

the maximum



Implements Image.

Definition at line 188 of file StillImage.hh.

References m_coeffs.





8.60.3.17 virtual coeff StillImage::amin (int fromY = 0, int fromX = 0, int toY =

-1, int toX = -1) const [inline, virtual]



Returns the minimum absolute value in a region. Signs will be discarded.



Parameters:

fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower image border)

toX the second point’s col (-1 if right image border)



Returns:

the minimum



Implements Image.

Definition at line 199 of file StillImage.hh.

References m_coeffs.





8.60.3.18 virtual coeff StillImage::saverage (int fromY = 0, int fromX = 0, int

toY = -1, int toX = -1) const [inline, virtual]



Return the average color for a rectangular region inside the image drawn from one

point within and the second point just outside the region. The coefficients’ signedness

will be considered.

Parameters:

fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower image border)

toX the second point’s col (-1 if right image border)



Returns:

the average color



Implements Image.

Definition at line 211 of file StillImage.hh.

References m_coeffs.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

296 Class Documentation





8.60.3.19 virtual coeff StillImage::aaverage (int fromY = 0, int fromX = 0, int

toY = -1, int toX = -1) const [inline, virtual]



Return the average color for a rectangular region inside the image drawn from one

point within and the second point just outside the region. The coefficients’ signedness

will be discarded.



Parameters:

fromY the first point’s row

fromX the first point’s col

toY the second point’s row (-1 if lower image border)

toX the second point’s col (-1 if right image border)



Returns:

the average color



Implements Image.

Definition at line 223 of file StillImage.hh.

References m_coeffs.





8.60.3.20 virtual void StillImage::resize (int rows, int cols) [virtual]



Resize the image’s x/y dimensions. The old values will remain as far as they fit in the

new dimensions. The new dimensions must all be greater than zero.



Exceptions:



invalid_argument one or both dimensions are either negative or zero



Parameters:

rows the new number of rows

cols the new number of cols



Implements Image.





8.60.3.21 virtual Image∗ StillImage::mkImage (int rows = 0, int cols = 0) const

[protected, virtual]



Factory method to get a new instance of a given size filled with zeroes.



Parameters:

rows the number of rows

cols the number of cols



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.60 StillImage Class Reference 297



Returns:

the new image



Implements Image.





8.60.4 Member Data Documentation



8.60.4.1 ImageArray∗ StillImage::m_coeffs [protected]



The image values. The image values are stored in a two-dimensional array.

Definition at line 259 of file StillImage.hh.

Referenced by aaverage(), abs(), amax(), amin(), at(), saverage(), smax(), smin(), and

to().





8.60.4.2 bool StillImage::m_coeffsMustDelete [protected]



This is true if the ‘m_coeffs’ member variable is private to the object and must therefore

be deleted at object destruction

Definition at line 263 of file StillImage.hh.

The documentation for this class was generated from the following file:



• StillImage.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

298 Class Documentation





8.61 track_s Struct Reference

#include

Collaboration diagram for track_s:



_avistdindex_entry





aIndex





_avisuperindex_entry _avistdindex_chunk





aIndex stdindex





_avisuperindex_chunk audio_index_entry





audio_superindex audio_index





track_s









Public Attributes

• long a_fmt

• long a_chans

• long a_rate

• long a_bits

• long mp3rate

• long a_vbr

• long padrate

• long audio_strn

• off_t audio_bytes

• long audio_chunks

• char audio_tag [4]

• long audio_posc

• long audio_posb

• off_t a_codech_off

• off_t a_codecf_off

• audio_index_entry ∗ audio_index

• avisuperindex_chunk ∗ audio_superindex





8.61.1 Detailed Description



Definition at line 193 of file avilib.h.





8.61.2 Member Data Documentation



8.61.2.1 long track_s::a_fmt



Definition at line 196 of file avilib.h.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.61 track_s Struct Reference 299





8.61.2.2 long track_s::a_chans



Definition at line 197 of file avilib.h.





8.61.2.3 long track_s::a_rate



Definition at line 198 of file avilib.h.





8.61.2.4 long track_s::a_bits



Definition at line 199 of file avilib.h.





8.61.2.5 long track_s::mp3rate



Definition at line 200 of file avilib.h.





8.61.2.6 long track_s::a_vbr



Definition at line 201 of file avilib.h.





8.61.2.7 long track_s::padrate



Definition at line 202 of file avilib.h.





8.61.2.8 long track_s::audio_strn



Definition at line 204 of file avilib.h.





8.61.2.9 off_t track_s::audio_bytes



Definition at line 205 of file avilib.h.





8.61.2.10 long track_s::audio_chunks



Definition at line 206 of file avilib.h.





8.61.2.11 char track_s::audio_tag[4]



Definition at line 208 of file avilib.h.





8.61.2.12 long track_s::audio_posc



Definition at line 209 of file avilib.h.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

300 Class Documentation





8.61.2.13 long track_s::audio_posb



Definition at line 210 of file avilib.h.





8.61.2.14 off_t track_s::a_codech_off



Definition at line 212 of file avilib.h.





8.61.2.15 off_t track_s::a_codecf_off



Definition at line 213 of file avilib.h.





8.61.2.16 audio_index_entry∗ track_s::audio_index



Definition at line 215 of file avilib.h.





8.61.2.17 avisuperindex_chunk∗ track_s::audio_superindex



Definition at line 216 of file avilib.h.

The documentation for this struct was generated from the following file:



• avilib.h









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.62 VectorPosition Class Reference 301





8.62 VectorPosition Class Reference

#include

Inheritance diagram for VectorPosition:



VectorPosition









MirrorPosition PeriodicPosition









Public Member Functions



• VectorPosition (void)

• VectorPosition (int newsize)

• virtual ∼VectorPosition (void)

• void size (int newsize)

• int size (void)

• int pos (int position)

• int pos (int position, int length)

• int pos (int position, int start, int length)

• virtual int pos (int position, int start, int end, int &sign)=0

• void setsymm (bool symm)

• bool issymm (void)





Protected Attributes



• int m_vsize

• bool m_symmetry





8.62.1 Detailed Description



A Vector index (abstract). Performs symmetric, periodic and whatever extensions to a

vector or a part of it.

Definition at line 23 of file VectorPosition.hh.





8.62.2 Constructor & Destructor Documentation



8.62.2.1 VectorPosition::VectorPosition (void)



Constructor. Sets standard values.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

302 Class Documentation





8.62.2.2 VectorPosition::VectorPosition (int newsize)



Constructor. Sets the real vector size to be used if not passed on to pos () method.



Parameters:

newsize the size







8.62.2.3 virtual VectorPosition::∼VectorPosition (void) [inline,

virtual]



Destructor. Does nothing.

Definition at line 36 of file VectorPosition.hh.





8.62.3 Member Function Documentation



8.62.3.1 void VectorPosition::size (int newsize) [inline]



Set a new size.



Parameters:

newsize the new size



Definition at line 41 of file VectorPosition.hh.

References m_vsize.





8.62.3.2 int VectorPosition::size (void) [inline]



Return the current size.



Returns:

the current size



Definition at line 46 of file VectorPosition.hh.

References m_vsize.





8.62.3.3 int VectorPosition::pos (int position) [inline]



Calculate real position. If a position is greater than the size or less than zero we mirror

the position back into range.



Parameters:

position the requested position



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.62 VectorPosition Class Reference 303



Returns:

the new position





Definition at line 54 of file VectorPosition.hh.

References m_vsize.

Referenced by pos().





8.62.3.4 int VectorPosition::pos (int position, int length) [inline]



Calculate real position assuming a given vector length. If a position is greater than the

assumed size or less than zero we mirror the position back into range.



Parameters:

position the requested position

length the assumed length



Returns:

the new position





Definition at line 67 of file VectorPosition.hh.

References pos().





8.62.3.5 int VectorPosition::pos (int position, int start, int length) [inline]



Calculate real position assuming a given vector start and length. If a position is greater

than the assumed size or less than the assumed start position we mirror the position

back into range.



Parameters:

position the requested position

start the assumed start

length the assumed length



Returns:

the new position





Definition at line 82 of file VectorPosition.hh.

References pos().



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

304 Class Documentation





8.62.3.6 virtual int VectorPosition::pos (int position, int start, int end, int &

sign) [pure virtual]



Calculate real position assuming a given vector start and length. If a position is greater

than the assumed size or less than the assumed start position we mirror the position

back into range.

Parameters:

position the requested position

start the assumed start

end the assumed end point

sign set to -1 if a sign change has taken place



Returns:

the new position



Implemented in MirrorPosition, and PeriodicPosition.





8.62.3.7 void VectorPosition::setsymm (bool symm) [inline]



Set symmetry property. If set we get a sign change with every half period.

Parameters:

symm if symmetric: {true}



Definition at line 105 of file VectorPosition.hh.

References m_symmetry.





8.62.3.8 bool VectorPosition::issymm (void) [inline]



Return the symmetry settings.

Returns:

if symmetric sign change occurs: {true} else {false}



Definition at line 110 of file VectorPosition.hh.

References m_symmetry.





8.62.4 Member Data Documentation



8.62.4.1 int VectorPosition::m_vsize [protected]



The default vector size.

Definition at line 114 of file VectorPosition.hh.

Referenced by pos(), and size().



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.62 VectorPosition Class Reference 305





8.62.4.2 bool VectorPosition::m_symmetry [protected]



The symmetric sign change setting.

Definition at line 116 of file VectorPosition.hh.

Referenced by issymm(), and setsymm().

The documentation for this class was generated from the following file:



• VectorPosition.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

306 Class Documentation





8.63 video_index_entry Struct Reference

#include





Public Attributes

• off_t key

• off_t pos

• off_t len





8.63.1 Detailed Description



Definition at line 119 of file avilib.h.





8.63.2 Member Data Documentation



8.63.2.1 off_t video_index_entry::key



Definition at line 121 of file avilib.h.





8.63.2.2 off_t video_index_entry::pos



Definition at line 122 of file avilib.h.





8.63.2.3 off_t video_index_entry::len



Definition at line 123 of file avilib.h.

The documentation for this struct was generated from the following file:



• avilib.h









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.64 VideoArray Class Template Reference 307





8.64 VideoArray Class Template Reference

#include

Inheritance diagram for VideoArray:



ImageArray









VideoArray











VideoArray









Collaboration diagram for VideoArray:



T





m_ar





ImageArray









VideoArray









Public Member Functions

• VideoArray (int rows, int cols, int frames)

• VideoArray (int rows, int cols, int frames, const VideoArray ∗v)

• virtual ∼VideoArray (void)

• void current (int frame)

• int current (void)

• int frames (void) const

• T at (int y, int x) const

• virtual T at (int abs) const

• void to (int y, int x, T val)

• virtual void to (int abs, T val)

• virtual int abs (int y, int x) const

• bool epsilonsFrames (int f1, int f2, T epsilon) const

• bool equalsFrames (int f1, int f2) const

• virtual bool epsilons (ImageArray &ia, T epsilon) const

• virtual void resize (int rows, int cols)

• virtual void reframe (int frames, bool keephead=true)



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

308 Class Documentation





• virtual void import (int rows, int cols, int frames, T ∗array)

• virtual void import (int rows, int cols, T ∗array)

• virtual VideoArray ∗ cloneVideo (void) const

• virtual ImageArray ∗ clone (void) const

• virtual void copy (ImageArray &ia)







Protected Member Functions



• bool epsilonsVideo (VideoArray &va, T epsilon) const







Protected Attributes



• int m_frames

• int m_xyzsize

• int m_current

• int m_offset







8.64.1 Detailed Description



template class VideoArray



A two-dimensional array wrapper. This allows us to access the video’s pixels or coef-

ficients and provides some utility methods. It is the main working horse for the Video

framework.

Definition at line 23 of file VideoArray.hh.







8.64.2 Constructor & Destructor Documentation



8.64.2.1 template VideoArray::VideoArray (int rows, int cols,

int frames)



Constructor. Sets the dimension and allocates space. A size of zero is allowed, negative

values not.



Parameters:

rows the vertical size

cols the horizontal size

frames the number of frames





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.64 VideoArray Class Template Reference 309





8.64.2.2 template VideoArray::VideoArray (int rows, int cols,

int frames, const VideoArray ∗ v)



8.64.2.3 template virtual VideoArray::∼VideoArray (void)

[virtual]



Destructor. Releases allocated memory.





8.64.3 Member Function Documentation



8.64.3.1 template void VideoArray::current (int frame)



Sets the current frame. Valid values are 0..n-1.



Parameters:

frame the current frame



Exceptions:



invalid_argument the new frame is out of bounds







8.64.3.2 template int VideoArray::current (void) [inline]



Returns the number of the current frame. Counting starts from zero.



Returns:

the number of the current frame.



Definition at line 49 of file VideoArray.hh.





8.64.3.3 template int VideoArray::frames (void) const

[inline]



Returns the number of frames



Returns:

the number of frames



Definition at line 54 of file VideoArray.hh.





8.64.3.4 template T VideoArray::at (int y, int x) const

[inline]



Returns the value at (x,y).



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

310 Class Documentation



Parameters:

y the row

x the col



Returns:

the value



Reimplemented from ImageArray.

Definition at line 63 of file VideoArray.hh.





8.64.3.5 template virtual T VideoArray::at (int abs) const

[inline, virtual]



Returns the current frame’s {n}th value.



Parameters:

abs the offset from the array start



Returns:

the value



Reimplemented from ImageArray.

Definition at line 69 of file VideoArray.hh.





8.64.3.6 template void VideoArray::to (int y, int x, T val)

[inline]



Sets the value at (x,y).



Parameters:

y the row

x the col

val the value



Reimplemented from ImageArray.

Definition at line 79 of file VideoArray.hh.





8.64.3.7 template virtual void VideoArray::to (int abs, T val)

[inline, virtual]



Sets the array’s {n}th value.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.64 VideoArray Class Template Reference 311



Parameters:

abs the offset from the array start

val the value



Reimplemented from ImageArray.

Definition at line 85 of file VideoArray.hh.





8.64.3.8 template virtual int VideoArray::abs (int y, int x)

const [inline, virtual]



Return the absolute offset of a position.



Parameters:

y the position’s row

x the position’s col



Returns:

the absolute offset



Reimplemented from ImageArray.

Definition at line 93 of file VideoArray.hh.

Referenced by VideoArray::at(), and VideoArray::to().





8.64.3.9 template bool VideoArray::epsilonsFrames (int f1,

int f2, T epsilon) const



Rough comparison. See if this and another frame are similar according to a given

{epsilon} (important for floating-point comparisons).



Exceptions:



invalid_argument one of the frames is out of bounds



Parameters:

f1 the first frame

f2 the second frame

epsilon the epsilon



Returns:

if both are identical: {true}, else {false}





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

312 Class Documentation





8.64.3.10 template bool VideoArray::equalsFrames (int f1, int

f2) const



Exact comparison. See if two frames are similar.



Exceptions:



invalid_argument one of the frames is out of bounds



Parameters:

f1 the first frame

f2 the second frame if both are identical: {true}, else {false}







8.64.3.11 template virtual bool VideoArray::epsilons

(ImageArray & ia, T epsilon) const [virtual]



Rough comparison. See if this and another video or the current and another frame

are similar according to a given {epsilon} (important for floating-point comparisons).

Whether the argument will be treated as a video or a frame depends on its type.



Parameters:

ia the other {ImageArray} object

epsilon the epsilon



Returns:

if both are identical: {true}, else {false}



Reimplemented from ImageArray.





8.64.3.12 template virtual void VideoArray::resize (int rows,

int cols) [virtual]



Resize the array. The old values will be copied to the new dimension as far as they fit

in. The new dimensions must all be greater than zero.



Exceptions:



invalid_argument one or both dimensions are either negative or zero



Parameters:

rows the new number of rows

cols the new number of cols



Reimplemented from ImageArray.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.64 VideoArray Class Template Reference 313





8.64.3.13 template virtual void VideoArray::reframe (int

frames, bool keephead = true) [virtual]



Sets new number of frames. The old frames will be copied to the new ones as far as

they fit in. The new number must be greater than zero.



Exceptions:



invalid_argument the new number of frames is either negative or zero



Parameters:

frames the new number of frames.

keephead if shrinking the video, frames will be deleted at the end.







8.64.3.14 template virtual void VideoArray::import (int rows,

int cols, int frames, T ∗ array) [virtual]



Import a raw array. The new dimensions and the new array will be stored discarding

the old ones.



Parameters:

rows the new number of rows

cols the new number of cols

frames the new number of frames

array the new array







8.64.3.15 template virtual void VideoArray::import (int rows,

int cols, T ∗ array) [virtual]



This method cannot be used on videos and will throw an invalid_argument.



Parameters:

rows the new number of rows

cols the new number of cols

array the new array



Exceptions:



invalid_argument always



Reimplemented from ImageArray.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

314 Class Documentation





8.64.3.16 template virtual VideoArray∗ VideoArray::cloneVideo (void) const [virtual]



Create a copy of the whole video. All frames will be duplicated rather than the refer-

ences.

Returns:

the new object





8.64.3.17 template virtual ImageArray∗ VideoArray::clone (void) const [virtual]



Create a copy of the current frame. All frames will be duplicated rather than the refer-

ences.

Returns:

the new object



Reimplemented from ImageArray.





8.64.3.18 template virtual void VideoArray::copy

(ImageArray & ia) [virtual]



Copy from a different array. This includes resizing and reframing if necessary.



Exceptions:



invalid_argument if the other object is not a VideoArray.



Parameters:

ia the other array



Reimplemented from ImageArray.





8.64.3.19 template bool VideoArray::epsilonsVideo

(VideoArray & va, T epsilon) const [protected]



Rough comparison. See if this and another video are similar according to a given

{epsilon} (important for floating-point comparisons). Called by ‘epsilons()’.



Parameters:

va the other {ImageArray} object

epsilon the epsilon



Returns:

if both are identical: {true}, else {false}



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.64 VideoArray Class Template Reference 315





8.64.4 Member Data Documentation



8.64.4.1 template int VideoArray::m_frames [protected]



The video’s number of frames.

Definition at line 192 of file VideoArray.hh.

Referenced by VideoArray::frames().





8.64.4.2 template int VideoArray::m_xyzsize [protected]



The video’s total size.

Definition at line 194 of file VideoArray.hh.





8.64.4.3 template int VideoArray::m_current [protected]



The video’s current frame number.

Definition at line 196 of file VideoArray.hh.

Referenced by VideoArray::current().





8.64.4.4 template int VideoArray::m_offset [protected]



The offset in the array to the current frame.

Definition at line 198 of file VideoArray.hh.

Referenced by VideoArray::abs(), VideoArray::at(), and

VideoArray::to().

The documentation for this class was generated from the following file:



• VideoArray.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

316 Class Documentation





8.65 VideoFile Class Reference



#include

Inheritance diagram for VideoFile:



VideoFile









VideoReader VideoWriter









AviReader VidReader AviWriter VidWriter









Public Member Functions



• VideoFile (char const ∗name, VideoArray ∗arrays[ ], int channels, int

frames)

• virtual ∼VideoFile (void)

• clrmodel colormodel (void)

• void colormodel (clrmodel cm)

• int channels (void) const

• int frames (void) const

• clrmodel colormodel (void) const





Protected Member Functions



• void init (VideoArray ∗videos[ ])





Protected Attributes



• VideoArray ∗∗ m_arrays

• int m_channels

• char const ∗ m_fname

• clrmodel m_cmodel

• int m_frames





8.65.1 Detailed Description



An abstract image file. A framework to create readers and writers on any color images.

Definition at line 24 of file VideoFile.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.65 VideoFile Class Reference 317





8.65.2 Constructor & Destructor Documentation



8.65.2.1 VideoFile::VideoFile (char const ∗ name, VideoArray ∗

arrays[ ], int channels, int frames)



Constructor. Initializes internal fields and gets an {ImageArray} object that may al-

ready contain an image or will get one later.



Parameters:

name the file name

arrays the array of video arrays for the values

channels the number of colors

frames the number of frames





8.65.2.2 virtual VideoFile::∼VideoFile (void) [virtual]



Destructor. Releases some memory.





8.65.3 Member Function Documentation



8.65.3.1 clrmodel VideoFile::colormodel (void) [inline]



Returns the current color model.



Returns:

the current color model



Definition at line 46 of file VideoFile.hh.

References m_cmodel.





8.65.3.2 void VideoFile::colormodel (clrmodel cm) [inline]



Sets a new color model.



Parameters:

cm the new color model



Definition at line 49 of file VideoFile.hh.

References m_cmodel.





8.65.3.3 int VideoFile::channels (void) const [inline]



Return the number of channels.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

318 Class Documentation



Returns:

the number of channels



Definition at line 53 of file VideoFile.hh.

References m_channels.





8.65.3.4 int VideoFile::frames (void) const [inline]



Return the number of frames.



Returns:

the number of frames



Definition at line 57 of file VideoFile.hh.

References m_frames.





8.65.3.5 clrmodel VideoFile::colormodel (void) const [inline]



Return the color model.



Returns:

the color model



Definition at line 61 of file VideoFile.hh.

References m_cmodel.





8.65.3.6 void VideoFile::init (VideoArray ∗ videos[ ]) [protected]



internal initialization





8.65.4 Member Data Documentation



8.65.4.1 VideoArray∗∗ VideoFile::m_arrays [protected]



The color channels.

Definition at line 66 of file VideoFile.hh.





8.65.4.2 int VideoFile::m_channels [protected]



The number of channels (usually: colors).

Definition at line 68 of file VideoFile.hh.

Referenced by channels().



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.65 VideoFile Class Reference 319





8.65.4.3 char const∗ VideoFile::m_fname [protected]



The file name. The name of the file associated with this object.

Definition at line 70 of file VideoFile.hh.





8.65.4.4 clrmodel VideoFile::m_cmodel [protected]



The way the current image’s colors are encoded.

Definition at line 72 of file VideoFile.hh.

Referenced by colormodel().





8.65.4.5 int VideoFile::m_frames [protected]



The number of frames

Definition at line 74 of file VideoFile.hh.

Referenced by frames().

The documentation for this class was generated from the following file:



• VideoFile.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

320 Class Documentation





8.66 VideoFrame Class Reference

#include

Inheritance diagram for VideoFrame:



Image









StillImage









VideoFrame









Collaboration diagram for VideoFrame:



ReferenceVector









ImageVector









FullVector RowVector ColumnVector





m_afull m_arow m_acol





Image









StillImage









VideoFrame









Public Member Functions

• VideoFrame (VideoArray ∗va)

• virtual ∼VideoFrame (void)

• virtual Image ∗ clone (void) const





8.66.1 Detailed Description



A video frame in black-white. Almost identical to StillImage, contains some optimiza-

tion stuff for videos.

Definition at line 23 of file VideoFrame.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.66 VideoFrame Class Reference 321





8.66.2 Constructor & Destructor Documentation



8.66.2.1 VideoFrame::VideoFrame (VideoArray ∗ va)



Constructor. Creates an empty image with given dimensions. Unlike in the StillImage

class the memory holding the coefficients is held externally and contains all frames.

The VideoArray object automatically returns data from the frame which has previously

been set as the current one. No boundary checking is done!



Parameters:

va a pointer to the VideoArray holding all frames







8.66.2.2 virtual VideoFrame::∼VideoFrame (void) [virtual]



Destructor. Deallocates objects.





8.66.3 Member Function Documentation



8.66.3.1 virtual Image∗ VideoFrame::clone (void) const [virtual]



Produce a copy. Every dynamically object will be cloned rather than passing on the ref-

erence. This operation returns a StillImage and not a VideoFrame, since a VideoFrame

always depends on the external VideoArray, so that the copy would only alias to the

same external memory!



Returns:

the new, copied object.



Reimplemented from StillImage.

The documentation for this class was generated from the following file:



• VideoFrame.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

322 Class Documentation





8.67 VideoReader Class Reference

#include

Inheritance diagram for VideoReader:



VideoFile









VideoReader









AviReader VidReader









Collaboration diagram for VideoReader:



VideoFile









VideoReader









Public Member Functions

• VideoReader (char const ∗name, VideoArray ∗arrays[ ], int channels,

int from, int to)

• virtual ∼VideoReader (void)

• virtual void read (void)





Protected Member Functions

• virtual int readfmt (void)=0





Protected Attributes

• int m_to

• int m_from





8.67.1 Detailed Description



An abstract color video reader. The video is being read putting its color channels into

separate greyscale video objects.

Definition at line 24 of file VideoReader.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.67 VideoReader Class Reference 323





8.67.2 Constructor & Destructor Documentation



8.67.2.1 VideoReader::VideoReader (char const ∗ name, VideoArray

∗ arrays[ ], int channels, int from, int to) [inline]



Constructor. Only calls the mother class’ constructor to initialize the {ImageArray}

reference.

Parameters:

name the file name

arrays the array of video arrays for the values

channels the number of colors

from the first frame

to the last frame



Definition at line 39 of file VideoReader.hh.

References m_from, and m_to.





8.67.2.2 virtual VideoReader::∼VideoReader (void) [inline, virtual]



Destructor - does nothing.

Definition at line 44 of file VideoReader.hh.





8.67.3 Member Function Documentation



8.67.3.1 virtual void VideoReader::read (void) [virtual]



Read the video . All steps independent of the file format will be performed, like testing

for file readability etc.



Exceptions:



invalid_argument invalid file format

ios_base::failure a read error has occured [not supported by all libraries, so even-

tually {invalid_argument} instead]





8.67.3.2 virtual int VideoReader::readfmt (void) [protected, pure

virtual]



Read different file formats (abstract). This is the method to be implemented for every

video file format. It will be called by the {read ()} method.



Returns:

0 if successful, -1 on read error, -2 on file format error.



Implemented in AviReader, and VidReader.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

324 Class Documentation





8.67.4 Member Data Documentation



8.67.4.1 int VideoReader::m_to [protected]



the last frame

Definition at line 64 of file VideoReader.hh.

Referenced by VideoReader().





8.67.4.2 int VideoReader::m_from [protected]



the first frame

Definition at line 66 of file VideoReader.hh.

Referenced by VideoReader().

The documentation for this class was generated from the following file:



• VideoReader.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.68 VideoWriter Class Reference 325





8.68 VideoWriter Class Reference



#include

Inheritance diagram for VideoWriter:





VideoFile









VideoWriter









AviWriter VidWriter









Collaboration diagram for VideoWriter:





VideoFile









VideoWriter









Public Member Functions



• VideoWriter (char const ∗name, VideoArray ∗arrays[ ], int colors)

• virtual ∼VideoWriter (void)

• void write (void)







Protected Member Functions



• virtual int writefmt (void)=0







8.68.1 Detailed Description



An abstract video writer. The video is being written putting its content from an array

of greyscale video objects into the file.

Definition at line 23 of file VideoWriter.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

326 Class Documentation





8.68.2 Constructor & Destructor Documentation



8.68.2.1 VideoWriter::VideoWriter (char const ∗ name, VideoArray

∗ arrays[ ], int colors) [inline]



Constructor. Only calls the mother class’ constructor to initialize the {ImageArray}

reference.



Parameters:

name the file name

arrays the array of video arrays for the values

colors the number of colors



Definition at line 36 of file VideoWriter.hh.





8.68.2.2 virtual VideoWriter::∼VideoWriter (void) [inline, virtual]



Destructor - does nothing.

Definition at line 40 of file VideoWriter.hh.





8.68.3 Member Function Documentation



8.68.3.1 void VideoWriter::write (void)



Write the video . All steps independent of the file format will be performed, like testing

for file writeability etc.



Exceptions:



ios_base::failure a read error has occured [not supported by all libraries, so even-

tually {invalid_argument} instead]





8.68.3.2 virtual int VideoWriter::writefmt (void) [protected, pure

virtual]



Write different file formats (abstract). This is the method to be implemented for every

video file format. It will be called by the {write ()} method.



Returns:

0 if successful, -1 on write error.



Implemented in AviWriter, and VidWriter.

The documentation for this class was generated from the following file:



• VideoWriter.hh





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.69 VidReader Class Reference 327





8.69 VidReader Class Reference

#include

Inheritance diagram for VidReader:



VideoFile









VideoReader









VidReader









Collaboration diagram for VidReader:



VideoFile









VideoReader









VidReader









Public Member Functions

• VidReader (char const ∗name, VideoArray ∗arrays[ ], int rawy, int

rawx, int colors, int from, int to, int skip=0)

• virtual ∼VidReader (void)





Static Public Member Functions

• static int framesInFile (const char ∗fname, int rows, int cols, int colors, int skip)





Protected Member Functions

• virtual int readfmt (void)





Protected Attributes

• int m_ysize



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

328 Class Documentation





• int m_xsize

• int m_skip





8.69.1 Detailed Description



A VID file reader.

Definition at line 21 of file VidReader.hh.





8.69.2 Constructor & Destructor Documentation



8.69.2.1 VidReader::VidReader (char const ∗ name, VideoArray ∗

arrays[ ], int rawy, int rawx, int colors, int from, int to, int skip = 0)



Constructor. Only calls the mother class’ constructor to initialize the {ImageArray}

reference.



Parameters:

name the file name

arrays the array of video arrays for the values

rawy the number of rows

rawx the number of cols

colors the number of colors

from the first frame

to one greater than the last frame, if equal to ‘from’ then the whole video will be

read, if 0, then the video will be read from ‘from’ to the end

skip the size of the header to skip





8.69.2.2 virtual VidReader::∼VidReader (void) [inline, virtual]



Destructor - does nothing.

Definition at line 43 of file VidReader.hh.





8.69.3 Member Function Documentation



8.69.3.1 static int VidReader::framesInFile (const char ∗ fname, int rows, int

cols, int colors, int skip) [static]



Return the number of frames in a file.



Parameters:

fname the file name.

rows the number of rows



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.69 VidReader Class Reference 329





cols the number of columns

colors the number of colors

skip the number bytes to skip



Returns:

the number of frames







8.69.3.2 virtual int VidReader::readfmt (void) [protected, virtual]



Read the VID file format. This does the actual work of reading and parsing the video

file. It gets called by the {read ()} method.



Returns:

0 if successful, -1 on read error, -2 on file format error.



Implements VideoReader.





8.69.4 Member Data Documentation



8.69.4.1 int VidReader::m_ysize [protected]



The assumed number of rows

Definition at line 62 of file VidReader.hh.





8.69.4.2 int VidReader::m_xsize [protected]



The assumed number of columns

Definition at line 64 of file VidReader.hh.





8.69.4.3 int VidReader::m_skip [protected]



If applicable, a header to skip before reading the contents

Definition at line 66 of file VidReader.hh.

The documentation for this class was generated from the following file:



• VidReader.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

330 Class Documentation





8.70 VidWriter Class Reference

#include

Inheritance diagram for VidWriter:



VideoFile









VideoWriter









VidWriter









Collaboration diagram for VidWriter:



VideoFile









VideoWriter









VidWriter









Public Member Functions

• VidWriter (char const ∗name, VideoArray ∗arrays[ ], int colors, int

skip)

• virtual ∼VidWriter (void)





Protected Member Functions

• virtual int writefmt (void)





Protected Attributes

• int m_skip





8.70.1 Detailed Description



A VID video file writer. Dimensions are known from the {Image} object.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.70 VidWriter Class Reference 331





Definition at line 22 of file VidWriter.hh.





8.70.2 Constructor & Destructor Documentation



8.70.2.1 VidWriter::VidWriter (char const ∗ name, VideoArray ∗

arrays[ ], int colors, int skip) [inline]



Constructor. Only calls the mother class’ constructor to initialize the {ImageArray}

reference and set the offset if necessary.



Parameters:

name the file name

arrays the array of video arrays for the values

colors the number of colors

skip the size of the header to fill with zeros before the actual contents



Definition at line 36 of file VidWriter.hh.

References m_skip.





8.70.2.2 virtual VidWriter::∼VidWriter (void) [inline, virtual]



Destructor - does nothing.

Definition at line 41 of file VidWriter.hh.





8.70.3 Member Function Documentation



8.70.3.1 virtual int VidWriter::writefmt (void) [protected, virtual]



Write a VID video file. This is the method that does the actual work. It will be called

by the {write ()} method.



Returns:

0 if successful, -1 on write error.



Implements VideoWriter.





8.70.4 Member Data Documentation



8.70.4.1 int VidWriter::m_skip [protected]



The number of bytes before the contents

Definition at line 50 of file VidWriter.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

332 Class Documentation





Referenced by VidWriter().

The documentation for this class was generated from the following file:



• VidWriter.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.71 wave_header Struct Reference 333





8.71 wave_header Struct Reference

#include

Collaboration diagram for wave_header:



chunk_struct common_struct riff_struct





format

common riff

data





wave_header









Public Attributes

• struct riff_struct riff

• struct chunk_struct format

• struct common_struct common

• struct chunk_struct data





8.71.1 Detailed Description



Definition at line 495 of file avilib.h.





8.71.2 Member Data Documentation



8.71.2.1 struct riff_struct wave_header::riff [read]



Definition at line 497 of file avilib.h.





8.71.2.2 struct chunk_struct wave_header::format [read]



Definition at line 498 of file avilib.h.





8.71.2.3 struct common_struct wave_header::common [read]



Definition at line 499 of file avilib.h.





8.71.2.4 struct chunk_struct wave_header::data [read]



Definition at line 500 of file avilib.h.

The documentation for this struct was generated from the following file:



• avilib.h





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

334 Class Documentation





8.72 Wavelet Class Reference

#include

Collaboration diagram for Wavelet:



VectorPosition Filter





m_analow

m_shpad

m_anahigh

m_apad

m_synhigh

m_slpad

m_synlow





Wavelet









Public Member Functions

• int level (ReferenceVector &dest, ReferenceVector &src, int steps)

• Wavelet (FilterSet &fset)

• virtual ∼Wavelet (void)

• void analysis (ReferenceVector &dest, ReferenceVector &src, int steps)

• void synthesis (ReferenceVector &dest, ReferenceVector &src, int steps, int pre-

vSteps=0)

• virtual void anastep (ReferenceVector &dest, ReferenceVector &src, int size)

• virtual void synstep (ReferenceVector &dest, ReferenceVector &src, int size)





Protected Member Functions

• void init (FilterSet ∗pfset=NULL)





Protected Attributes

• Filter ∗ m_analow

• Filter ∗ m_anahigh

• Filter ∗ m_synlow

• Filter ∗ m_synhigh

• VectorPosition ∗ m_apad

• VectorPosition ∗ m_slpad

• VectorPosition ∗ m_shpad

• bool m_symmetric

• int m_npad

• int ∗ m_apositions

• int m_apsize

• int ∗ m_slpositions

• int m_slpsize

• int ∗ m_shpositions

• int ∗ m_shsigns

• int m_shpsize



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.72 Wavelet Class Reference 335





8.72.1 Detailed Description



A Wavelet. The Wavelet transform is one-dimensional, it thus works on vectors.

Definition at line 24 of file Wavelet.hh.





8.72.2 Constructor & Destructor Documentation



8.72.2.1 Wavelet::Wavelet (FilterSet & fset)



Constructor. Sets the the filter.





8.72.2.2 virtual Wavelet::∼Wavelet (void) [virtual]



Destructor. Releases allocated objects.





8.72.3 Member Function Documentation



8.72.3.1 int Wavelet::level (ReferenceVector & dest, ReferenceVector & src, int

steps)



Calculate the level for the transform and execute some consistency checks.



Exceptions:



invalid_argument vector size is not a power of two or the two vectors don’t have

the same size



Parameters:

dest the destination vector

src the source vector

steps the number of steps for the transform







8.72.3.2 void Wavelet::analysis (ReferenceVector & dest, ReferenceVector &

src, int steps)



Decompose a vector. The result is written to a second vector.



Exceptions:



invalid_argument low pass subband signal too small (decrease the number of

transform steps or increase signal size)



Parameters:

src A vector of {coeff} containing the original data



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

336 Class Documentation





dest A vector of {coeff} to get the transformed data

steps The last col the decomposition step will be performed to







8.72.3.3 void Wavelet::synthesis (ReferenceVector & dest, ReferenceVector &

src, int steps, int prevSteps = 0)



Reconstruct a vector. The result is written to a second vector.



Parameters:

src A vector of {coeff} containing the analysisd data

dest A vector of {coeff} to get the synthesised data

steps The number of coefficient pairs to synthesis.

prevSteps if greater than 0, the number of previous decomposition steps to as-

sume. This is necessary to reconstruct images that are not square and have

side lengths which are not powers of two.







8.72.3.4 virtual void Wavelet::anastep (ReferenceVector & dest,

ReferenceVector & src, int size) [virtual]



A decomposition step on a vector. The result is written to a second vector. Only the

result coefficients are being written, the rest may have to be done manually.



Parameters:

dest A vector of {coeff} to get the transformed data

src A vector of {coeff} containing the original data

size The number of values in {src} to perform the decomposition step on







8.72.3.5 virtual void Wavelet::synstep (ReferenceVector & dest,

ReferenceVector & src, int size) [virtual]



A reconstruction step on a vector. The result is written to a second vector. Only the

result coefficients are being written, the rest may have to be done manually.



Parameters:

dest A vector of {coeff} to get the transformed data

src A vector of {coeff} containing the original data

size The number of values in {src} to perform the synthesis step on





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.72 Wavelet Class Reference 337





8.72.3.6 void Wavelet::init (FilterSet ∗ pfset = NULL) [protected]



Initialize the filter set to be used. The filters in the set will be duplicated.



Parameters:

pfset a reference to the filter set







8.72.4 Member Data Documentation



8.72.4.1 Filter∗ Wavelet::m_analow [protected]



The low pass analysis filter.

Definition at line 111 of file Wavelet.hh.





8.72.4.2 Filter∗ Wavelet::m_anahigh [protected]



The high pass analysis filter.

Definition at line 113 of file Wavelet.hh.





8.72.4.3 Filter∗ Wavelet::m_synlow [protected]



The low pass synthesis filter.

Definition at line 115 of file Wavelet.hh.





8.72.4.4 Filter∗ Wavelet::m_synhigh [protected]



The high pass synthesis filter.

Definition at line 117 of file Wavelet.hh.





8.72.4.5 VectorPosition∗ Wavelet::m_apad [protected]



The padding object for the analysis.

Definition at line 119 of file Wavelet.hh.





8.72.4.6 VectorPosition∗ Wavelet::m_slpad [protected]



The padding object for the synthesis low pass part.

Definition at line 121 of file Wavelet.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

338 Class Documentation





8.72.4.7 VectorPosition∗ Wavelet::m_shpad [protected]



The padding object for the synthesis high pass part.

Definition at line 123 of file Wavelet.hh.





8.72.4.8 bool Wavelet::m_symmetric [protected]



{true} if filter set is symmetric.

Definition at line 125 of file Wavelet.hh.





8.72.4.9 int Wavelet::m_npad [protected]



The number of padding coefficients needed.

Definition at line 127 of file Wavelet.hh.





8.72.4.10 int∗ Wavelet::m_apositions [protected]



Padding positions for analysis.

Definition at line 129 of file Wavelet.hh.





8.72.4.11 int Wavelet::m_apsize [protected]



Size of padding positions array for analysis.

Definition at line 131 of file Wavelet.hh.





8.72.4.12 int∗ Wavelet::m_slpositions [protected]



Padding positions for lowband synthesis.

Definition at line 133 of file Wavelet.hh.





8.72.4.13 int Wavelet::m_slpsize [protected]



Size of padding positions array for lowband synthesis .

Definition at line 135 of file Wavelet.hh.





8.72.4.14 int∗ Wavelet::m_shpositions [protected]



Padding positions for highband synthesis.

Definition at line 137 of file Wavelet.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.72 Wavelet Class Reference 339





8.72.4.15 int∗ Wavelet::m_shsigns [protected]



Padding signs for highband synthesis.

Definition at line 139 of file Wavelet.hh.





8.72.4.16 int Wavelet::m_shpsize [protected]



Size of padding positions array for highband synthesis .

Definition at line 141 of file Wavelet.hh.

The documentation for this class was generated from the following file:



• Wavelet.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

340 Class Documentation





8.73 WaveletTransform Class Reference

#include

Inheritance diagram for WaveletTransform:



WaveletTransform









PyramidTransform StandardTransform









Collaboration diagram for WaveletTransform:





ReferenceVector









ImageVector









VectorPosition Filter FullVector RowVector ColumnVector





m_analow m_synthesisHigh

m_shpad

m_anahigh m_analysisHigh

m_apad m_afull m_arow m_acol

m_synhigh m_analysisLow

m_slpad

m_synlow m_synthesisLow





Wavelet FilterSet Image





m_buffer

m_wavelet m_filter

m_image





WaveletTransform









Public Member Functions

• WaveletTransform (Image &img, FilterSet &fil)

• virtual ∼WaveletTransform (void)

• virtual void analysis (int steps)

• virtual void synthesis (int steps, int prevSteps=0)

• void expandImage (void)

• void restoreImage (void)



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.73 WaveletTransform Class Reference 341





• virtual void where (area what, int subband, int &yoffs, int &xoffs, int &ysize, int

&xsize) const

• virtual void where (int ypos, int xpos, int &subband, area &channel, int steps=-1)

const

• virtual void mapPosition (int yOld, int xOld, int toSubband, area toChannel, int

&yNew, int &xNew, int &sizeFactor, int steps=-1) const

• virtual coeff saverage (int subband, area channel) const

• virtual coeff aaverage (int subband, area channel) const

• virtual coeff sqvariance (int subband, area channel) const

• virtual coeff variance (int subband, area channel, bool abs=false) const

• virtual coeff sdeviation (int subband, area channel, bool abs=false) const

• virtual coeff ratio (int subband1, int subband2)

• Image ∗ ll (int steps=-1)

• Image ∗ hl (int steps=-1)

• Image ∗ lh (int steps=-1)

• Image ∗ hh (int steps=-1)

• Image ∗ highMax (int steps=-1)

• Image & image (void) const

• virtual Image ∗ subband (area what, int steps=-1)

• virtual int getSubband (int ypos, int xpos, int steps=-1)

• int getSubband (CoeffInformation &c, int steps=-1)

• virtual area getArea (int ypos, int xpos, int steps=-1)

• area getArea (CoeffInformation &c, int steps=-1)

• virtual void import (Image &img, area what, int steps=-1)

• virtual void fill (coeff value, area what, int steps=-1)

• int steps (void) const





Protected Member Functions

• virtual void doanalysis (int steps)=0

• virtual void dosynthesis (int steps, int prevSteps=0)=0





Protected Attributes

• Wavelet ∗ m_wavelet

• Image ∗ m_image

• Image ∗ m_buffer

• FilterSet ∗ m_filter

• int m_rows

• int m_cols





Private Member Functions

• void sanity (void)



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

342 Class Documentation





8.73.1 Detailed Description



An abstract Wavelet Transform. The Transform transform is two-dimensional, it thus

works on images.

Definition at line 26 of file WaveletTransform.hh.





8.73.2 Constructor & Destructor Documentation



8.73.2.1 WaveletTransform::WaveletTransform (Image & img, FilterSet & fil)



Constructor. Initializes references to Image and Wavelet.



Parameters:

img the image

fil the filter set for the wavelet





8.73.2.2 virtual WaveletTransform::∼WaveletTransform (void) [virtual]



Destructor. Releases allocated objects.





8.73.3 Member Function Documentation



8.73.3.1 virtual void WaveletTransform::analysis (int steps) [virtual]



Perform a Wavelet transform on the image.



Exceptions:



invalid_argument image is not square



Parameters:

steps the number of transform steps







8.73.3.2 virtual void WaveletTransform::synthesis (int steps, int prevSteps = 0)

[virtual]



Perform an inverse Wavelet transform on the image.



Exceptions:



invalid_argument image is not square



Parameters:

steps the number of inverse transform steps



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.73 WaveletTransform Class Reference 343





prevSteps if greater than 0, the number of previous decomposition steps to as-

sume. This is necessary to reconstruct images that are not square and have

side lengths which are not powers of two.





8.73.3.3 void WaveletTransform::expandImage (void)



Temporarily expand the image (square, side length a power of two) to make a transform

possible.





8.73.3.4 void WaveletTransform::restoreImage (void)



Restore the temporarily expanded image back to original size.





8.73.3.5 virtual void WaveletTransform::where (area what, int subband, int &

yoffs, int & xoffs, int & ysize, int & xsize) const [virtual]



Identify position and size of a given channel in a given subband. This default method

of calculation refers to the Pyramid transform and due to the lack of alternatives also

to the Standard transform. Decomposition schemes using a different geometries, like

e.g. the Packet transform may have to implement their own version of that method.



Parameters:

what the channel we want

subband the subband we are looking at

yoffs the returned row

xoffs the returned col

ysize the returned number of rows

xsize the returned number of cols





8.73.3.6 virtual void WaveletTransform::where (int ypos, int xpos, int &

subband, area & channel, int steps = -1) const [virtual]



Identify channel and subband of a given position in the transformed image. This

method depends on the ‘where’ method and thus uses the geometry associated with

the ‘Pyramid’ decomposition.



Parameters:

ypos the location’s row.

xpos the location’s column.

subband where the calculated subband gets written to.

channel where the calculated channel gets written to.

steps the current number of transform steps to be assumed (-1 for automatic de-

termination)





Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

344 Class Documentation





8.73.3.7 virtual void WaveletTransform::mapPosition (int yOld, int xOld, int

toSubband, area toChannel, int & yNew, int & xNew, int & sizeFactor,

int steps = -1) const [virtual]



Identify channel and subband of a given position in the transformed image and map it

to another subband/channel. This default method of calculation refers to the Pyramid

transform and due to the lack of alternatives also to the Standard transform. Decompo-

sition schemes using a different geometries, like e.g. the Packet transform may have to

implement their own version of that method.



Parameters:

yOld the source location’s row.

xOld the source location’s column.

toSubband the target subband

toChannel the target channel

yNew where the target location’s row gets written to.

xNew where the target location’s column gets written to.

sizeFactor where the target sizeFactor gets written to.

steps the current number of transform steps to be assumed (-1 for automatic de-

termination)





8.73.3.8 virtual coeff WaveletTransform::saverage (int subband, area channel)

const [virtual]



Return the average color for a particular area in a subband inside the image. The

coefficients’ signedness will be considered. This is a shortcut to the corresponding

method in the Image class.



Parameters:

subband the subband

channel the area in that subband



Returns:

the average color





8.73.3.9 virtual coeff WaveletTransform::aaverage (int subband, area channel)

const [virtual]



Return the average color for a particular area in a subband inside the image. The coef-

ficients’ signedness will be discarded. This is a shortcut to the corresponding method

in the Image class.



Parameters:

subband the subband



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.73 WaveletTransform Class Reference 345





channel the area in that subband



Returns:

the average color







8.73.3.10 virtual coeff WaveletTransform::sqvariance (int subband, area

channel) const [virtual]



Return the square variance for a particular area in a subband inside the image. This is

a shortcut to the corresponding method in the Image class.



Parameters:

subband the subband

channel the area in that subband



Returns:

the square variance







8.73.3.11 virtual coeff WaveletTransform::variance (int subband, area channel,

bool abs = false) const [virtual]



Return the variance for a particular area in a subband inside the image. This is a

shortcut to the corresponding method in the Image class.



Parameters:

subband the subband

channel the area in that subband

abs true if signs are discarded



Returns:

the square variance







8.73.3.12 virtual coeff WaveletTransform::sdeviation (int subband, area

channel, bool abs = false) const [virtual]



Returns the standard deviation for a particular area in a subband inside the image. This

is a shortcut to the corresponding method in the Image class.



Parameters:

subband the subband

channel the area in that subband



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

346 Class Documentation





abs true if signs are discarded



Returns:

the standard deviation.







8.73.3.13 virtual coeff WaveletTransform::ratio (int subband1, int subband2)

[virtual]



Return the ratio resulting from the zerotree relationship between two subbands (e.g.

1:4 from subband 1 to 2). This method depends on the geometry associated with the

‘Pyramid’ decomposition. Decomposition schemes using a different geometries, like

e.g. the Packet transform may have to implement their own version of that method.



Parameters:

subband1 the first subband

subband2 the second subband



Returns:

the ratio, e.g. 4 for 1:4







8.73.3.14 Image∗ WaveletTransform::ll (int steps = -1) [inline]



Get a subpicture containing the LL subband.



Parameters:

steps assume number of transform steps instead of those computed from the pre-

vious transforms



Definition at line 184 of file WaveletTransform.hh.

References LL.





8.73.3.15 Image∗ WaveletTransform::hl (int steps = -1) [inline]



Get a subpicture containing the HL subband.



Parameters:

steps assume number of transform steps instead of those computed from the pre-

vious transforms



Definition at line 189 of file WaveletTransform.hh.

References HL.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.73 WaveletTransform Class Reference 347





8.73.3.16 Image∗ WaveletTransform::lh (int steps = -1) [inline]



Get a subpicture containing the LH subband.



Parameters:

steps assume number of transform steps instead of those computed from the pre-

vious transforms



Definition at line 194 of file WaveletTransform.hh.

References LH.





8.73.3.17 Image∗ WaveletTransform::hh (int steps = -1) [inline]



Get a subpicture containing the HH subband.



Parameters:

steps assume number of transform steps instead of those computed from the pre-

vious transforms



Definition at line 199 of file WaveletTransform.hh.

References HH.





8.73.3.18 Image∗ WaveletTransform::highMax (int steps = -1)



Get an image consisting of the given subband’s highpass components maxima.



Parameters:

steps assume number of transform steps instead of those computed from



Returns:

a new image object containing the maxima as coefficients







8.73.3.19 Image& WaveletTransform::image (void) const [inline]



Get a reference to the image



Returns:

the reference to the image



Definition at line 210 of file WaveletTransform.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

348 Class Documentation





8.73.3.20 virtual Image∗ WaveletTransform::subband (area what, int steps =

-1) [virtual]



Get a subpicture containing one of the subbands.



Parameters:

what the subband, out of LL, HL, LH, HH

steps assume number of transform steps instead of those computed from the pre-

vious transforms





8.73.3.21 virtual int WaveletTransform::getSubband (int ypos, int xpos, int

steps = -1) [virtual]



Get the subband of a given position in the image. This default method of calculation

refers to the Pyramid transform and due to the lack of alternatives also to the Standard

transform. Decomposition schemes using a different geometries, like e.g. the Packet

transform may have to implement their own version of that method.



Parameters:

ypos the position’s row

xpos the position’s col

steps the number of steps we assume the image to have been transformed



Returns:

the position’s subband





8.73.3.22 int WaveletTransform::getSubband (CoeffInformation & c, int steps

= -1) [inline]



Get the subband of a given position in the image denoted by a {CoeffInformation}

object. This default method of calculation refers to the Pyramid transform and due ∗ to

the lack of alternatives also to the Standard transform. Decomposition schemes using

a different geometries, like e.g. the Packet transform may have to implement their own

version of that method.

Parameters:

c a reference the {CoeffInformation} object.

steps the number of steps we assume the image to have been transformed



Returns:

the position’s subband



Definition at line 246 of file WaveletTransform.hh.

References CoeffInformation::xpos(), and CoeffInformation::ypos().



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.73 WaveletTransform Class Reference 349





8.73.3.23 virtual area WaveletTransform::getArea (int ypos, int xpos, int steps

= -1) [virtual]



Get the area of a given position in the image. This default method of calculation refers

to the Pyramid transform and due to the lack of alternatives also to the Standard trans-

form. Decomposition schemes using a different geometries, like e.g. the Packet trans-

form may have to implement their own version of that method.



Parameters:

ypos the position’s row

xpos the position’s col

steps the number of steps we assume the image to have been transformed



Returns:

the position’s subband







8.73.3.24 area WaveletTransform::getArea (CoeffInformation & c, int steps =

-1) [inline]



Get the area of a given position in the image denoted by a {CoeffInformation} object.

This default method of calculation refers to the Pyramid transform and due ∗ to the

lack of alternatives also to the Standard transform. Decomposition schemes using a

different geometries, like e.g. the Packet transform may have to implement their own

version of that method.



Parameters:

c a reference the {CoeffInformation} object.

steps the number of steps we assume the image to have been transformed



Returns:

the position’s subband



Definition at line 276 of file WaveletTransform.hh.

References CoeffInformation::xpos(), and CoeffInformation::ypos().





8.73.3.25 virtual void WaveletTransform::import (Image & img, area what, int

steps = -1) [virtual]



Import a subpicture containing one of the subbands.



Exceptions:



invalid_argument the imported image does not match the calculated subband size



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

350 Class Documentation



Parameters:

img the image containing the subband

what the subband, out of LL, HL, LH, HH

steps assume number of transform steps instead of those computed from the pre-

vious transforms







8.73.3.26 virtual void WaveletTransform::fill (coeff value, area what, int steps

= -1) [virtual]



Fill one of the subbands with one particular value.



Exceptions:



invalid_argument the imported image does not match the calculated subband size



Parameters:

value the value to be inserted

what the subband, out of LL, HL, LH, HH

steps assume number of transform steps instead of those computed from the pre-

vious transforms







8.73.3.27 int WaveletTransform::steps (void) const [inline]



Return the current number of decomposition steps



Returns:

the number of decomposition steps



Definition at line 306 of file WaveletTransform.hh.





8.73.3.28 void WaveletTransform::sanity (void) [private]



Resize m_buffer for transforms if image dimensions have changed





8.73.3.29 virtual void WaveletTransform::doanalysis (int steps)

[protected, pure virtual]



Perform a Wavelet transform on the image.



Parameters:

steps the number of transform steps



Implemented in PyramidTransform, and StandardTransform.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

8.73 WaveletTransform Class Reference 351





8.73.3.30 virtual void WaveletTransform::dosynthesis (int steps, int prevSteps =

0) [protected, pure virtual]



Perform an inverse Wavelet transform on the image.



Parameters:

steps the number of inverse transform steps

prevSteps if greater than 0, the number of previous decomposition steps to as-

sume. This is necessary to reconstruct images that are not square and have

side lengths which are not powers of two.



Implemented in PyramidTransform, and StandardTransform.







8.73.4 Member Data Documentation



8.73.4.1 Wavelet∗ WaveletTransform::m_wavelet [protected]



A reference to the wavelet to be used.

Definition at line 318 of file WaveletTransform.hh.





8.73.4.2 Image∗ WaveletTransform::m_image [protected]



A reference to the image to be used.

Definition at line 320 of file WaveletTransform.hh.





8.73.4.3 Image∗ WaveletTransform::m_buffer [protected]



A second image used as temporary m_buffer.

Definition at line 322 of file WaveletTransform.hh.





8.73.4.4 FilterSet∗ WaveletTransform::m_filter [protected]



A reference to the filter set used.

Definition at line 324 of file WaveletTransform.hh.





8.73.4.5 int WaveletTransform::m_rows [protected]



The image’s number of rows before resizing

Definition at line 326 of file WaveletTransform.hh.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

352 Class Documentation





8.73.4.6 int WaveletTransform::m_cols [protected]



The image’s number of cols before resizing

Definition at line 328 of file WaveletTransform.hh.

The documentation for this class was generated from the following file:



• WaveletTransform.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

Chapter 9



File Documentation



9.1 avilib.h File Reference

#include

#include

#include

#include

#include

#include

#include

#include

#include

#include

Include dependency graph for avilib.h:



avilib.h









unistd.h sys/types.h sys/stat.h stdio.h fcntl.h stdint.h limits.h stdlib.h string.h errno.h









Classes

• struct video_index_entry

• struct audio_index_entry

• struct _avisuperindex_entry

• struct _avistdindex_entry

• struct _avistdindex_chunk

354 File Documentation





• struct _avisuperindex_chunk

• struct track_s

• struct alBITMAPINFOHEADER

• struct avi_t

• struct riff_struct

• struct chunk_struct

• struct common_struct

• struct wave_header

• struct AVIStreamHeader





Defines

• #define COMP_GCC

• #define SYS_UNIX

• #define SYS_LINUX

• #define AVI_MAX_TRACKS 8

• #define AVI_INDEX_OF_INDEXES 0x00

• #define AVI_INDEX_OF_CHUNKS 0x01

• #define AVI_INDEX_IS_DATA 0x80

• #define AVI_INDEX_2FIELD 0x01

• #define AVI_MODE_WRITE 0

• #define AVI_MODE_READ 1

• #define AVI_ERR_SIZELIM 1

• #define AVI_ERR_OPEN 2

• #define AVI_ERR_READ 3

• #define AVI_ERR_WRITE 4

• #define AVI_ERR_WRITE_INDEX 5

• #define AVI_ERR_CLOSE 6

• #define AVI_ERR_NOT_PERM 7

• #define AVI_ERR_NO_MEM 8

• #define AVI_ERR_NO_AVI 9

• #define AVI_ERR_NO_HDRL 10

• #define AVI_ERR_NO_MOVI 11

• #define AVI_ERR_NO_VIDS 12

• #define AVI_ERR_NO_IDX 13

• #define WAVE_FORMAT_UNKNOWN (0x0000)

• #define WAVE_FORMAT_PCM (0x0001)

• #define WAVE_FORMAT_ADPCM (0x0002)

• #define WAVE_FORMAT_IBM_CVSD (0x0005)

• #define WAVE_FORMAT_ALAW (0x0006)

• #define WAVE_FORMAT_MULAW (0x0007)

• #define WAVE_FORMAT_OKI_ADPCM (0x0010)

• #define WAVE_FORMAT_DVI_ADPCM (0x0011)

• #define WAVE_FORMAT_DIGISTD (0x0015)

• #define WAVE_FORMAT_DIGIFIX (0x0016)

• #define WAVE_FORMAT_YAMAHA_ADPCM (0x0020)



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.1 avilib.h File Reference 355





• #define WAVE_FORMAT_DSP_TRUESPEECH (0x0022)

• #define WAVE_FORMAT_GSM610 (0x0031)

• #define IBM_FORMAT_MULAW (0x0101)

• #define IBM_FORMAT_ALAW (0x0102)

• #define IBM_FORMAT_ADPCM (0x0103)





Typedefs

• typedef struct _avisuperindex_entry avisuperindex_entry

• typedef struct _avistdindex_entry avistdindex_entry

• typedef struct _avistdindex_chunk avistdindex_chunk

• typedef struct _avisuperindex_chunk avisuperindex_chunk

• typedef struct track_s track_t





Functions

• struct __attribute__ ((__packed__))

• avi_t ∗ AVI_open_output_file (char ∗filename)

• void AVI_set_video (avi_t ∗AVI, int width, int height, double fps, char

∗compressor)

• void AVI_set_audio (avi_t ∗AVI, int channels, long rate, int bits, int format, long

mp3rate)

• int AVI_write_frame (avi_t ∗AVI, char ∗data, long bytes, int keyframe)

• int AVI_dup_frame (avi_t ∗AVI)

• int AVI_write_audio (avi_t ∗AVI, char ∗data, long bytes)

• int AVI_append_audio (avi_t ∗AVI, char ∗data, long bytes)

• long AVI_bytes_remain (avi_t ∗AVI)

• int AVI_close (avi_t ∗AVI)

• long AVI_bytes_written (avi_t ∗AVI)

• avi_t ∗ AVI_open_input_file (char ∗filename, int getIndex)

• avi_t ∗ AVI_open_input_indexfile (char ∗filename, int getIndex, char ∗indexfile)

• avi_t ∗ AVI_open_fd (int fd, int getIndex)

• avi_t ∗ AVI_open_indexfd (int fd, int getIndex, char ∗indexfile)

• int avi_parse_input_file (avi_t ∗AVI, int getIndex)

• int avi_parse_index_from_file (avi_t ∗AVI, char ∗filename)

• long AVI_audio_mp3rate (avi_t ∗AVI)

• long AVI_audio_padrate (avi_t ∗AVI)

• long AVI_video_frames (avi_t ∗AVI)

• int AVI_video_width (avi_t ∗AVI)

• int AVI_video_height (avi_t ∗AVI)

• double AVI_frame_rate (avi_t ∗AVI)

• char ∗ AVI_video_compressor (avi_t ∗AVI)

• int AVI_audio_channels (avi_t ∗AVI)

• int AVI_audio_bits (avi_t ∗AVI)

• int AVI_audio_format (avi_t ∗AVI)

• long AVI_audio_rate (avi_t ∗AVI)



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

356 File Documentation





• long AVI_audio_bytes (avi_t ∗AVI)

• long AVI_audio_chunks (avi_t ∗AVI)

• int AVI_can_read_audio (avi_t ∗AVI)

• long AVI_max_video_chunk (avi_t ∗AVI)

• long AVI_frame_size (avi_t ∗AVI, long frame)

• long AVI_audio_size (avi_t ∗AVI, long frame)

• int AVI_seek_start (avi_t ∗AVI)

• int AVI_set_video_position (avi_t ∗AVI, long frame)

• long AVI_get_video_position (avi_t ∗AVI, long frame)

• long AVI_read_frame (avi_t ∗AVI, char ∗vidbuf, int ∗keyframe)

• int AVI_set_audio_position (avi_t ∗AVI, long byte)

• int AVI_set_audio_bitrate (avi_t ∗AVI, long bitrate)

• long AVI_get_audio_position_index (avi_t ∗AVI)

• int AVI_set_audio_position_index (avi_t ∗AVI, long indexpos)

• long AVI_read_audio (avi_t ∗AVI, char ∗audbuf, long bytes)

• long AVI_read_audio_chunk (avi_t ∗AVI, char ∗audbuf)

• long AVI_audio_codech_offset (avi_t ∗AVI)

• long AVI_audio_codecf_offset (avi_t ∗AVI)

• long AVI_video_codech_offset (avi_t ∗AVI)

• long AVI_video_codecf_offset (avi_t ∗AVI)

• int AVI_read_data (avi_t ∗AVI, char ∗vidbuf, long max_vidbuf, char ∗audbuf,

long max_audbuf, long ∗len)

• void AVI_print_error (char ∗str)

• char ∗ AVI_strerror (void)

• char ∗ AVI_syserror (void)

• int AVI_scan (char ∗name)

• int AVI_dump (char ∗name, int mode)

• char ∗ AVI_codec2str (short cc)

• int AVI_file_check (char ∗import_file)

• void AVI_info (avi_t ∗avifile)

• uint64_t AVI_max_size (void)

• int avi_update_header (avi_t ∗AVI)

• int AVI_set_audio_track (avi_t ∗AVI, int track)

• int AVI_get_audio_track (avi_t ∗AVI)

• int AVI_audio_tracks (avi_t ∗AVI)

• void AVI_set_audio_vbr (avi_t ∗AVI, long is_vbr)

• long AVI_get_audio_vbr (avi_t ∗AVI)

• void AVI_set_comment_fd (avi_t ∗AVI, int fd)

• int AVI_get_comment_fd (avi_t ∗AVI)

• int AVI_read_wave_header (int fd, struct wave_header ∗wave)

• int AVI_write_wave_header (int fd, const struct wave_header ∗wave)

• size_t AVI_read_wave_pcm_data (int fd, void ∗buffer, size_t buflen)

• size_t AVI_write_wave_pcm_data (int fd, const void ∗buffer, size_t buflen)



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.1 avilib.h File Reference 357





Variables

• alWAVEFORMATEX

• alAVISTREAMINFO





9.1.1 Define Documentation



9.1.1.1 #define AVI_ERR_CLOSE 6



Definition at line 342 of file avilib.h.





9.1.1.2 #define AVI_ERR_NO_AVI 9



Definition at line 352 of file avilib.h.





9.1.1.3 #define AVI_ERR_NO_HDRL 10



Definition at line 354 of file avilib.h.





9.1.1.4 #define AVI_ERR_NO_IDX 13



Definition at line 362 of file avilib.h.





9.1.1.5 #define AVI_ERR_NO_MEM 8



Definition at line 350 of file avilib.h.





9.1.1.6 #define AVI_ERR_NO_MOVI 11



Definition at line 357 of file avilib.h.





9.1.1.7 #define AVI_ERR_NO_VIDS 12



Definition at line 360 of file avilib.h.





9.1.1.8 #define AVI_ERR_NOT_PERM 7



Definition at line 346 of file avilib.h.





9.1.1.9 #define AVI_ERR_OPEN 2



Definition at line 330 of file avilib.h.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

358 File Documentation





9.1.1.10 #define AVI_ERR_READ 3



Definition at line 333 of file avilib.h.





9.1.1.11 #define AVI_ERR_SIZELIM 1



Definition at line 325 of file avilib.h.





9.1.1.12 #define AVI_ERR_WRITE 4



Definition at line 335 of file avilib.h.





9.1.1.13 #define AVI_ERR_WRITE_INDEX 5



Definition at line 338 of file avilib.h.





9.1.1.14 #define AVI_INDEX_2FIELD 0x01



Definition at line 145 of file avilib.h.





9.1.1.15 #define AVI_INDEX_IS_DATA 0x80



Definition at line 141 of file avilib.h.





9.1.1.16 #define AVI_INDEX_OF_CHUNKS 0x01



Definition at line 139 of file avilib.h.





9.1.1.17 #define AVI_INDEX_OF_INDEXES 0x00



Definition at line 137 of file avilib.h.





9.1.1.18 #define AVI_MAX_TRACKS 8



Definition at line 117 of file avilib.h.





9.1.1.19 #define AVI_MODE_READ 1



Definition at line 321 of file avilib.h.





9.1.1.20 #define AVI_MODE_WRITE 0



Definition at line 320 of file avilib.h.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.1 avilib.h File Reference 359





9.1.1.21 #define COMP_GCC



Definition at line 47 of file avilib.h.





9.1.1.22 #define IBM_FORMAT_ADPCM (0x0103)



Definition at line 384 of file avilib.h.





9.1.1.23 #define IBM_FORMAT_ALAW (0x0102)



Definition at line 383 of file avilib.h.





9.1.1.24 #define IBM_FORMAT_MULAW (0x0101)



Definition at line 382 of file avilib.h.





9.1.1.25 #define SYS_LINUX



Definition at line 52 of file avilib.h.





9.1.1.26 #define SYS_UNIX



Definition at line 48 of file avilib.h.





9.1.1.27 #define WAVE_FORMAT_ADPCM (0x0002)



Definition at line 371 of file avilib.h.





9.1.1.28 #define WAVE_FORMAT_ALAW (0x0006)



Definition at line 373 of file avilib.h.





9.1.1.29 #define WAVE_FORMAT_DIGIFIX (0x0016)



Definition at line 378 of file avilib.h.





9.1.1.30 #define WAVE_FORMAT_DIGISTD (0x0015)



Definition at line 377 of file avilib.h.





9.1.1.31 #define WAVE_FORMAT_DSP_TRUESPEECH (0x0022)



Definition at line 380 of file avilib.h.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

360 File Documentation





9.1.1.32 #define WAVE_FORMAT_DVI_ADPCM (0x0011)



Definition at line 376 of file avilib.h.









9.1.1.33 #define WAVE_FORMAT_GSM610 (0x0031)



Definition at line 381 of file avilib.h.









9.1.1.34 #define WAVE_FORMAT_IBM_CVSD (0x0005)



Definition at line 372 of file avilib.h.









9.1.1.35 #define WAVE_FORMAT_MULAW (0x0007)



Definition at line 374 of file avilib.h.









9.1.1.36 #define WAVE_FORMAT_OKI_ADPCM (0x0010)



Definition at line 375 of file avilib.h.









9.1.1.37 #define WAVE_FORMAT_PCM (0x0001)



Definition at line 370 of file avilib.h.









9.1.1.38 #define WAVE_FORMAT_UNKNOWN (0x0000)



Definition at line 369 of file avilib.h.









9.1.1.39 #define WAVE_FORMAT_YAMAHA_ADPCM (0x0020)



Definition at line 379 of file avilib.h.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.1 avilib.h File Reference 361





9.1.2 Typedef Documentation









9.1.2.1 typedef struct _avistdindex_chunk avistdindex_chunk









9.1.2.2 typedef struct _avistdindex_entry avistdindex_entry









9.1.2.3 typedef struct _avisuperindex_chunk avisuperindex_chunk









9.1.2.4 typedef struct _avisuperindex_entry avisuperindex_entry









9.1.2.5 typedef struct track_s track_t









9.1.3 Function Documentation









9.1.3.1 struct __attribute__ ((__packed__)) [read]









Definition at line 235 of file avilib.h.



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

362 File Documentation









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.1 avilib.h File Reference 363





9.1.3.2 int AVI_append_audio (avi_t ∗ AVI, char ∗ data, long bytes)



9.1.3.3 int AVI_audio_bits (avi_t ∗ AVI)



9.1.3.4 long AVI_audio_bytes (avi_t ∗ AVI)



9.1.3.5 int AVI_audio_channels (avi_t ∗ AVI)



9.1.3.6 long AVI_audio_chunks (avi_t ∗ AVI)



9.1.3.7 long AVI_audio_codecf_offset (avi_t ∗ AVI)



9.1.3.8 long AVI_audio_codech_offset (avi_t ∗ AVI)



9.1.3.9 int AVI_audio_format (avi_t ∗ AVI)



9.1.3.10 long AVI_audio_mp3rate (avi_t ∗ AVI)



9.1.3.11 long AVI_audio_padrate (avi_t ∗ AVI)



9.1.3.12 long AVI_audio_rate (avi_t ∗ AVI)



9.1.3.13 long AVI_audio_size (avi_t ∗ AVI, long frame)



9.1.3.14 int AVI_audio_tracks (avi_t ∗ AVI)



9.1.3.15 long AVI_bytes_remain (avi_t ∗ AVI)



9.1.3.16 long AVI_bytes_written (avi_t ∗ AVI)



9.1.3.17 int AVI_can_read_audio (avi_t ∗ AVI)



9.1.3.18 int AVI_close (avi_t ∗ AVI)



9.1.3.19 char∗ AVI_codec2str (short cc)



9.1.3.20 int AVI_dump (char ∗ name, int mode)



9.1.3.21 int AVI_dup_frame (avi_t ∗ AVI)



9.1.3.22 int AVI_file_check (char ∗ import_file)



9.1.3.23 double AVI_frame_rate (avi_t ∗ AVI)



9.1.3.24 long AVI_frame_size (avi_t ∗ AVI, long frame)



9.1.3.25 long AVI_get_audio_position_index (avi_t ∗ AVI)



9.1.3.26 int AVI_get_audio_track (avi_t ∗ AVI)



long AVI_get_audio_vbr (avi_t ∗ AVI)

9.1.3.27 on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

Generated





9.1.3.28 int AVI_get_comment_fd (avi_t ∗ AVI)



9.1.3.29 long AVI_get_video_position (avi_t ∗ AVI, long frame)



9.1.3.30 void AVI_info (avi_t ∗ avifile)



9.1.3.31 uint64_t AVI_max_size (void)

364 File Documentation





9.1.4.2 alWAVEFORMATEX



Definition at line 244 of file avilib.h.









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.2 AviReader.hh File Reference 365





9.2 AviReader.hh File Reference

#include "WImage/VideoReader.hh"

Include dependency graph for AviReader.hh:



AviReader.hh









WImage/VideoReader.hh









WImage/VideoFile.hh fstream









WImage/VideoArray.hh WImage/miscdefs.h









WImage/ImageArray.hh ../VideoArray.cc cfloat stdexcept string iostream









../ImageArray.cc









This graph shows which files directly or indirectly include this file:



AviReader.hh









WImage.hh









Wave.hh









WTools.hh









Classes

• class AviReader









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

366 File Documentation





9.3 AviWriter.hh File Reference

#include "WImage/VideoWriter.hh"

Include dependency graph for AviWriter.hh:



AviWriter.hh









WImage/VideoWriter.hh









WImage/VideoFile.hh









WImage/VideoArray.hh WImage/miscdefs.h









WImage/ImageArray.hh ../VideoArray.cc cfloat stdexcept string iostream









../ImageArray.cc









Classes

• class AviWriter









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.4 CoeffInformation.hh File Reference 367





9.4 CoeffInformation.hh File Reference

#include "WImage/miscdefs.h"

#include "WImage/Image.hh"

Include dependency graph for CoeffInformation.hh:



CoeffInformation.hh









WImage/Image.hh









WImage/RowVector.hh WImage/ColumnVector.hh WImage/FileName.hh WImage/FullVector.hh WImage/GreymapWriter.hh WImage/GreymapReader.hh









WImage/ImageVector.hh WImage/GreymapFile.hh fstream









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



CoeffInformation.hh









WaveletTransform.hh









WImage.hh StandardTransform.hh PyramidTransform.hh ImageResizer.hh









Wave.hh PyramidTree.hh ImageInformation.hh









ImageDenoiser.hh Histogram.hh









WTools.hh









Classes

• class CoeffInformation









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

368 File Documentation





9.5 ColorBuffer.hh File Reference

#include "WImage/Image.hh"

Include dependency graph for ColorBuffer.hh:



ColorBuffer.hh









WImage/Image.hh









WImage/ColumnVector.hh WImage/RowVector.hh WImage/FullVector.hh WImage/GreymapWriter.hh WImage/GreymapReader.hh WImage/FileName.hh









WImage/ImageVector.hh WImage/GreymapFile.hh fstream









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



ColorBuffer.hh









ColorImage.hh









ColorVideo.hh MagickInter.hh ImageResizer.hh









WImage.hh









Wave.hh









WTools.hh









Classes

• class ColorBuffer









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.6 ColorImage.hh File Reference 369





9.6 ColorImage.hh File Reference

#include "WImage/Image.hh"

#include "WImage/ColorBuffer.hh"

Include dependency graph for ColorImage.hh:



ColorImage.hh









WImage/ColorBuffer.hh









WImage/Image.hh









WImage/ColumnVector.hh WImage/RowVector.hh WImage/FullVector.hh WImage/GreymapWriter.hh WImage/GreymapReader.hh WImage/FileName.hh









WImage/ImageVector.hh WImage/GreymapFile.hh fstream









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



ColorImage.hh









ColorVideo.hh MagickInter.hh ImageResizer.hh









WImage.hh









Wave.hh









WTools.hh









Classes

• class ColorImage









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

370 File Documentation





9.7 ColorVideo.hh File Reference

#include "WImage/ColorImage.hh"

#include "WImage/VideoArray.hh"

Include dependency graph for ColorVideo.hh:



ColorVideo.hh









WImage/ColorImage.hh WImage/VideoArray.hh









WImage/ColorBuffer.hh ../VideoArray.cc









WImage/Image.hh









WImage/ColumnVector.hh WImage/FullVector.hh WImage/FileName.hh WImage/RowVector.hh WImage/GreymapWriter.hh WImage/GreymapReader.hh









WImage/ImageVector.hh WImage/GreymapFile.hh fstream









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



ColorVideo.hh









WImage.hh









Wave.hh









WTools.hh









Classes

• class ColorVideo









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.8 ColumnVector.hh File Reference 371





9.8 ColumnVector.hh File Reference

#include "WImage/ImageVector.hh"

Include dependency graph for ColumnVector.hh:



ColumnVector.hh









WImage/ImageVector.hh









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



ColumnVector.hh









Image.hh









ColorBuffer.hh CoeffInformation.hh PixmapFile.hh









StillImage.hh ColorImage.hh WaveletTransform.hh ImageInformation.hh PixmapReader.hh PixmapWriter.hh









VideoFrame.hh ColorVideo.hh MagickInter.hh ImageResizer.hh PyramidTransform.hh JpgReader.hh PfcReader.hh PpmReader.hh JpgWriter.hh PfcWriter.hh PpmWriter.hh









WImage.hh StandardTransform.hh PyramidTree.hh Histogram.hh









Wave.hh ImageDenoiser.hh ImageComparison.hh









WTools.hh









Classes

• class ColumnVector









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

372 File Documentation





9.9 debug.h File Reference



Defines

• #define STRR(X) #X

• #define STR(X) STRR(X)

• #define DPRINTF(X) (debug_printf("DEBUG %s [%s]: ", __FILE__, STR(__-

LINE__)), debug_printf X)





Functions

• int debug_printf (const char ∗tmpl,...)









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.10 FileName.hh File Reference 373





9.10 FileName.hh File Reference

This graph shows which files directly or indirectly include this file:



FileName.hh









Image.hh









ColorBuffer.hh CoeffInformation.hh PixmapFile.hh









StillImage.hh ColorImage.hh WaveletTransform.hh ImageInformation.hh PixmapWriter.hh PixmapReader.hh









VideoFrame.hh MagickInter.hh ColorVideo.hh ImageResizer.hh PyramidTransform.hh JpgWriter.hh PfcWriter.hh PpmWriter.hh JpgReader.hh PfcReader.hh PpmReader.hh









WImage.hh StandardTransform.hh PyramidTree.hh ImageComparison.hh









Wave.hh ImageDenoiser.hh Histogram.hh









WTools.hh









Classes

• class FileName





Enumerations

• enum filetype {

fn_pgm, fn_raw, fn_pfi, fn_ppm,

fn_jpg, fn_vid, fn_avi, fn_unknown }









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

374 File Documentation





9.11 Filter.hh File Reference

#include "WImage/miscdefs.h"

Include dependency graph for Filter.hh:



Filter.hh









WImage/miscdefs.h









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



Filter.hh









Wavelet.hh









WaveletTransform.hh ImageComparison.hh









StandardTransform.hh PyramidTransform.hh ImageResizer.hh









Wave.hh PyramidTree.hh









ImageDenoiser.hh









WTools.hh









Classes

• class Filter

• class FilterSet





Defines

• #define NULL 0





Variables

• FilterSet Haar



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.11 Filter.hh File Reference 375





• FilterSet Daub4

• FilterSet Daub6

• FilterSet Daub8

• FilterSet Antonini

• FilterSet Brislawn

• FilterSet Villa1

• FilterSet Villa2

• FilterSet Villa3

• FilterSet Villa4

• FilterSet Villa5

• FilterSet Villa6

• FilterSet Odegard









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

376 File Documentation





9.12 FullVector.hh File Reference

#include "WImage/ImageVector.hh"

Include dependency graph for FullVector.hh:



FullVector.hh









WImage/ImageVector.hh









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



FullVector.hh









Image.hh









ColorBuffer.hh CoeffInformation.hh PixmapFile.hh









StillImage.hh ColorImage.hh WaveletTransform.hh ImageInformation.hh PixmapReader.hh PixmapWriter.hh









VideoFrame.hh ColorVideo.hh MagickInter.hh ImageResizer.hh PyramidTransform.hh JpgReader.hh PfcReader.hh PpmReader.hh JpgWriter.hh PfcWriter.hh PpmWriter.hh









WImage.hh StandardTransform.hh PyramidTree.hh Histogram.hh









Wave.hh ImageDenoiser.hh ImageComparison.hh









WTools.hh









Classes

• class FullVector









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.13 GreymapFile.hh File Reference 377





9.13 GreymapFile.hh File Reference

#include "WImage/ImageArray.hh"

#include "WImage/miscdefs.h"

Include dependency graph for GreymapFile.hh:



GreymapFile.hh









WImage/ImageArray.hh WImage/miscdefs.h









../ImageArray.cc cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



GreymapFile.hh









GreymapWriter.hh GreymapReader.hh









PfgWriter.hh PgmWriter.hh RawWriter.hh Image.hh PfgReader.hh PgmReader.hh RawReader.hh









ColorBuffer.hh CoeffInformation.hh PixmapFile.hh









StillImage.hh ColorImage.hh WaveletTransform.hh ImageInformation.hh PixmapWriter.hh PixmapReader.hh









VideoFrame.hh MagickInter.hh ColorVideo.hh ImageResizer.hh PyramidTransform.hh JpgWriter.hh PfcWriter.hh PpmWriter.hh JpgReader.hh PfcReader.hh PpmReader.hh









WImage.hh StandardTransform.hh PyramidTree.hh ImageComparison.hh









Wave.hh ImageDenoiser.hh Histogram.hh









WTools.hh









Classes

• class GreymapFile









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

378 File Documentation





9.14 GreymapReader.hh File Reference

#include "WImage/GreymapFile.hh"

#include

Include dependency graph for GreymapReader.hh:



GreymapReader.hh









WImage/GreymapFile.hh fstream









WImage/ImageArray.hh WImage/miscdefs.h









../ImageArray.cc cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



GreymapReader.hh









Image.hh PfgReader.hh PgmReader.hh RawReader.hh









ColorBuffer.hh CoeffInformation.hh PixmapFile.hh









StillImage.hh ColorImage.hh WaveletTransform.hh ImageInformation.hh PixmapWriter.hh PixmapReader.hh









VideoFrame.hh MagickInter.hh ColorVideo.hh ImageResizer.hh PyramidTransform.hh JpgWriter.hh PfcWriter.hh PpmWriter.hh JpgReader.hh PfcReader.hh PpmReader.hh









WImage.hh StandardTransform.hh PyramidTree.hh ImageComparison.hh









Wave.hh ImageDenoiser.hh Histogram.hh









WTools.hh









Classes

• class GreymapReader









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.15 GreymapWriter.hh File Reference 379





9.15 GreymapWriter.hh File Reference

#include "WImage/GreymapFile.hh"

Include dependency graph for GreymapWriter.hh:



GreymapWriter.hh









WImage/GreymapFile.hh









WImage/ImageArray.hh WImage/miscdefs.h









../ImageArray.cc cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



GreymapWriter.hh









Image.hh PfgWriter.hh PgmWriter.hh RawWriter.hh









ColorBuffer.hh CoeffInformation.hh PixmapFile.hh









StillImage.hh ColorImage.hh WaveletTransform.hh ImageInformation.hh PixmapWriter.hh PixmapReader.hh









VideoFrame.hh MagickInter.hh ColorVideo.hh ImageResizer.hh PyramidTransform.hh JpgWriter.hh PfcWriter.hh PpmWriter.hh JpgReader.hh PfcReader.hh PpmReader.hh









WImage.hh StandardTransform.hh PyramidTree.hh ImageComparison.hh









Wave.hh ImageDenoiser.hh Histogram.hh









WTools.hh









Classes

• class GreymapWriter









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

380 File Documentation





9.16 Histogram.hh File Reference

#include "WTools/ImageInformation.hh"

Include dependency graph for Histogram.hh:



Histogram.hh









WTools/ImageInformation.hh









WImage/CoeffInformation.hh









WImage/Image.hh









WImage/RowVector.hh WImage/ColumnVector.hh WImage/FileName.hh WImage/FullVector.hh WImage/GreymapWriter.hh WImage/GreymapReader.hh









WImage/ImageVector.hh WImage/GreymapFile.hh fstream









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



Histogram.hh









WTools.hh









Classes

• class Histogram

• struct Histogram::hist









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.17 Image.hh File Reference 381





9.17 Image.hh File Reference

#include "WImage/ColumnVector.hh"

#include "WImage/RowVector.hh"

#include "WImage/FullVector.hh"

#include "WImage/GreymapReader.hh"

#include "WImage/GreymapWriter.hh"

#include "WImage/FileName.hh"

Include dependency graph for Image.hh:



Image.hh









WImage/ColumnVector.hh WImage/RowVector.hh WImage/FullVector.hh WImage/GreymapWriter.hh WImage/GreymapReader.hh WImage/FileName.hh









WImage/ImageVector.hh WImage/GreymapFile.hh fstream









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



Image.hh









ColorBuffer.hh CoeffInformation.hh PixmapFile.hh









StillImage.hh ColorImage.hh WaveletTransform.hh ImageInformation.hh PixmapWriter.hh PixmapReader.hh









VideoFrame.hh MagickInter.hh ColorVideo.hh ImageResizer.hh PyramidTransform.hh JpgWriter.hh PfcWriter.hh PpmWriter.hh JpgReader.hh PfcReader.hh PpmReader.hh









WImage.hh StandardTransform.hh PyramidTree.hh ImageComparison.hh









Wave.hh ImageDenoiser.hh Histogram.hh









WTools.hh









Classes

• class Image









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

382 File Documentation





9.18 ImageArray.hh File Reference

#include "../ImageArray.cc"

Include dependency graph for ImageArray.hh:



ImageArray.hh









../ImageArray.cc









This graph shows which files directly or indirectly include this file:



ImageArray.hh









ImageVector.hh GreymapFile.hh









ColumnVector.hh FullVector.hh RowVector.hh GreymapReader.hh GreymapWriter.hh









VideoArray.hh Image.hh RawReader.hh PfgReader.hh PgmReader.hh RawWriter.hh PfgWriter.hh PgmWriter.hh









VideoFile.hh ColorBuffer.hh CoeffInformation.hh PixmapFile.hh









VideoWriter.hh VideoReader.hh StillImage.hh ColorImage.hh WaveletTransform.hh PixmapReader.hh ImageInformation.hh PixmapWriter.hh









AviWriter.hh VidWriter.hh VidReader.hh AviReader.hh VideoFrame.hh ColorVideo.hh MagickInter.hh ImageResizer.hh PyramidTransform.hh JpgReader.hh PfcReader.hh PpmReader.hh PfcWriter.hh JpgWriter.hh









WImage.hh StandardTransform.hh PyramidTree.hh Histogram.hh









Wave.hh ImageDenoiser.hh ImageComparison.hh









WTools.hh









Classes

• class ImageArray









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.19 ImageComparison.hh File Reference 383





9.19 ImageComparison.hh File Reference

#include "WImage/Image.hh"

#include "Wave/Filter.hh"

Include dependency graph for ImageComparison.hh:



ImageComparison.hh









WImage/Image.hh Wave/Filter.hh









WImage/ColumnVector.hh WImage/FullVector.hh WImage/FileName.hh WImage/RowVector.hh WImage/GreymapWriter.hh WImage/GreymapReader.hh









WImage/ImageVector.hh WImage/GreymapFile.hh fstream









WImage/ReferenceVector.hh WImage/ImageArray.hh









../ImageArray.cc WImage/miscdefs.h









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



ImageComparison.hh









WTools.hh









Classes

• struct lq

• struct logvals

• class ImageComparison





Enumerations

• enum imgtype { DRAWN = 0, SCANNED }









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

384 File Documentation





9.20 ImageDenoiser.hh File Reference

#include "Wave/PyramidTransform.hh"

#include "WTools/PyramidTree.hh"

Include dependency graph for ImageDenoiser.hh:



ImageDenoiser.hh









WTools/PyramidTree.hh









Wave/PyramidTransform.hh









Wave/WaveletTransform.hh









WImage/CoeffInformation.hh









WImage/Image.hh









Wave/Wavelet.hh WImage/FileName.hh WImage/FullVector.hh WImage/ColumnVector.hh WImage/RowVector.hh WImage/GreymapWriter.hh WImage/GreymapReader.hh









Wave/Filter.hh Wave/VectorPosition.hh WImage/ImageVector.hh WImage/GreymapFile.hh fstream









WImage/ReferenceVector.hh WImage/ImageArray.hh WTools/NTree.hh









WImage/miscdefs.h ../ImageArray.cc ../NTree.cc









cfloat string stdexcept iostream









This graph shows which files directly or indirectly include this file:



ImageDenoiser.hh









WTools.hh









Classes

• class ImageDenoiser





Defines

• #define DENOISE_HL 0x01

• #define DENOISE_LH 0x02

• #define DENOISE_HH 0x04

• #define SIGNIFICANT_COEFF 0



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.20 ImageDenoiser.hh File Reference 385





• #define SIGNIFICANT_REGION 1

• #define SIGNIFICANT_CHANNEL 2

• #define REPLACE_SIMPLE 0

• #define REPLACE_CHANNEL 1









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

386 File Documentation





9.21 ImageInformation.hh File Reference

#include "WImage/CoeffInformation.hh"

#include "WImage/Image.hh"

Include dependency graph for ImageInformation.hh:



ImageInformation.hh









WImage/CoeffInformation.hh









WImage/Image.hh









WImage/RowVector.hh WImage/ColumnVector.hh WImage/FileName.hh WImage/FullVector.hh WImage/GreymapWriter.hh WImage/GreymapReader.hh









WImage/ImageVector.hh WImage/GreymapFile.hh fstream









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



ImageInformation.hh









Histogram.hh









WTools.hh









Classes

• class ImageInformation





Defines

• #define PII_YPOS(info, pos) (((info) → at (pos)).ypos ())

• #define PII_XPOS(info, pos) (((info) → at (pos)).xpos ())

• #define PII_XYPOS(info, pos) (((info) → at (pos)).xypos ())



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.21 ImageInformation.hh File Reference 387





• #define II_YPOS(info, pos) (((info).at (pos)).ypos ())

• #define II_XPOS(info, pos) (((info).at (pos)).xpos ())

• #define II_XYPOS(info, pos) (((info).at (pos)).xypos ())





Typedefs

• typedef bool(∗ cipredicate )(const CoeffInformation ∗c1, const CoeffInformation

∗c2)









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

388 File Documentation





9.22 ImageResizer.hh File Reference

#include "WImage/ColorImage.hh"

#include "Wave/WaveletTransform.hh"

Include dependency graph for ImageResizer.hh:



ImageResizer.hh









Wave/WaveletTransform.hh WImage/ColorImage.hh









WImage/CoeffInformation.hh WImage/ColorBuffer.hh









WImage/Image.hh









Wave/Wavelet.hh WImage/FullVector.hh WImage/ColumnVector.hh WImage/RowVector.hh WImage/GreymapWriter.hh WImage/GreymapReader.hh WImage/FileName.hh









Wave/Filter.hh Wave/VectorPosition.hh WImage/ImageVector.hh WImage/GreymapFile.hh fstream









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









cfloat stdexcept string iostream









Classes

• class ImageResizer









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.23 ImageVector.hh File Reference 389





9.23 ImageVector.hh File Reference

#include "WImage/miscdefs.h"

#include "WImage/ImageArray.hh"

#include "WImage/ReferenceVector.hh"

Include dependency graph for ImageVector.hh:



ImageVector.hh









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



ImageVector.hh









RowVector.hh ColumnVector.hh FullVector.hh









Image.hh









PixmapFile.hh ColorBuffer.hh CoeffInformation.hh









PixmapReader.hh PixmapWriter.hh StillImage.hh ColorImage.hh WaveletTransform.hh ImageInformation.hh









JpgReader.hh PfcReader.hh PpmReader.hh JpgWriter.hh PfcWriter.hh PpmWriter.hh VideoFrame.hh MagickInter.hh ColorVideo.hh ImageResizer.hh PyramidTransform.hh









WImage.hh StandardTransform.hh PyramidTree.hh Histogram.hh









Wave.hh ImageDenoiser.hh ImageComparison.hh









WTools.hh









Classes

• class ImageVector









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

390 File Documentation





9.24 JpgReader.hh File Reference

#include "WImage/PixmapReader.hh"

Include dependency graph for JpgReader.hh:



JpgReader.hh









WImage/PixmapReader.hh









WImage/PixmapFile.hh









WImage/Image.hh









WImage/ColumnVector.hh WImage/RowVector.hh WImage/FullVector.hh WImage/GreymapWriter.hh WImage/GreymapReader.hh WImage/FileName.hh









WImage/ImageVector.hh WImage/GreymapFile.hh fstream









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









cfloat stdexcept string iostream









Classes

• class JpgReader









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.25 JpgWriter.hh File Reference 391





9.25 JpgWriter.hh File Reference

#include "WImage/PixmapWriter.hh"

Include dependency graph for JpgWriter.hh:



JpgWriter.hh









WImage/PixmapWriter.hh









WImage/PixmapFile.hh









WImage/Image.hh









WImage/RowVector.hh WImage/ColumnVector.hh WImage/FileName.hh WImage/FullVector.hh WImage/GreymapWriter.hh WImage/GreymapReader.hh









WImage/ImageVector.hh WImage/GreymapFile.hh fstream









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









cfloat stdexcept string iostream









Classes

• class JpgWriter









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

392 File Documentation





9.26 MagickInter.hh File Reference

#include

#include

#include

#include

Include dependency graph for MagickInter.hh:



MagickInter.hh









memory WImage/ColorImage.hh Magick++/Image.h









WImage/ColorBuffer.hh









WImage/Image.hh









WImage/ColumnVector.hh WImage/FullVector.hh WImage/FileName.hh WImage/RowVector.hh WImage/GreymapWriter.hh WImage/GreymapReader.hh









WImage/ImageVector.hh WImage/GreymapFile.hh fstream









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









string cfloat stdexcept iostream









Namespaces



• namespace MagickInter





Functions



• Magick::Image MagickInter::magickImageFromColorImageWithTransparency

(ColorImage &img, bool withTransparency=false, coeff

∗transparentColors=NULL, int colorBytes=1)

• Magick::Image MagickInter::magickImageFromColorImage (ColorImage

&img)

• std::auto_ptr MagickInter::colorImageFromMagickImage

(Magick::Image &img)

• std::auto_ptr MagickInter::obtainColorImage (const std::string

&inFile)

• void MagickInter::writeColorImage (ColorImage &img, const std::string &out-

File, int quality=100)



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.26 MagickInter.hh File Reference 393





• void MagickInter::writeColorImageWithTransparency (ColorImage &img,

const std::string &outFile, int quality=100, bool withTransparency=false, coeff

∗transparentColors=NULL, int colorBytes=1)

• void MagickInter::scaleAndWriteColorImage (ColorImage &img, int rows, int

cols, const std::string &outFile, int quality=100)









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

394 File Documentation





9.27 MirrorPosition.hh File Reference

#include "Wave/VectorPosition.hh"

Include dependency graph for MirrorPosition.hh:



MirrorPosition.hh









Wave/VectorPosition.hh









WImage/ReferenceVector.hh









WImage/miscdefs.h









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



MirrorPosition.hh









Wave.hh









WTools.hh









Classes

• class MirrorPosition









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.28 miscdefs.h File Reference 395





9.28 miscdefs.h File Reference

#include

#include

#include

#include

Include dependency graph for miscdefs.h:



miscdefs.h









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:

miscdefs.h









ReferenceVector.hh tools.h ppmlib.h









NTree.hh ImageVector.hh GreymapFile.hh









FullVector.hh RowVector.hh ColumnVector.hh GreymapReader.hh GreymapWriter.hh VideoFile.hh









VectorPosition.hh Filter.hh Image.hh RawReader.hh PfgReader.hh PgmReader.hh RawWriter.hh PfgWriter.hh PgmWriter.hh VideoReader.hh VideoWriter.hh









Wavelet.hh ImageComparison.hh CoeffInformation.hh PixmapFile.hh VidReader.hh AviReader.hh AviWriter.hh VidWriter.hh









PeriodicPosition.hh MirrorPosition.hh WaveletTransform.hh ImageInformation.hh PixmapWriter.hh PixmapReader.hh WImage.hh









PyramidTransform.hh StandardTransform.hh ImageResizer.hh JpgReader.hh PfcReader.hh PpmReader.hh









PyramidTree.hh Wave.hh









ImageDenoiser.hh Histogram.hh









WTools.hh









Defines

• #define NEW(a) new a

• #define DELETE(a) delete (a), (a) = NULL

• #define DELETEAR(a) delete [ ] (a), (a) = NULL

• #define DELETENOTNULL(a) if (a) { DELETE (a); } else {}

• #define DELETENOTNULLAR(a) if (a) { DELETEAR (a); } else {}

• #define COEFF_EPSILON ((coeff)DBL_EPSILON)

• #define COEFF_MAX ((coeff)DBL_MAX)

• #define COEFF_MIN ((coeff)DBL_MIN)

• #define MIN(x, y) ((x) (y)? (x): (y))

• #define DIV2(x) ((unsigned)(x)>>1u)

• #define MUL2(x) ((unsigned)(x)

#include

#include "../NTree.cc"

Include dependency graph for NTree.hh:



NTree.hh









WImage/miscdefs.h ../NTree.cc









stdexcept cfloat string iostream









This graph shows which files directly or indirectly include this file:



NTree.hh









PyramidTree.hh









ImageDenoiser.hh









WTools.hh









Classes

• class NTree









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

398 File Documentation





9.30 PeriodicPosition.hh File Reference

#include "Wave/VectorPosition.hh"

Include dependency graph for PeriodicPosition.hh:



PeriodicPosition.hh









Wave/VectorPosition.hh









WImage/ReferenceVector.hh









WImage/miscdefs.h









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



PeriodicPosition.hh









Wave.hh









WTools.hh









Classes

• class PeriodicPosition









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.31 PfcReader.hh File Reference 399





9.31 PfcReader.hh File Reference

#include "WImage/PixmapReader.hh"

Include dependency graph for PfcReader.hh:



PfcReader.hh









WImage/PixmapReader.hh









WImage/PixmapFile.hh









WImage/Image.hh









WImage/ColumnVector.hh WImage/RowVector.hh WImage/FullVector.hh WImage/GreymapWriter.hh WImage/GreymapReader.hh WImage/FileName.hh









WImage/ImageVector.hh WImage/GreymapFile.hh fstream









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









cfloat stdexcept string iostream









Classes

• class PfcReader









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

400 File Documentation





9.32 PfcWriter.hh File Reference

#include "WImage/PixmapWriter.hh"

Include dependency graph for PfcWriter.hh:



PfcWriter.hh









WImage/PixmapWriter.hh









WImage/PixmapFile.hh









WImage/Image.hh









WImage/RowVector.hh WImage/ColumnVector.hh WImage/FileName.hh WImage/FullVector.hh WImage/GreymapWriter.hh WImage/GreymapReader.hh









WImage/ImageVector.hh WImage/GreymapFile.hh fstream









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









cfloat stdexcept string iostream









Classes

• class PfcWriter









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.33 PfgReader.hh File Reference 401





9.33 PfgReader.hh File Reference

#include "WImage/GreymapReader.hh"

Include dependency graph for PfgReader.hh:



PfgReader.hh









WImage/GreymapReader.hh









WImage/GreymapFile.hh fstream









WImage/ImageArray.hh WImage/miscdefs.h









../ImageArray.cc cfloat stdexcept string iostream









Classes

• class PfgReader









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

402 File Documentation





9.34 PfgWriter.hh File Reference

#include "WImage/GreymapWriter.hh"

Include dependency graph for PfgWriter.hh:



PfgWriter.hh









WImage/GreymapWriter.hh









WImage/GreymapFile.hh









WImage/ImageArray.hh WImage/miscdefs.h









../ImageArray.cc cfloat stdexcept string iostream









Classes

• class PfgWriter









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.35 PgmReader.hh File Reference 403





9.35 PgmReader.hh File Reference

#include "WImage/GreymapReader.hh"

Include dependency graph for PgmReader.hh:



PgmReader.hh









WImage/GreymapReader.hh









WImage/GreymapFile.hh fstream









WImage/ImageArray.hh WImage/miscdefs.h









../ImageArray.cc cfloat stdexcept string iostream









Classes

• class PgmReader









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

404 File Documentation





9.36 PgmWriter.hh File Reference

#include "WImage/GreymapWriter.hh"

Include dependency graph for PgmWriter.hh:



PgmWriter.hh









WImage/GreymapWriter.hh









WImage/GreymapFile.hh









WImage/ImageArray.hh WImage/miscdefs.h









../ImageArray.cc cfloat stdexcept string iostream









Classes

• class PgmWriter









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.37 PixmapFile.hh File Reference 405





9.37 PixmapFile.hh File Reference

#include "WImage/Image.hh"

#include "WImage/miscdefs.h"

Include dependency graph for PixmapFile.hh:



PixmapFile.hh









WImage/Image.hh









WImage/RowVector.hh WImage/ColumnVector.hh WImage/FileName.hh WImage/FullVector.hh WImage/GreymapWriter.hh WImage/GreymapReader.hh









WImage/ImageVector.hh WImage/GreymapFile.hh fstream









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



PixmapFile.hh









PixmapReader.hh PixmapWriter.hh









JpgReader.hh PfcReader.hh PpmReader.hh JpgWriter.hh PfcWriter.hh PpmWriter.hh









Classes

• class PixmapFile









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

406 File Documentation





9.38 PixmapReader.hh File Reference

#include "WImage/PixmapFile.hh"

#include

Include dependency graph for PixmapReader.hh:



PixmapReader.hh









WImage/PixmapFile.hh









WImage/Image.hh









WImage/ColumnVector.hh WImage/RowVector.hh WImage/FullVector.hh WImage/GreymapWriter.hh WImage/GreymapReader.hh WImage/FileName.hh









WImage/ImageVector.hh WImage/GreymapFile.hh fstream









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



PixmapReader.hh









JpgReader.hh PfcReader.hh PpmReader.hh









Classes

• class PixmapReader









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.39 PixmapWriter.hh File Reference 407





9.39 PixmapWriter.hh File Reference

#include "WImage/PixmapFile.hh"

Include dependency graph for PixmapWriter.hh:



PixmapWriter.hh









WImage/PixmapFile.hh









WImage/Image.hh









WImage/RowVector.hh WImage/ColumnVector.hh WImage/FileName.hh WImage/FullVector.hh WImage/GreymapWriter.hh WImage/GreymapReader.hh









WImage/ImageVector.hh WImage/GreymapFile.hh fstream









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



PixmapWriter.hh









JpgWriter.hh PfcWriter.hh PpmWriter.hh









Classes

• class PixmapWriter









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

408 File Documentation





9.40 ppmlib.h File Reference

#include "WImage/miscdefs.h"

#include

Include dependency graph for ppmlib.h:



ppmlib.h









WImage/miscdefs.h stdio.h









cfloat stdexcept string iostream









Functions

• pixel ∗ ppm_read (const char ∗fname, int ∗height, int ∗width, int ∗cmax)

• int ppm_write (const char ∗fname, pixel ∗pic, int height, int width, int cmax)

• pixel ∗ ppm_fromStream (FILE ∗in, int ∗height, int ∗width, int ∗cmax)

• int ppm_toStream (FILE ∗out, pixel ∗pic, int height, int width, int cmax)





9.40.1 Function Documentation



9.40.1.1 pixel∗ ppm_fromStream (FILE ∗ in, int ∗ height, int ∗ width, int ∗

cmax)



Read a PPM file from an open stream.



Parameters:

in the open input stream

height the number of pixel rows, returned by the function

width the number of pixel cols, returned by the function

cmax the number of colors, returned by the function



Returns:

an array containing the pixels as RGB triples if successful else NULL







9.40.1.2 int ppm_toStream (FILE ∗ out, pixel ∗ pic, int height, int width, int

cmax)



Write a PPM file to an open stream



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.40 ppmlib.h File Reference 409



Parameters:

out the open output stream

pic the image as an array of RGB triples

height the number of pixel rows

width the number of pixel cols

cmax the maximum color value



Returns:

0 if successful else -1







9.40.1.3 int ppm_write (const char ∗ fname, pixel ∗ pic, int height, int width,

int cmax)



Write a PPM file to the filesystem



Parameters:

fname the filename

pic the image as an array of RGB triples

height the number of pixel rows

width the number of pixel cols

cmax the maximum color value



Returns:

0 if successful else -1









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

410 File Documentation





9.41 PpmReader.hh File Reference

#include "WImage/PixmapReader.hh"

Include dependency graph for PpmReader.hh:



PpmReader.hh









WImage/PixmapReader.hh









WImage/PixmapFile.hh









WImage/Image.hh









WImage/ColumnVector.hh WImage/RowVector.hh WImage/FullVector.hh WImage/GreymapWriter.hh WImage/GreymapReader.hh WImage/FileName.hh









WImage/ImageVector.hh WImage/GreymapFile.hh fstream









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









cfloat stdexcept string iostream









Classes

• class PpmReader









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.42 PpmWriter.hh File Reference 411





9.42 PpmWriter.hh File Reference

#include "WImage/PixmapWriter.hh"

Include dependency graph for PpmWriter.hh:



PpmWriter.hh









WImage/PixmapWriter.hh









WImage/PixmapFile.hh









WImage/Image.hh









WImage/RowVector.hh WImage/ColumnVector.hh WImage/FileName.hh WImage/FullVector.hh WImage/GreymapWriter.hh WImage/GreymapReader.hh









WImage/ImageVector.hh WImage/GreymapFile.hh fstream









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









cfloat stdexcept string iostream









Classes

• class PpmWriter









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

412 File Documentation





9.43 PyramidTransform.hh File Reference

#include "Wave/WaveletTransform.hh"

#include "WImage/miscdefs.h"

Include dependency graph for PyramidTransform.hh:



PyramidTransform.hh









Wave/WaveletTransform.hh









WImage/CoeffInformation.hh









WImage/Image.hh









Wave/Wavelet.hh WImage/RowVector.hh WImage/FullVector.hh WImage/ColumnVector.hh WImage/GreymapWriter.hh WImage/GreymapReader.hh WImage/FileName.hh









Wave/Filter.hh Wave/VectorPosition.hh WImage/ImageVector.hh WImage/GreymapFile.hh fstream









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



PyramidTransform.hh









PyramidTree.hh









Wave.hh ImageDenoiser.hh









WTools.hh









Classes

• class PyramidTransform









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.44 PyramidTree.hh File Reference 413





9.44 PyramidTree.hh File Reference

#include "WTools/NTree.hh"

#include "WImage/CoeffInformation.hh"

#include "Wave/PyramidTransform.hh"

Include dependency graph for PyramidTree.hh:



PyramidTree.hh









Wave/PyramidTransform.hh









Wave/WaveletTransform.hh









WImage/CoeffInformation.hh









WImage/Image.hh









Wave/Wavelet.hh WImage/FileName.hh WImage/RowVector.hh WImage/FullVector.hh WImage/ColumnVector.hh WImage/GreymapWriter.hh WImage/GreymapReader.hh









Wave/Filter.hh Wave/VectorPosition.hh WImage/ImageVector.hh WImage/GreymapFile.hh fstream









WTools/NTree.hh WImage/ReferenceVector.hh WImage/ImageArray.hh









../NTree.cc WImage/miscdefs.h ../ImageArray.cc









iostream stdexcept cfloat string









This graph shows which files directly or indirectly include this file:



PyramidTree.hh









ImageDenoiser.hh









WTools.hh









Classes

• class PyramidTree









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

414 File Documentation





9.45 RawReader.hh File Reference

#include "WImage/GreymapReader.hh"

Include dependency graph for RawReader.hh:



RawReader.hh









WImage/GreymapReader.hh









WImage/GreymapFile.hh fstream









WImage/ImageArray.hh WImage/miscdefs.h









../ImageArray.cc cfloat stdexcept string iostream









Classes

• class RawReader









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.46 RawWriter.hh File Reference 415





9.46 RawWriter.hh File Reference

#include "WImage/GreymapWriter.hh"

Include dependency graph for RawWriter.hh:



RawWriter.hh









WImage/GreymapWriter.hh









WImage/GreymapFile.hh









WImage/ImageArray.hh WImage/miscdefs.h









../ImageArray.cc cfloat stdexcept string iostream









Classes

• class RawWriter









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

416 File Documentation





9.47 ReferenceVector.hh File Reference

#include "WImage/miscdefs.h"

Include dependency graph for ReferenceVector.hh:



ReferenceVector.hh









WImage/miscdefs.h









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



ReferenceVector.hh









ImageVector.hh









FullVector.hh RowVector.hh ColumnVector.hh









Image.hh VectorPosition.hh









PixmapFile.hh ColorBuffer.hh CoeffInformation.hh Wavelet.hh PeriodicPosition.hh









PixmapReader.hh PixmapWriter.hh ImageInformation.hh StillImage.hh ColorImage.hh WaveletTransform.hh









JpgReader.hh PfcReader.hh PpmReader.hh JpgWriter.hh PfcWriter.hh PpmWriter.hh VideoFrame.hh MagickInter.hh ColorVideo.hh ImageResizer.hh PyramidTransform.hh









Histogram.hh WImage.hh PyramidTree.hh StandardTransform.hh MirrorPosition.hh









ImageComparison.hh ImageDenoiser.hh Wave.hh









WTools.hh









Classes

• class ReferenceVector









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.48 RowVector.hh File Reference 417





9.48 RowVector.hh File Reference

#include "WImage/ImageVector.hh"

Include dependency graph for RowVector.hh:



RowVector.hh









WImage/ImageVector.hh









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



RowVector.hh









Image.hh









ColorBuffer.hh CoeffInformation.hh PixmapFile.hh









StillImage.hh ColorImage.hh WaveletTransform.hh ImageInformation.hh PixmapReader.hh PixmapWriter.hh









VideoFrame.hh ColorVideo.hh MagickInter.hh ImageResizer.hh PyramidTransform.hh JpgReader.hh PfcReader.hh PpmReader.hh JpgWriter.hh PfcWriter.hh PpmWriter.hh









WImage.hh StandardTransform.hh PyramidTree.hh Histogram.hh









Wave.hh ImageDenoiser.hh ImageComparison.hh









WTools.hh









Classes

• class RowVector









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

418 File Documentation





9.49 StandardTransform.hh File Reference

#include "Wave/WaveletTransform.hh"

Include dependency graph for StandardTransform.hh:



StandardTransform.hh









Wave/WaveletTransform.hh









WImage/CoeffInformation.hh









WImage/Image.hh









Wave/Wavelet.hh WImage/ColumnVector.hh WImage/RowVector.hh WImage/FullVector.hh WImage/GreymapReader.hh WImage/FileName.hh WImage/GreymapWriter.hh









Wave/Filter.hh Wave/VectorPosition.hh WImage/ImageVector.hh fstream WImage/GreymapFile.hh









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



StandardTransform.hh









Wave.hh









WTools.hh









Classes

• class StandardTransform









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.50 StillImage.hh File Reference 419





9.50 StillImage.hh File Reference

#include "WImage/Image.hh"

Include dependency graph for StillImage.hh:



StillImage.hh









WImage/Image.hh









WImage/ColumnVector.hh WImage/RowVector.hh WImage/FullVector.hh WImage/GreymapWriter.hh WImage/GreymapReader.hh WImage/FileName.hh









WImage/ImageVector.hh WImage/GreymapFile.hh fstream









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



StillImage.hh









VideoFrame.hh









WImage.hh









Wave.hh









WTools.hh









Classes

• class StillImage









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

420 File Documentation





9.51 tools.h File Reference

#include "WImage/miscdefs.h"

Include dependency graph for tools.h:



tools.h









WImage/miscdefs.h









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



tools.h









WImage.hh









Wave.hh









WTools.hh









Functions

• pixel tools_coeff2pixel (coeff c)

• int tools_coeff2int (coeff c)

• bool tools_equals (double d1, double d2)

• bool tools_epsilons (double d1, double d2, double epsilon)

• bool tools_areaFromString (char a1, char a2, area &result)

• bool tools_areaFromString (char ∗a, area &result)

• const char ∗ tools_areaToString (const area a)

• bool tools_powerOfTwo (int value, int &power)

• int tools_startFromCenter (int pos, int length)

• int tools_fileSize (const char ∗fname)









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.52 VectorPosition.hh File Reference 421





9.52 VectorPosition.hh File Reference

#include "WImage/ReferenceVector.hh"

Include dependency graph for VectorPosition.hh:



VectorPosition.hh









WImage/ReferenceVector.hh









WImage/miscdefs.h









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



VectorPosition.hh









Wavelet.hh PeriodicPosition.hh









WaveletTransform.hh MirrorPosition.hh









ImageResizer.hh PyramidTransform.hh StandardTransform.hh









PyramidTree.hh Wave.hh









ImageDenoiser.hh









WTools.hh









Classes

• class VectorPosition









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

422 File Documentation





9.53 VideoArray.hh File Reference

#include "WImage/ImageArray.hh"

#include "../VideoArray.cc"

Include dependency graph for VideoArray.hh:



VideoArray.hh









WImage/ImageArray.hh ../VideoArray.cc









../ImageArray.cc









This graph shows which files directly or indirectly include this file:



VideoArray.hh









VideoFrame.hh VideoFile.hh









ColorVideo.hh VideoReader.hh VideoWriter.hh









AviReader.hh VidReader.hh AviWriter.hh VidWriter.hh









WImage.hh









Wave.hh









WTools.hh









Classes

• class VideoArray









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.54 VideoFile.hh File Reference 423





9.54 VideoFile.hh File Reference

#include "WImage/VideoArray.hh"

#include "WImage/miscdefs.h"

Include dependency graph for VideoFile.hh:



VideoFile.hh









WImage/VideoArray.hh WImage/miscdefs.h









WImage/ImageArray.hh ../VideoArray.cc cfloat stdexcept string iostream









../ImageArray.cc









This graph shows which files directly or indirectly include this file:



VideoFile.hh









VideoReader.hh VideoWriter.hh









AviReader.hh VidReader.hh AviWriter.hh VidWriter.hh









WImage.hh









Wave.hh









WTools.hh









Classes

• class VideoFile









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

424 File Documentation





9.55 VideoFrame.hh File Reference

#include "WImage/StillImage.hh"

#include "WImage/VideoArray.hh"

Include dependency graph for VideoFrame.hh:



VideoFrame.hh









WImage/StillImage.hh WImage/VideoArray.hh









WImage/Image.hh ../VideoArray.cc









WImage/ColumnVector.hh WImage/FullVector.hh WImage/FileName.hh WImage/RowVector.hh WImage/GreymapWriter.hh WImage/GreymapReader.hh









WImage/ImageVector.hh WImage/GreymapFile.hh fstream









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



VideoFrame.hh









WImage.hh









Wave.hh









WTools.hh









Classes

• class VideoFrame









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.56 VideoReader.hh File Reference 425





9.56 VideoReader.hh File Reference

#include "WImage/VideoFile.hh"

#include

Include dependency graph for VideoReader.hh:



VideoReader.hh









WImage/VideoFile.hh fstream









WImage/VideoArray.hh WImage/miscdefs.h









WImage/ImageArray.hh ../VideoArray.cc cfloat stdexcept string iostream









../ImageArray.cc









This graph shows which files directly or indirectly include this file:



VideoReader.hh









AviReader.hh VidReader.hh









WImage.hh









Wave.hh









WTools.hh









Classes

• class VideoReader









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

426 File Documentation





9.57 VideoWriter.hh File Reference

#include "WImage/VideoFile.hh"

Include dependency graph for VideoWriter.hh:



VideoWriter.hh









WImage/VideoFile.hh









WImage/VideoArray.hh WImage/miscdefs.h









WImage/ImageArray.hh ../VideoArray.cc cfloat stdexcept string iostream









../ImageArray.cc









This graph shows which files directly or indirectly include this file:



VideoWriter.hh









AviWriter.hh VidWriter.hh









Classes

• class VideoWriter









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.58 VidReader.hh File Reference 427





9.58 VidReader.hh File Reference

#include "WImage/VideoReader.hh"

Include dependency graph for VidReader.hh:



VidReader.hh









WImage/VideoReader.hh









WImage/VideoFile.hh fstream









WImage/VideoArray.hh WImage/miscdefs.h









WImage/ImageArray.hh ../VideoArray.cc cfloat stdexcept string iostream









../ImageArray.cc









This graph shows which files directly or indirectly include this file:



VidReader.hh









WImage.hh









Wave.hh









WTools.hh









Classes

• class VidReader









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

428 File Documentation





9.59 VidWriter.hh File Reference

#include "WImage/VideoWriter.hh"

Include dependency graph for VidWriter.hh:



VidWriter.hh









WImage/VideoWriter.hh









WImage/VideoFile.hh









WImage/VideoArray.hh WImage/miscdefs.h









WImage/ImageArray.hh ../VideoArray.cc cfloat stdexcept string iostream









../ImageArray.cc









Classes

• class VidWriter









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.60 Wave.hh File Reference 429





9.60 Wave.hh File Reference

#include "WImage.hh"

#include "WImage/RowVector.hh"

#include "WImage/ColumnVector.hh"

#include "WImage/FullVector.hh"

#include "WImage/StillImage.hh"

#include "Wave/StandardTransform.hh"

#include "Wave/PyramidTransform.hh"

#include "Wave/MirrorPosition.hh"

#include "Wave/PeriodicPosition.hh"

Include dependency graph for Wave.hh:



Wave.hh









WImage.hh Wave/StandardTransform.hh Wave/PeriodicPosition.hh Wave/MirrorPosition.hh









WImage/AviReader.hh wave_version.h WImage/VidReader.hh WImage/VideoFrame.hh WImage/ColorVideo.hh Wave/PyramidTransform.hh









WImage/VideoReader.hh WImage/StillImage.hh WImage/ColorImage.hh Wave/WaveletTransform.hh









WImage/VideoFile.hh WImage/ColorBuffer.hh WImage/CoeffInformation.hh Wave/Wavelet.hh









WImage/VideoArray.hh WImage/Image.hh Wave/Filter.hh Wave/VectorPosition.hh









../VideoArray.cc WImage/GreymapReader.hh WImage/GreymapWriter.hh WImage/FileName.hh WImage/FullVector.hh WImage/ColumnVector.hh WImage/RowVector.hh









fstream WImage/GreymapFile.hh WImage/ImageVector.hh









WImage/ImageArray.hh WImage/tools.h WImage/ReferenceVector.hh









../ImageArray.cc WImage/miscdefs.h









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



Wave.hh









WTools.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

430 File Documentation





9.61 wave_version.h File Reference

This graph shows which files directly or indirectly include this file:



wave_version.h









WImage.hh









Wave.hh









WTools.hh









Defines

• #define WAVE_VERSION "1.2-cvs"





9.61.1 Define Documentation



9.61.1.1 #define WAVE_VERSION "1.2-cvs"



Definition at line 14 of file wave_version.h.









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.62 Wavelet.hh File Reference 431





9.62 Wavelet.hh File Reference

#include "WImage/ReferenceVector.hh"

#include "Wave/VectorPosition.hh"

#include "Wave/Filter.hh"

Include dependency graph for Wavelet.hh:



Wavelet.hh









Wave/VectorPosition.hh









WImage/ReferenceVector.hh Wave/Filter.hh









WImage/miscdefs.h









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



Wavelet.hh









WaveletTransform.hh









StandardTransform.hh PyramidTransform.hh ImageResizer.hh









Wave.hh PyramidTree.hh









ImageDenoiser.hh









WTools.hh









Classes

• class Wavelet









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

432 File Documentation





9.63 WaveletTransform.hh File Reference

#include "Wave/Wavelet.hh"

#include "WImage/CoeffInformation.hh"

#include "Wave/Filter.hh"

Include dependency graph for WaveletTransform.hh:



WaveletTransform.hh









WImage/CoeffInformation.hh









WImage/Image.hh









Wave/Wavelet.hh WImage/ColumnVector.hh WImage/RowVector.hh WImage/FullVector.hh WImage/GreymapReader.hh WImage/FileName.hh WImage/GreymapWriter.hh









Wave/Filter.hh Wave/VectorPosition.hh WImage/ImageVector.hh fstream WImage/GreymapFile.hh









WImage/ReferenceVector.hh WImage/ImageArray.hh









WImage/miscdefs.h ../ImageArray.cc









cfloat stdexcept string iostream









This graph shows which files directly or indirectly include this file:



WaveletTransform.hh









StandardTransform.hh PyramidTransform.hh ImageResizer.hh









Wave.hh PyramidTree.hh









ImageDenoiser.hh









WTools.hh









Classes

• class WaveletTransform









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.64 WImage.hh File Reference 433





9.64 WImage.hh File Reference







#include "wave_version.h"

#include "WImage/RowVector.hh"

#include "WImage/ColumnVector.hh"

#include "WImage/FullVector.hh"

#include "WImage/StillImage.hh"

#include "WImage/ColorImage.hh"

#include "WImage/ColorVideo.hh"

#include "WImage/VideoFrame.hh"

#include "WImage/AviReader.hh"

#include "WImage/VidReader.hh"

#include "WImage/CoeffInformation.hh"

#include "WImage/tools.h"

Include dependency graph for WImage.hh:









WImage.hh









wave_version.h WImage/ColorVideo.hh WImage/VideoFrame.hh WImage/AviReader.hh WImage/VidReader.hh









WImage/ColorImage.hh WImage/StillImage.hh WImage/VideoReader.hh









WImage/ColorBuffer.hh WImage/VideoFile.hh WImage/CoeffInformation.hh









WImage/Image.hh WImage/VideoArray.hh WImage/tools.h









WImage/RowVector.hh WImage/ColumnVector.hh WImage/FullVector.hh WImage/FileName.hh WImage/GreymapWriter.hh WImage/GreymapReader.hh ../VideoArray.cc









WImage/ImageVector.hh WImage/GreymapFile.hh fstream









WImage/ReferenceVector.hh WImage/ImageArray.hh









../ImageArray.cc WImage/miscdefs.h









cfloat stdexcept string iostream









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

434 File Documentation





This graph shows which files directly or indirectly include this file:



WImage.hh









Wave.hh









WTools.hh









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

9.65 WTools.hh File Reference 435





9.65 WTools.hh File Reference

#include "WImage.hh"

#include "Wave.hh"

#include "WTools/ImageInformation.hh"

#include "WTools/ImageComparison.hh"

#include "WTools/Histogram.hh"

#include "WTools/ImageDenoiser.hh"

Include dependency graph for WTools.hh:



WTools.hh









WTools/Histogram.hh Wave.hh WTools/ImageDenoiser.hh









WImage.hh WTools/ImageInformation.hh Wave/PeriodicPosition.hh Wave/StandardTransform.hh WTools/PyramidTree.hh









WImage/VidReader.hh WImage/AviReader.hh WImage/ColorVideo.hh WImage/VideoFrame.hh wave_version.h Wave/PyramidTransform.hh









WImage/VideoReader.hh WImage/ColorImage.hh WImage/StillImage.hh Wave/MirrorPosition.hh Wave/WaveletTransform.hh









WImage/VideoFile.hh WImage/ColorBuffer.hh WImage/CoeffInformation.hh WTools/ImageComparison.hh Wave/Wavelet.hh









WImage/VideoArray.hh WImage/Image.hh Wave/VectorPosition.hh Wave/Filter.hh









../VideoArray.cc WImage/GreymapReader.hh WImage/FullVector.hh WImage/GreymapWriter.hh WImage/FileName.hh WImage/RowVector.hh WImage/ColumnVector.hh









fstream WImage/GreymapFile.hh WImage/ImageVector.hh WImage/tools.h









WImage/ImageArray.hh WImage/ReferenceVector.hh WTools/NTree.hh









../ImageArray.cc WImage/miscdefs.h ../NTree.cc









cfloat string stdexcept iostream









Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

Index



∼CoeffInformation NTree, 223

CoeffInformation, 58 ∼PfcReader

∼ColorBuffer PfcReader, 234

ColorBuffer, 67 ∼PfcWriter

∼ColorImage PfcWriter, 237

ColorImage, 77 ∼PfgReader

∼ColorVideo PfgReader, 239

ColorVideo, 87 ∼PfgWriter

∼ColumnVector PfgWriter, 241

ColumnVector, 100 ∼PgmReader

∼FileName PgmReader, 243

FileName, 105 ∼PgmWriter

∼Filter PgmWriter, 245

Filter, 110 ∼PixmapFile

∼FilterSet PixmapFile, 247

FilterSet, 113 ∼PixmapReader

∼FullVector PixmapReader, 251

FullVector, 117 ∼PixmapWriter

∼GreymapFile PixmapWriter, 254

GreymapFile, 119 ∼PpmReader

∼GreymapReader PpmReader, 258

GreymapReader, 122 ∼PpmWriter

∼GreymapWriter PpmWriter, 261

GreymapWriter, 125 ∼PyramidTree

∼Histogram PyramidTree, 266

Histogram, 128 ∼RawReader

∼Image RawReader, 270

Image, 135 ∼RawWriter

∼ImageArray RawWriter, 274

ImageArray, 157 ∼ReferenceVector

∼ImageComparison ReferenceVector, 276

ImageComparison, 167 ∼RowVector

∼ImageDenoiser RowVector, 282

ImageDenoiser, 174 ∼StillImage

∼ImageInformation StillImage, 289

ImageInformation, 181 ∼VectorPosition

∼ImageResizer VectorPosition, 302

ImageResizer, 194 ∼VidReader

∼ImageVector VidReader, 328

ImageVector, 204 ∼VidWriter

∼NTree VidWriter, 331

INDEX 437





∼VideoArray a_codecf_off

VideoArray, 309 track_s, 300

∼VideoFile a_codech_off

VideoFile, 317 track_s, 300

∼VideoFrame a_fmt

VideoFrame, 321 track_s, 298

∼VideoReader a_rate

VideoReader, 323 track_s, 299

∼VideoWriter a_vbr

VideoWriter, 326 track_s, 299

∼Wavelet aaverage

Wavelet, 335 Image, 149

∼WaveletTransform ImageArray, 161

WaveletTransform, 342 ImageInformation, 187

__attribute__ StillImage, 295

avilib.h, 361 WaveletTransform, 344

_avistdindex_chunk, 33 abs

aIndex, 34 Image, 138

bIndexSubType, 34 ImageArray, 159

bIndexType, 34 StillImage, 290

dwChunkId, 34 VideoArray, 311

dwReserved3, 34 add

dwSize, 34 Histogram, 130

fcc, 34 addGenerations

nEntriesInUse, 34 PyramidTree, 267

qwBaseOffset, 34 ahigh

wLongsPerEntry, 34 FilterSet, 113

_avistdindex_entry, 36 aIndex

dwOffset, 36 _avistdindex_chunk, 34

dwSize, 36 _avisuperindex_chunk, 38

_avisuperindex_chunk, 37 alAVISTREAMINFO

aIndex, 38 avilib.h, 363

bIndexSubType, 37 alBITMAPINFOHEADER, 40

bIndexType, 38 bi_bit_count, 40

dwChunkId, 38 bi_clr_important, 41

dwReserved, 38 bi_clr_used, 41

dwSize, 37 bi_compression, 40

fcc, 37 bi_height, 40

nEntriesInUse, 38 bi_planes, 40

stdindex, 38 bi_size, 40

wLongsPerEntry, 37 bi_size_image, 41

_avisuperindex_entry, 39 bi_width, 40

dwDuration, 39 bi_x_pels_per_meter, 41

dwSize, 39 bi_y_pels_per_meter, 41

qwOffset, 39 alow

FilterSet, 113

a_bits alWAVEFORMATEX

track_s, 299 avilib.h, 363

a_chans amax

track_s, 298 Image, 148



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

438 INDEX





ImageArray, 160 ImageInformation, 182

ImageInformation, 186 ImageVector, 204

StillImage, 294 ReferenceVector, 277

amin RowVector, 282

Image, 148 StillImage, 289

ImageArray, 160 VideoArray, 309, 310

ImageInformation, 187 atf

StillImage, 295 Filter, 111

analysis audio_bytes

Wavelet, 335 track_s, 299

WaveletTransform, 342 audio_chunks

anastep track_s, 299

Wavelet, 336 audio_index

anasteps track_s, 300

Image, 146 audio_index_entry, 42

Antonini len, 42

Wave, 22 pos, 42

anum tot, 42

avi_t, 46 audio_posb

aocmp track_s, 299

CoeffInformation, 61 audio_posc

append track_s, 299

ImageInformation, 181 audio_strn

appendAt track_s, 299

NTree, 225, 226 audio_superindex

appendNGenerations track_s, 300

NTree, 227 audio_tag

aptr track_s, 299

avi_t, 47 avcmp

area CoeffInformation, 62

WImage, 16 averageColor

areaINVALID ColorBuffer, 71

WImage, 16 ColorVideo, 95

areas averageImage

WImage, 20 ColorImage, 79

array AVI_append_audio

ImageArray, 164 avilib.h, 361

aryness AVI_audio_bits

NTree, 223 avilib.h, 363

asort AVI_audio_bytes

ImageInformation, 184 avilib.h, 363

asorted AVI_audio_channels

ImageInformation, 185 avilib.h, 363

at AVI_audio_chunks

ColumnVector, 100 avilib.h, 363

Filter, 110 AVI_audio_codecf_offset

FullVector, 117 avilib.h, 363

Histogram, 129 AVI_audio_codech_offset

Image, 137 avilib.h, 363

ImageArray, 157, 158 AVI_audio_format



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

INDEX 439





avilib.h, 363 avilib.h, 358

AVI_audio_mp3rate AVI_file_check

avilib.h, 363 avilib.h, 363

AVI_audio_padrate AVI_frame_rate

avilib.h, 363 avilib.h, 363

AVI_audio_rate AVI_frame_size

avilib.h, 363 avilib.h, 363

AVI_audio_size AVI_get_audio_position_index

avilib.h, 363 avilib.h, 363

AVI_audio_tracks AVI_get_audio_track

avilib.h, 363 avilib.h, 363

AVI_bytes_remain AVI_get_audio_vbr

avilib.h, 363 avilib.h, 363

AVI_bytes_written AVI_get_comment_fd

avilib.h, 363 avilib.h, 363

AVI_can_read_audio AVI_get_video_position

avilib.h, 363 avilib.h, 363

AVI_close AVI_INDEX_2FIELD

avilib.h, 363 avilib.h, 358

AVI_codec2str AVI_INDEX_IS_DATA

avilib.h, 363 avilib.h, 358

AVI_dump AVI_INDEX_OF_CHUNKS

avilib.h, 363 avilib.h, 358

AVI_dup_frame AVI_INDEX_OF_INDEXES

avilib.h, 363 avilib.h, 358

AVI_ERR_CLOSE AVI_info

avilib.h, 357 avilib.h, 363

AVI_ERR_NO_AVI AVI_max_size

avilib.h, 357 avilib.h, 363

AVI_ERR_NO_HDRL AVI_MAX_TRACKS

avilib.h, 357 avilib.h, 358

AVI_ERR_NO_IDX AVI_max_video_chunk

avilib.h, 357 avilib.h, 363

AVI_ERR_NO_MEM AVI_MODE_READ

avilib.h, 357 avilib.h, 358

AVI_ERR_NO_MOVI AVI_MODE_WRITE

avilib.h, 357 avilib.h, 358

AVI_ERR_NO_VIDS AVI_open_fd

avilib.h, 357 avilib.h, 363

AVI_ERR_NOT_PERM AVI_open_indexfd

avilib.h, 357 avilib.h, 363

AVI_ERR_OPEN AVI_open_input_file

avilib.h, 357 avilib.h, 363

AVI_ERR_READ AVI_open_input_indexfile

avilib.h, 357 avilib.h, 363

AVI_ERR_SIZELIM AVI_open_output_file

avilib.h, 358 avilib.h, 363

AVI_ERR_WRITE avi_parse_index_from_file

avilib.h, 358 avilib.h, 363

AVI_ERR_WRITE_INDEX avi_parse_input_file



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

440 INDEX





avilib.h, 363 height, 44

AVI_print_error idx, 46

avilib.h, 363 index_file, 47

AVI_read_audio is_opendml, 46

avilib.h, 363 last_len, 46

AVI_read_audio_chunk last_pos, 46

avilib.h, 363 max_idx, 45

AVI_read_data max_len, 45

avilib.h, 363 mode, 44

AVI_read_frame movi_start, 46

avilib.h, 363 must_use_index, 46

AVI_read_wave_header n_idx, 45

avilib.h, 363 pos, 45

AVI_read_wave_pcm_data total_frames, 46

avilib.h, 363 track, 45

AVI_scan v_codecf_off, 46

avilib.h, 363 v_codech_off, 45

AVI_seek_start video_frames, 45

avilib.h, 363 video_index, 46

AVI_set_audio video_pos, 45

avilib.h, 363 video_strn, 45

AVI_set_audio_bitrate video_superindex, 46

avilib.h, 363 video_tag, 45

AVI_set_audio_position wave_format_ex, 47

avilib.h, 363 width, 44

AVI_set_audio_position_index avi_update_header

avilib.h, 363 avilib.h, 363

AVI_set_audio_track AVI_video_codecf_offset

avilib.h, 363 avilib.h, 363

AVI_set_audio_vbr AVI_video_codech_offset

avilib.h, 363 avilib.h, 363

AVI_set_comment_fd AVI_video_compressor

avilib.h, 363 avilib.h, 363

AVI_set_video AVI_video_frames

avilib.h, 363 avilib.h, 363

AVI_set_video_position AVI_video_height

avilib.h, 363 avilib.h, 363

AVI_strerror AVI_video_width

avilib.h, 363 avilib.h, 363

AVI_syserror AVI_write_audio

avilib.h, 363 avilib.h, 363

avi_t, 43 AVI_write_frame

anum, 46 avilib.h, 363

aptr, 47 AVI_write_wave_header

bitmap_info_header, 47 avilib.h, 363

comment_fd, 47 AVI_write_wave_pcm_data

compressor, 44 avilib.h, 363

compressor2, 45 avilib.h, 353

fdes, 44 __attribute__, 361

fps, 44 alAVISTREAMINFO, 363



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

INDEX 441





alWAVEFORMATEX, 363 AVI_MODE_READ, 358

AVI_append_audio, 361 AVI_MODE_WRITE, 358

AVI_audio_bits, 363 AVI_open_fd, 363

AVI_audio_bytes, 363 AVI_open_indexfd, 363

AVI_audio_channels, 363 AVI_open_input_file, 363

AVI_audio_chunks, 363 AVI_open_input_indexfile, 363

AVI_audio_codecf_offset, 363 AVI_open_output_file, 363

AVI_audio_codech_offset, 363 avi_parse_index_from_file, 363

AVI_audio_format, 363 avi_parse_input_file, 363

AVI_audio_mp3rate, 363 AVI_print_error, 363

AVI_audio_padrate, 363 AVI_read_audio, 363

AVI_audio_rate, 363 AVI_read_audio_chunk, 363

AVI_audio_size, 363 AVI_read_data, 363

AVI_audio_tracks, 363 AVI_read_frame, 363

AVI_bytes_remain, 363 AVI_read_wave_header, 363

AVI_bytes_written, 363 AVI_read_wave_pcm_data, 363

AVI_can_read_audio, 363 AVI_scan, 363

AVI_close, 363 AVI_seek_start, 363

AVI_codec2str, 363 AVI_set_audio, 363

AVI_dump, 363 AVI_set_audio_bitrate, 363

AVI_dup_frame, 363 AVI_set_audio_position, 363

AVI_ERR_CLOSE, 357 AVI_set_audio_position_index, 363

AVI_ERR_NO_AVI, 357 AVI_set_audio_track, 363

AVI_ERR_NO_HDRL, 357 AVI_set_audio_vbr, 363

AVI_ERR_NO_IDX, 357 AVI_set_comment_fd, 363

AVI_ERR_NO_MEM, 357 AVI_set_video, 363

AVI_ERR_NO_MOVI, 357 AVI_set_video_position, 363

AVI_ERR_NO_VIDS, 357 AVI_strerror, 363

AVI_ERR_NOT_PERM, 357 AVI_syserror, 363

AVI_ERR_OPEN, 357 avi_update_header, 363

AVI_ERR_READ, 357 AVI_video_codecf_offset, 363

AVI_ERR_SIZELIM, 358 AVI_video_codech_offset, 363

AVI_ERR_WRITE, 358 AVI_video_compressor, 363

AVI_ERR_WRITE_INDEX, 358 AVI_video_frames, 363

AVI_file_check, 363 AVI_video_height, 363

AVI_frame_rate, 363 AVI_video_width, 363

AVI_frame_size, 363 AVI_write_audio, 363

AVI_get_audio_position_index, 363 AVI_write_frame, 363

AVI_get_audio_track, 363 AVI_write_wave_header, 363

AVI_get_audio_vbr, 363 AVI_write_wave_pcm_data, 363

AVI_get_comment_fd, 363 avistdindex_chunk, 361

AVI_get_video_position, 363 avistdindex_entry, 361

AVI_INDEX_2FIELD, 358 avisuperindex_chunk, 361

AVI_INDEX_IS_DATA, 358 avisuperindex_entry, 361

AVI_INDEX_OF_CHUNKS, 358 COMP_GCC, 358

AVI_INDEX_OF_INDEXES, 358 IBM_FORMAT_ADPCM, 359

AVI_info, 363 IBM_FORMAT_ALAW, 359

AVI_max_size, 363 IBM_FORMAT_MULAW, 359

AVI_MAX_TRACKS, 358 SYS_LINUX, 359

AVI_max_video_chunk, 363 SYS_UNIX, 359



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

442 INDEX





track_t, 361 AviWriter, 54

WAVE_FORMAT_ADPCM, 359 AviWriter, 55

WAVE_FORMAT_ALAW, 359 m_frameRate, 55

WAVE_FORMAT_DIGIFIX, 359 writefmt, 55

WAVE_FORMAT_DIGISTD, 359 AviWriter.hh, 366

WAVE_FORMAT_DSP_-

TRUESPEECH, 359 base

WAVE_FORMAT_DVI_ADPCM, FileName, 106

359 beautify

WAVE_FORMAT_GSM610, 360 ColorBuffer, 70

WAVE_FORMAT_IBM_CVSD, ColorImage, 79

360 ColorVideo, 94

WAVE_FORMAT_MULAW, 360 Image, 142

WAVE_FORMAT_OKI_ADPCM, bi_bit_count

360 alBITMAPINFOHEADER, 40

WAVE_FORMAT_PCM, 360 bi_clr_important

WAVE_FORMAT_UNKNOWN, alBITMAPINFOHEADER, 41

360 bi_clr_used

WAVE_FORMAT_YAMAHA_- alBITMAPINFOHEADER, 41

ADPCM, 360 bi_compression

AviReader, 48 alBITMAPINFOHEADER, 40

AviReader, 49 bi_height

fileDimensions, 50 alBITMAPINFOHEADER, 40

frameRate, 49 bi_planes

framesInFile, 49 alBITMAPINFOHEADER, 40

m_xsize, 50 bi_size

m_ysize, 50 alBITMAPINFOHEADER, 40

readfmt, 50 bi_size_image

AviReader.hh, 365 alBITMAPINFOHEADER, 41

avistdindex_chunk bi_width

avilib.h, 361 alBITMAPINFOHEADER, 40

avistdindex_entry bi_x_pels_per_meter

avilib.h, 361 alBITMAPINFOHEADER, 41

AVIStreamHeader, 52 bi_y_pels_per_meter

dwFlags, 52 alBITMAPINFOHEADER, 41

dwInitialFrames, 52 bIndexSubType

dwLength, 53 _avistdindex_chunk, 34

dwPriority, 52 _avisuperindex_chunk, 37

dwQuality, 53 bIndexType

dwRate, 53 _avistdindex_chunk, 34

dwSampleSize, 53 _avisuperindex_chunk, 38

dwScale, 52 bitmap_info_header

dwStart, 53 avi_t, 47

dwSuggestedBufferSize, 53 Brislawn

fccHandler, 52 Wave, 22

fccType, 52

avisuperindex_chunk calcDimensions

avilib.h, 361 ImageResizer, 196

avisuperindex_entry calcInnerStats

avilib.h, 361 ImageResizer, 197



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

INDEX 443





calcOptimization COEFF_EPSILON

ImageResizer, 197 WImage, 13

calcOuterStats COEFF_MAX

ImageResizer, 197 WImage, 13

calcStats COEFF_MIN

ImageResizer, 198 WImage, 13

card CoeffInformation, 57

NTree, 224 ∼CoeffInformation, 58

channel aocmp, 61

ColorImage, 77 avcmp, 62

channels CoeffInformation, 58

PixmapFile, 248 dump, 63

VideoFile, 317 equals, 62

childAt id, 59

NTree, 226 m_id, 65

chunk_struct, 56 m_misc, 65

id, 56 m_value, 64

len, 56 m_xposition, 64

cipredicate m_xyposition, 64

WTools, 25 m_yposition, 64

Classes for images, 11 misc, 59, 60

Classes for Wavelet Transforms, 21 operator!=, 63

clone operator=, 64

ColorImage, 79 operator==, 63

ColorVideo, 95 pcmp, 62

Image, 145 set, 60, 61

ImageArray, 162 socmp, 61

ImageInformation, 182 svcmp, 62

NTree, 225 val, 58, 60

StillImage, 293 xpos, 59

VideoArray, 314 xypos, 60

VideoFrame, 321 ypos, 59

cloneVideo CoeffInformation.hh, 367

VideoArray, 313 col

clrmodel Image, 136

WImage, 16 ColorBuffer, 66

cm_grey ∼ColorBuffer, 67

WImage, 16 averageColor, 71

cm_rgb beautify, 70

WImage, 16 ColorBuffer, 67

cm_unknown colormodel, 68

WImage, 16 colors, 68

cm_yuv cols, 72

WImage, 16 destroy, 72

cmpmse epsilons, 70

ImageComparison, 168 equals, 69

cmpsnr fileSize, 69

ImageComparison, 168 init, 72

coeff m_cmodel, 73

WImage, 15 m_colors, 73



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

444 INDEX





m_images, 73 clone, 95

m_isReference, 73 colormodelVideo, 88

m_xsize, 73 ColorVideo, 87

m_xysize, 73 current, 89

m_ysize, 73 currentFrame, 88

rows, 71 currentFrameChannel, 88

size, 72 destroy, 96

smax, 68 epsilons, 93

smin, 69 epsilonsFrames, 93

swapColors, 68 epsilonsVideo, 96

toPixmap, 71 equals, 93

truncate, 70 equalsFrames, 94

valadjust, 72 frameRate, 89

ColorBuffer.hh, 368 frames, 90

ColorImage, 75 init, 96

∼ColorImage, 77 m_arrays, 97

averageImage, 79 m_colorImage, 97

beautify, 79 m_current, 97

channel, 77 m_frameRate, 98

clone, 79 m_frames, 97

ColorImage, 76, 77 m_xyzsize, 97

copy, 79 read, 90, 91

crop, 80 reframe, 90

destroy, 83 resize, 90

fill, 81 smax, 92

fitInto, 82 smin, 92

init, 83 swapColors, 88

m_quality, 83 toPixmap, 95

paste, 80 truncate, 94

quality, 80 videoDimensions, 96

read, 77, 78 write, 91, 92

scale, 82 ColorVideo.hh, 370

shift, 81 cols

write, 78 ColorBuffer, 72

ColorImage.hh, 369 Image, 136

colorImageFromMagickImage ImageArray, 157

MagickInter, 28 ImageComparison, 167

colormodel RawReader, 270

ColorBuffer, 68 ColumnVector, 99

PixmapFile, 247 ∼ColumnVector, 100

VideoFile, 317, 318 at, 100

colormodelVideo ColumnVector, 100

ColorVideo, 88 go, 100

colors size, 101

ColorBuffer, 68 to, 101

lq, 215 update, 101

ColorVideo, 85 ColumnVector.hh, 371

∼ColorVideo, 87 comment_fd

averageColor, 95 avi_t, 47

beautify, 94 common



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

INDEX 445





wave_header, 333 Daub6

common_struct, 102 Wave, 22

dwAvgBytesPerSec, 102 Daub8

dwSamplesPerSec, 102 Wave, 22

wBitsPerSample, 102 debug.h, 372

wBlockAlign, 102 debug_printf

wChannels, 102 WImage, 17

wFormatTag, 102 DELETE

COMP_GCC WImage, 14

avilib.h, 358 DELETEAR

compressor WImage, 14

avi_t, 44 DELETENOTNULL

compressor2 WImage, 14

avi_t, 45 DELETENOTNULLAR

copy WImage, 14

ColorImage, 79 delta

Filter, 110 Histogram, 129

FilterSet, 114 denoise

Image, 145 ImageDenoiser, 174

ImageArray, 162 DENOISE_HH

ReferenceVector, 278 WTools, 24

VideoArray, 314 DENOISE_HL

copyCoeffs WTools, 24

ImageInformation, 188 DENOISE_LH

copyLeaves WTools, 24

NTree, 228 depth

crop PyramidTree, 267

ColorImage, 80 destroy

Image, 145 ColorBuffer, 72

CROP_AUTOMATICALLY ColorImage, 83

ImageResizer, 193 ColorVideo, 96

CROP_BOTH_OR_NONE destroyAt

ImageResizer, 193 NTree, 225

CROP_COLS details

ImageResizer, 193 lq, 215

CROP_ROWS difference

ImageResizer, 193 ImageComparison, 168

current dimcheck

ColorVideo, 89 Image, 153

VideoArray, 309 dir

currentFrame FileName, 106

ColorVideo, 88 distlq

currentFrameChannel ImageComparison, 168

ColorVideo, 88 distlqd

ImageComparison, 169

data DIV2

NTree, 226 WImage, 14

wave_header, 333 doanalysis

Daub4 PyramidTransform, 263

Wave, 22 StandardTransform, 285



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

446 INDEX





WaveletTransform, 350 _avistdindex_chunk, 34

doResize _avistdindex_entry, 36

ImageResizer, 200 _avisuperindex_chunk, 37

dos _avisuperindex_entry, 39

FileName, 106 dwStart

dosynthesis AVIStreamHeader, 53

PyramidTransform, 263 dwSuggestedBufferSize

StandardTransform, 285 AVIStreamHeader, 53

WaveletTransform, 350

DPRINTF epsilons

WImage, 14 ColorBuffer, 70

DRAWN ColorVideo, 93

WTools, 25 Image, 138

dump ImageArray, 162, 163

CoeffInformation, 63 StillImage, 291

Filter, 110 VideoArray, 312

FilterSet, 114 epsilonsAt

ImageInformation, 187 Image, 139

dwAvgBytesPerSec epsilonsFrames

common_struct, 102 ColorVideo, 93

dwChunkId VideoArray, 311

_avistdindex_chunk, 34 epsilonsVideo

_avisuperindex_chunk, 38 ColorVideo, 96

dwDuration VideoArray, 314

_avisuperindex_entry, 39 equals

dwFlags CoeffInformation, 62

AVIStreamHeader, 52 ColorBuffer, 69

dwInitialFrames ColorVideo, 93

AVIStreamHeader, 52 Image, 139

dwLength ImageArray, 163

AVIStreamHeader, 53 ImageInformation, 182

dwOffset NTree, 225

_avistdindex_entry, 36 StillImage, 291

dwPriority equalsFrames

AVIStreamHeader, 52 ColorVideo, 94

dwQuality VideoArray, 311

AVIStreamHeader, 53 expandImage

dwRate WaveletTransform, 343

AVIStreamHeader, 53 exportCoeffs

dwReserved Image, 144

_avisuperindex_chunk, 38 exportPixels

dwReserved3 Image, 144

_avistdindex_chunk, 34 ext

dwSampleSize FileName, 106

AVIStreamHeader, 53

dwSamplesPerSec fcc

common_struct, 102 _avistdindex_chunk, 34

dwScale _avisuperindex_chunk, 37

AVIStreamHeader, 52 fccHandler

dwSize AVIStreamHeader, 52



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

INDEX 447





fccType Filter.hh, 374

AVIStreamHeader, 52 filterFromString

fdes FilterSet, 114

avi_t, 44 FilterSet, 112

file ∼FilterSet, 113

FileName, 105 ahigh, 113

fileDimensions alow, 113

AviReader, 50 copy, 114

FileName, 104 dump, 114

∼FileName, 105 Filter, 111

base, 106 filterFromString, 114

dir, 106 FilterSet, 113

dos, 106 filterToString, 114

ext, 106 init, 114

file, 105 issym, 114

FileName, 104 m_analysisHigh, 114

guess, 105 m_analysisLow, 114

guessext, 107 m_symmetric, 114

isext, 105 m_synthesisHigh, 115

m_basename, 107 m_synthesisLow, 114

m_dirname, 107 shigh, 113

m_extension, 107 slow, 113

m_fname, 107 filterToString

m_ftype, 108 FilterSet, 114

m_isdos, 107 findChildPosition

toext, 105 PyramidTree, 267

FileName.hh, 373 first

fileSize Filter, 110

ColorBuffer, 69 fitInto

filetype ColorImage, 82

WImage, 16 Image, 151

fill fixDimensions

ColorImage, 81 ImageResizer, 197

Image, 147 FMT0

WaveletTransform, 350 WImage, 14

Filter, 109 fn_avi

∼Filter, 110 WImage, 17

at, 110 fn_jpg

atf, 111 WImage, 17

copy, 110 fn_pfi

dump, 110 WImage, 16

Filter, 109, 110 fn_pgm

FilterSet, 111 WImage, 16

first, 110 fn_ppm

fsize, 110 WImage, 16

init, 110 fn_raw

m_coeffs, 111 WImage, 16

m_firstIndex, 111 fn_unknown

m_size, 111 WImage, 17

tof, 110 fn_vid



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

448 INDEX





WImage, 17 getSubband

format WaveletTransform, 348

wave_header, 333 getUnscaledImage

fps ImageResizer, 198

avi_t, 44 go

frameRate ColumnVector, 100

AviReader, 49 FullVector, 117

ColorVideo, 89 ImageVector, 204

frames ReferenceVector, 277

ColorVideo, 90 RowVector, 282

VideoArray, 309 GreymapFile, 119

VideoFile, 318 ∼GreymapFile, 119

framesInFile GreymapFile, 119

AviReader, 49 m_coeffs, 120

VidReader, 328 m_fname, 120

fsize m_pixels, 120

Filter, 110 GreymapFile.hh, 377

full GreymapReader, 121

Image, 137 ∼GreymapReader, 122

FullVector, 116 GreymapReader, 122

∼FullVector, 117 read, 122

at, 117 readfmt, 122

FullVector, 117 unpixel, 122

go, 117 GreymapReader.hh, 378

m_xysize, 118 GreymapWriter, 124

size, 118 ∼GreymapWriter, 125

to, 117 GreymapWriter, 125

update, 118 pixelize, 125

FullVector.hh, 376 write, 125

writefmt, 125

gammaCorrection GreymapWriter.hh, 379

Image, 140 guess

gammaCorrectionAuto FileName, 105

Image, 141 guessext

genMaxDetail FileName, 107

ImageResizer, 198

gensort Haar

ImageInformation, 184 Wave, 22

getArea hasChildAt

WaveletTransform, 348, 349 NTree, 224

getCroppedImage hasChildren

ImageResizer, 199 NTree, 224

getInnerAvgPerSize hasLeftSibling

ImageResizer, 195 NTree, 223

getInnerRegionSize hasRightSibling

ImageResizer, 195 NTree, 224

getInnerSDeviation head

ImageResizer, 195 ImageInformation, 181

getScaledImage header

ImageResizer, 199 RawReader, 270



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

INDEX 449





RawWriter, 274 II_XYPOS

height WTools, 24

avi_t, 44 II_YPOS

HH WTools, 24

WImage, 16 Image, 133

hh ∼Image, 135

WaveletTransform, 347 aaverage, 149

highMax abs, 138

WaveletTransform, 347 amax, 148

histEqualization amin, 148

Image, 141 anasteps, 146

Histogram, 127 at, 137

∼Histogram, 128 beautify, 142

add, 130 clone, 145

at, 129 col, 136

delta, 129 cols, 136

Histogram, 128 copy, 145

m_data, 130 crop, 145

m_dlt, 130 dimcheck, 153

m_ii, 130 epsilons, 138

m_image, 130 epsilonsAt, 139

m_nvals, 131 equals, 139

m_values, 130 exportCoeffs, 144

print, 130 exportPixels, 144

size, 129 fill, 147

update, 129 fitInto, 151

Histogram.hh, 380 full, 137

Histogram::hist, 132 gammaCorrection, 140

lower, 132 gammaCorrectionAuto, 141

number, 132 histEqualization, 141

upper, 132 Image, 135

HL importCoeffs, 144

WImage, 16 importPixels, 144

hl iproduct, 140

WaveletTransform, 346 m_acol, 153

m_afull, 154

IBM_FORMAT_ADPCM m_arow, 153

avilib.h, 359 m_asteps, 154

IBM_FORMAT_ALAW m_ssteps, 154

avilib.h, 359 m_xsize, 154

IBM_FORMAT_MULAW m_xysize, 154

avilib.h, 359 m_ysize, 154

id mkImage, 153

chunk_struct, 56 normalize, 140

CoeffInformation, 59 paste, 145

riff_struct, 280 pixelize, 143

idx read, 143

avi_t, 46 resize, 151

II_XPOS row, 136

WTools, 24 rows, 136



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

450 INDEX





saverage, 148 cmpsnr, 168

scale, 152 cols, 167

sdeviation, 151 difference, 168

shift, 146 distlq, 168

size, 136 distlqd, 169

smax, 147 ImageComparison, 167

smin, 147 level, 169

sqvariance, 149 lq_sum, 170

synsteps, 146 m_images, 171

to, 138 m_lqcache, 171

truncate, 142 m_lqcachesize, 171

unnormalize, 140 m_weights, 171

valadjust, 143 m_xsize, 170

variance, 150 m_xysize, 170

write, 143, 144 m_ysize, 170

image rows, 167

WaveletTransform, 347 size, 168

Image.hh, 381 weight, 170

ImageArray, 155 ImageComparison.hh, 383

∼ImageArray, 157 ImageDenoiser, 172

aaverage, 161 ∼ImageDenoiser, 174

abs, 159 denoise, 174

amax, 160 ImageDenoiser, 173

amin, 160 isCoeffSingleSignificant, 175

array, 164 isSingleSignificantInChannel, 175

at, 157, 158 isSingleSignificantInRegion, 175

clone, 162 m_alpha, 177

cols, 157 m_areas, 177

copy, 162 m_filter, 177

epsilons, 162, 163 m_from, 177

equals, 163 m_image, 177

ImageArray, 156 m_replacementFunction, 178

import, 162 m_significanceFunction, 177

m_ar, 165 m_to, 177

m_rows, 165 m_transform, 177

m_xsize, 164 processFrom, 174

m_xysize, 164 replaceChannel, 176

m_ysize, 164 replaceSimple, 176

resize, 161 threshold, 174

rows, 157 ImageDenoiser.hh, 384

saverage, 160 ImageInformation, 179

size, 157 ∼ImageInformation, 181

smax, 159 aaverage, 187

smin, 159 amax, 186

to, 158 amin, 187

updateRowsArray, 164 append, 181

ImageArray.hh, 382 asort, 184

ImageComparison, 166 asorted, 185

∼ImageComparison, 167 at, 182

cmpmse, 168 clone, 182



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

INDEX 451





copyCoeffs, 188 getInnerAvgPerSize, 195

dump, 187 getInnerRegionSize, 195

equals, 182 getInnerSDeviation, 195

gensort, 184 getScaledImage, 199

head, 181 getUnscaledImage, 198

ImageInformation, 180 ImageResizer, 193

isIn, 185 m_colsMapping, 202

isort, 184 m_cropMaxCols, 202

isorted, 185 m_cropMaxRows, 202

locate, 186 m_cropWhat, 202

m_coeffs, 189 m_fill, 201

m_size, 189 m_filter, 200

psort, 184 m_image, 200

psorted, 185 m_innerAvgPerSize, 201

quicksort, 189 m_innerRegionSize, 201

randint, 189 m_innerSDeviation, 201

resize, 183 m_maxDetail, 200

saverage, 187 m_optimizationCalculated, 201

sdeviation, 188 m_optimizeImage, 201

shrink, 182 m_qCols, 201

shuffle, 184 m_qRows, 200

size, 181 m_rowsMapping, 202

smax, 186 m_scalingStrategy, 201

smin, 187 m_steps, 202

sqvariance, 188 m_threshold, 201

ssort, 184 optimizeImage, 196

ssorted, 184 redimension, 194

subimage, 188 resize, 194

swap, 183 threshold, 195, 196

tail, 181 ImageResizer.hh, 388

to, 183 ImageVector, 203

variance, 188 ∼ImageVector, 204

xysort, 184 at, 204

yxsort, 184 go, 204

ImageInformation.hh, 386 ImageVector, 204

ImageResizer, 191 m_array, 205

∼ImageResizer, 194 m_xsize, 206

calcDimensions, 196 m_ysize, 206

calcInnerStats, 197 sanity, 204

calcOptimization, 197 size, 205

calcOuterStats, 197 to, 205

calcStats, 198 update, 204

CROP_AUTOMATICALLY, 193 weight, 205

CROP_BOTH_OR_NONE, 193 ImageVector.hh, 389

CROP_COLS, 193 imgtype

CROP_ROWS, 193 WTools, 25

doResize, 200 import

fixDimensions, 197 ImageArray, 162

genMaxDetail, 198 VideoArray, 313

getCroppedImage, 199 WaveletTransform, 349



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

452 INDEX





importCoeffs m_quality, 212

Image, 144 writefmt, 212

importPixels JpgWriter.hh, 391

Image, 144

index_file key

avi_t, 47 video_index_entry, 306

indexOK

NTree, 227 last_len

init avi_t, 46

ColorBuffer, 72 last_pos

ColorImage, 83 avi_t, 46

ColorVideo, 96 laxis

Filter, 110 MirrorPosition, 218

FilterSet, 114 leftSibling

logvals, 214 NTree, 226

NTree, 227 len

PixmapFile, 248 audio_index_entry, 42

VideoFile, 318 chunk_struct, 56

Wavelet, 336 riff_struct, 280

iproduct video_index_entry, 306

Image, 140 level

is_opendml ImageComparison, 169

avi_t, 46 Wavelet, 335

isCoeffSingleSignificant LH

ImageDenoiser, 175 WImage, 16

isext lh

FileName, 105 WaveletTransform, 346

isIn LL

ImageInformation, 185 WImage, 16

isort ll

ImageInformation, 184 WaveletTransform, 346

isorted locate

ImageInformation, 185 ImageInformation, 186

isRoot logvals, 214

NTree, 223 init, 214

isSingleSignificantInChannel val, 214

ImageDenoiser, 175 lower

isSingleSignificantInRegion Histogram::hist, 132

ImageDenoiser, 175 lq, 215

issym colors, 215

FilterSet, 114 details, 215

issymm lq_sum

VectorPosition, 304 ImageComparison, 170



JpgReader, 207 m_acol

JpgReader, 209 Image, 153

readfmt, 209 m_afull

JpgReader.hh, 390 Image, 154

JpgWriter, 210 m_alpha

JpgWriter, 212 ImageDenoiser, 177



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

INDEX 453





m_anahigh ColorVideo, 97

Wavelet, 337 m_colors

m_analow ColorBuffer, 73

Wavelet, 337 m_cols

m_analysisHigh WaveletTransform, 351

FilterSet, 114 m_colsMapping

m_analysisLow ImageResizer, 202

FilterSet, 114 m_cropMaxCols

m_apad ImageResizer, 202

Wavelet, 337 m_cropMaxRows

m_apositions ImageResizer, 202

Wavelet, 338 m_cropWhat

m_apsize ImageResizer, 202

Wavelet, 338 m_current

m_ar ColorVideo, 97

ImageArray, 165 VideoArray, 315

m_areas m_data

ImageDenoiser, 177 Histogram, 130

m_arow NTree, 229

Image, 153 m_dirname

m_array FileName, 107

ImageVector, 205 m_dlt

m_arrays Histogram, 130

ColorVideo, 97 m_extension

VideoFile, 318 FileName, 107

m_aryness m_fill

NTree, 229 ImageResizer, 201

m_asteps m_filter

Image, 154 ImageDenoiser, 177

m_basename ImageResizer, 200

FileName, 107 WaveletTransform, 351

m_buffer m_firstIndex

WaveletTransform, 351 Filter, 111

m_channels m_fname

PixmapFile, 248 FileName, 107

VideoFile, 318 GreymapFile, 120

m_children PixmapFile, 248

NTree, 228 VideoFile, 318

m_cmodel m_frameRate

ColorBuffer, 73 AviWriter, 55

PixmapFile, 248 ColorVideo, 98

VideoFile, 319 m_frames

m_coeffs ColorVideo, 97

Filter, 111 VideoArray, 315

GreymapFile, 120 VideoFile, 319

ImageInformation, 189 m_from

StillImage, 297 ImageDenoiser, 177

m_coeffsMustDelete VideoReader, 324

StillImage, 297 m_ftype

m_colorImage FileName, 108



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

454 INDEX





m_id NTree, 229

CoeffInformation, 65 m_qCols

m_ii ImageResizer, 201

Histogram, 130 m_qRows

m_image ImageResizer, 200

Histogram, 130 m_quality

ImageDenoiser, 177 ColorImage, 83

ImageResizer, 200 JpgWriter, 212

WaveletTransform, 351 m_rbase

m_images RowVector, 283

ColorBuffer, 73 m_replacementFunction

ImageComparison, 171 ImageDenoiser, 178

PixmapFile, 248 m_rightaxis

m_innerAvgPerSize MirrorPosition, 220

ImageResizer, 201 m_rows

m_innerRegionSize ImageArray, 165

ImageResizer, 201 WaveletTransform, 351

m_innerSDeviation m_rowsMapping

ImageResizer, 201 ImageResizer, 202

m_isdos m_scalingStrategy

FileName, 107 ImageResizer, 201

m_isReference m_shpad

ColorBuffer, 73 Wavelet, 337

m_leftaxis m_shpositions

MirrorPosition, 220 Wavelet, 338

m_lqcache m_shpsize

ImageComparison, 171 Wavelet, 339

m_lqcachesize m_shsigns

ImageComparison, 171 Wavelet, 338

m_maxDetail m_significanceFunction

ImageResizer, 200 ImageDenoiser, 177

m_misc m_size

CoeffInformation, 65 Filter, 111

m_npad ImageInformation, 189

Wavelet, 338 m_skip

m_nvals VidReader, 329

Histogram, 131 VidWriter, 331

m_offset m_slpad

RawReader, 271 Wavelet, 337

RawWriter, 275 m_slpositions

VideoArray, 315 Wavelet, 338

m_optimizationCalculated m_slpsize

ImageResizer, 201 Wavelet, 338

m_optimizeImage m_ssteps

ImageResizer, 201 Image, 154

m_parent m_steps

NTree, 228 ImageResizer, 202

m_pixels m_symmetric

GreymapFile, 120 FilterSet, 114

m_position Wavelet, 338



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

INDEX 455





m_symmetry ColorVideo, 97

VectorPosition, 304 VideoArray, 315

m_synhigh m_yposition

Wavelet, 337 CoeffInformation, 64

m_synlow m_ysize

Wavelet, 337 AviReader, 50

m_synthesisHigh ColorBuffer, 73

FilterSet, 115 Image, 154

m_synthesisLow ImageArray, 164

FilterSet, 114 ImageComparison, 170

m_threshold ImageVector, 206

ImageResizer, 201 RawReader, 272

m_to VidReader, 329

ImageDenoiser, 177 magickImageFromColorImage

VideoReader, 324 MagickInter, 28

m_transform magickImageFromColorImageWithTransparency

ImageDenoiser, 177 MagickInter, 28

PyramidTree, 268 MagickInter, 27

m_value colorImageFromMagickImage, 28

CoeffInformation, 64 magickImageFromColorImage, 28

m_values magickImageFromColorImageWith-

Histogram, 130 Transparency, 28

m_vroot obtainColorImage, 29

ReferenceVector, 279 scaleAndWriteColorImage, 29

m_vsize writeColorImage, 30

VectorPosition, 304 writeColorImageWithTransparency,

m_wavelet 30

WaveletTransform, 351 MagickInter.hh, 392

m_weights makeEmpty

ImageComparison, 171 StillImage, 293

m_xposition mapPosition

CoeffInformation, 64 WaveletTransform, 343

m_xsize MAX

AviReader, 50 WImage, 14

ColorBuffer, 73 max_idx

Image, 154 avi_t, 45

ImageArray, 164 max_len

ImageComparison, 170 avi_t, 45

ImageVector, 206 MIN

RawReader, 271 WImage, 14

VidReader, 329 MirrorPosition, 216

m_xyposition laxis, 218

CoeffInformation, 64 m_leftaxis, 220

m_xysize m_rightaxis, 220

ColorBuffer, 73 MirrorPosition, 217

FullVector, 118 noaxis, 218

Image, 154 oneleftaxis, 219

ImageArray, 164 onerightaxis, 219

ImageComparison, 170 pos, 217

m_xyzsize raxis, 218



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

456 INDEX





setlaxis, 217 indexOK, 227

setraxis, 218 init, 227

twoaxis, 219 isRoot, 223

MirrorPosition.hh, 394 leftSibling, 226

misc m_aryness, 229

CoeffInformation, 59, 60 m_children, 228

miscdefs.h, 395 m_data, 229

mkImage m_parent, 228

Image, 153 m_position, 229

StillImage, 296 NTree, 222

mode position, 223

avi_t, 44 rightSibling, 227

moveTo NTree.hh, 397

PyramidTree, 267 NULL

movi_start Wave, 22

avi_t, 46 number

mp3rate Histogram::hist, 132

track_s, 299

MUL2 obtainColorImage

WImage, 15 MagickInter, 29

must_use_index Odegard

avi_t, 46 Wave, 22

oneleftaxis

n_idx MirrorPosition, 219

avi_t, 45 onerightaxis

nEntriesInUse MirrorPosition, 219

_avistdindex_chunk, 34 operator!=

_avisuperindex_chunk, 38 CoeffInformation, 63

NEW operator=

WImage, 15 CoeffInformation, 64

noaxis operator==

MirrorPosition, 218 CoeffInformation, 63

normalize optimizeImage

Image, 140 ImageResizer, 196

NTree, 221

∼NTree, 223 padrate

appendAt, 225, 226 track_s, 299

appendNGenerations, 227 paste

aryness, 223 ColorImage, 80

card, 224 Image, 145

childAt, 226 pcmp

clone, 225 CoeffInformation, 62

copyLeaves, 228 PeriodicPosition, 230

data, 226 PeriodicPosition, 230

destroyAt, 225 pos, 231

equals, 225 PeriodicPosition.hh, 398

hasChildAt, 224 PfcReader, 232

hasChildren, 224 ∼PfcReader, 234

hasLeftSibling, 223 PfcReader, 234

hasRightSibling, 224 readfmt, 234



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

INDEX 457





PfcReader.hh, 399 PixmapReader, 251

PfcWriter, 235 read, 251

∼PfcWriter, 237 readfmt, 251

PfcWriter, 237 PixmapReader.hh, 406

writefmt, 237 PixmapWriter, 253

PfcWriter.hh, 400 ∼PixmapWriter, 254

PfgReader, 238 PixmapWriter, 254

∼PfgReader, 239 write, 254

PfgReader, 239 writefmt, 254

readfmt, 239 PixmapWriter.hh, 407

PfgReader.hh, 401 pos

PfgWriter, 240 audio_index_entry, 42

∼PfgWriter, 241 avi_t, 45

PfgWriter, 241 MirrorPosition, 217

writefmt, 241 PeriodicPosition, 231

PfgWriter.hh, 402 VectorPosition, 302, 303

PgmReader, 242 video_index_entry, 306

∼PgmReader, 243 position

PgmReader, 243 NTree, 223

readfmt, 243 ppm_fromStream

PgmReader.hh, 403 ppmlib.h, 408

PgmWriter, 244 ppm_read

∼PgmWriter, 245 WImage, 17

PgmWriter, 245 ppm_toStream

writefmt, 245 ppmlib.h, 408

PgmWriter.hh, 404 ppm_write

PII_XPOS ppmlib.h, 409

WTools, 24 ppmlib.h, 408

PII_XYPOS ppm_fromStream, 408

WTools, 24 ppm_toStream, 408

PII_YPOS ppm_write, 409

WTools, 24 PpmReader, 256

pixel ∼PpmReader, 258

WImage, 15 PpmReader, 258

pixelize readfmt, 258

GreymapWriter, 125 PpmReader.hh, 410

Image, 143 PpmWriter, 259

PixmapFile, 246 ∼PpmWriter, 261

∼PixmapFile, 247 PpmWriter, 261

channels, 248 writefmt, 261

colormodel, 247 PpmWriter.hh, 411

init, 248 print

m_channels, 248 Histogram, 130

m_cmodel, 248 processFrom

m_fname, 248 ImageDenoiser, 174

m_images, 248 psort

PixmapFile, 247 ImageInformation, 184

PixmapFile.hh, 405 psorted

PixmapReader, 250 ImageInformation, 185

∼PixmapReader, 251 PyramidTransform, 262



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

458 INDEX





doanalysis, 263 ColorVideo, 90, 91

dosynthesis, 263 GreymapReader, 122

PyramidTransform, 263 Image, 143

PyramidTransform.hh, 412 PixmapReader, 251

PyramidTree, 265 StillImage, 291, 292

∼PyramidTree, 266 VideoReader, 323

addGenerations, 267 readfmt

depth, 267 AviReader, 50

findChildPosition, 267 GreymapReader, 122

m_transform, 268 JpgReader, 209

moveTo, 267 PfcReader, 234

PyramidTree, 266 PfgReader, 239

shiftBy, 268 PgmReader, 243

PyramidTree.hh, 413 PixmapReader, 251

PpmReader, 258

quality RawReader, 271

ColorImage, 80 VideoReader, 323

quicksort VidReader, 329

ImageInformation, 189 redimension

qwBaseOffset ImageResizer, 194

_avistdindex_chunk, 34 ReferenceVector, 276

qwOffset ∼ReferenceVector, 276

_avisuperindex_entry, 39 at, 277

copy, 278

randint go, 277

ImageInformation, 189 m_vroot, 279

ratio ReferenceVector, 276

WaveletTransform, 346 root, 277

RawReader, 269 sanity, 277

∼RawReader, 270 size, 278

cols, 270 to, 278

header, 270 update, 277

m_offset, 271 ReferenceVector.hh, 416

m_xsize, 271 reframe

m_ysize, 272 ColorVideo, 90

RawReader, 270 VideoArray, 312

readfmt, 271 REPLACE_CHANNEL

rows, 271 WTools, 24

RawReader.hh, 414 REPLACE_SIMPLE

RawWriter, 273 WTools, 25

∼RawWriter, 274 replaceChannel

header, 274 ImageDenoiser, 176

m_offset, 275 replaceSimple

RawWriter, 274 ImageDenoiser, 176

writefmt, 274 resize

RawWriter.hh, 415 ColorVideo, 90

raxis Image, 151

MirrorPosition, 218 ImageArray, 161

read ImageInformation, 183

ColorImage, 77, 78 ImageResizer, 194



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

INDEX 459





StillImage, 296 ImageInformation, 187

VideoArray, 312 StillImage, 295

restoreImage WaveletTransform, 344

WaveletTransform, 343 scale

rgb ColorImage, 82

WImage, 17 Image, 152

rgb_b scaleAndWriteColorImage

WImage, 17 MagickInter, 29

rgb_g SCANNED

WImage, 17 WTools, 25

rgb_r sdeviation

WImage, 17 Image, 151

rgb_unknown ImageInformation, 188

WImage, 17 WaveletTransform, 345

riff set

wave_header, 333 CoeffInformation, 60, 61

riff_struct, 280 setlaxis

id, 280 MirrorPosition, 217

len, 280 setraxis

wave_id, 280 MirrorPosition, 218

rightSibling setsymm

NTree, 227 VectorPosition, 304

root shift

ReferenceVector, 277 ColorImage, 81

row Image, 146

Image, 136 shiftBy

rows PyramidTree, 268

ColorBuffer, 71 shigh

Image, 136 FilterSet, 113

ImageArray, 157 shrink

ImageComparison, 167 ImageInformation, 182

RawReader, 271 shuffle

RowVector, 281 ImageInformation, 184

∼RowVector, 282 SIGNIFICANT_CHANNEL

at, 282 WTools, 25

go, 282 SIGNIFICANT_COEFF

m_rbase, 283 WTools, 25

RowVector, 282 SIGNIFICANT_REGION

size, 283 WTools, 25

to, 282 size

update, 283 ColorBuffer, 72

RowVector.hh, 417 ColumnVector, 101

FullVector, 118

sanity Histogram, 129

ImageVector, 204 Image, 136

ReferenceVector, 277 ImageArray, 157

WaveletTransform, 350 ImageComparison, 168

saverage ImageInformation, 181

Image, 148 ImageVector, 205

ImageArray, 160 ReferenceVector, 278



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

460 INDEX





RowVector, 283 m_coeffsMustDelete, 297

VectorPosition, 302 makeEmpty, 293

slow mkImage, 296

FilterSet, 113 read, 291, 292

smax resize, 296

ColorBuffer, 68 saverage, 295

ColorVideo, 92 smax, 293

Image, 147 smin, 294

ImageArray, 159 StillImage, 288, 289

ImageInformation, 186 to, 290

StillImage, 293 write, 292

smin StillImage.hh, 419

ColorBuffer, 69 STR

ColorVideo, 92 WImage, 15

Image, 147 STRR

ImageArray, 159 WImage, 15

ImageInformation, 187 subband

StillImage, 294 WaveletTransform, 347

socmp subimage

CoeffInformation, 61 ImageInformation, 188

SQUARE svcmp

WImage, 15 CoeffInformation, 62

sqvariance swap

Image, 149 ImageInformation, 183

ImageInformation, 188 swapColors

WaveletTransform, 345 ColorBuffer, 68

ssort ColorVideo, 88

ImageInformation, 184 synstep

ssorted Wavelet, 336

ImageInformation, 184 synsteps

StandardTransform, 284 Image, 146

doanalysis, 285 synthesis

dosynthesis, 285 Wavelet, 336

StandardTransform, 285 WaveletTransform, 342

StandardTransform.hh, 418 SYS_LINUX

stdindex avilib.h, 359

_avisuperindex_chunk, 38 SYS_UNIX

steps avilib.h, 359

WaveletTransform, 350

StillImage, 287 tail

∼StillImage, 289 ImageInformation, 181

aaverage, 295 threshold

abs, 290 ImageDenoiser, 174

amax, 294 ImageResizer, 195, 196

amin, 295 to

at, 289 ColumnVector, 101

clone, 293 FullVector, 117

epsilons, 291 Image, 138

equals, 291 ImageArray, 158

m_coeffs, 297 ImageInformation, 183



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

INDEX 461





ImageVector, 205 audio_strn, 299

ReferenceVector, 278 audio_superindex, 300

RowVector, 282 audio_tag, 299

StillImage, 290 mp3rate, 299

VideoArray, 310 padrate, 299

toext track_t

FileName, 105 avilib.h, 361

tof truncate

Filter, 110 ColorBuffer, 70

tools.h, 420 ColorVideo, 94

tools_areaFromString Image, 142

WImage, 18 twoaxis

tools_areaToString MirrorPosition, 219

WImage, 18 TWOPOW

tools_coeff2int WImage, 15

WImage, 18

tools_coeff2pixel unnormalize

WImage, 19 Image, 140

tools_epsilons unpixel

WImage, 19 GreymapReader, 122

tools_equals update

WImage, 19 ColumnVector, 101

tools_fileSize FullVector, 118

WImage, 19 Histogram, 129

tools_powerOfTwo ImageVector, 204

WImage, 20 ReferenceVector, 277

tools_startFromCenter RowVector, 283

WImage, 20 updateRowsArray

toPixmap ImageArray, 164

ColorBuffer, 71 upper

ColorVideo, 95 Histogram::hist, 132

tot Utilities for images and Wavelet Trans-

audio_index_entry, 42 forms, 23

total_frames

avi_t, 46 v_codecf_off

track avi_t, 46

avi_t, 45 v_codech_off

track_s, 298 avi_t, 45

a_bits, 299 val

a_chans, 298 CoeffInformation, 58, 60

a_codecf_off, 300 logvals, 214

a_codech_off, 300 valadjust

a_fmt, 298 ColorBuffer, 72

a_rate, 299 Image, 143

a_vbr, 299 variance

audio_bytes, 299 Image, 150

audio_chunks, 299 ImageInformation, 188

audio_index, 300 WaveletTransform, 345

audio_posb, 299 VectorPosition, 301

audio_posc, 299 ∼VectorPosition, 302



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

462 INDEX





issymm, 304 ∼VideoFile, 317

m_symmetry, 304 channels, 317

m_vsize, 304 colormodel, 317, 318

pos, 302, 303 frames, 318

setsymm, 304 init, 318

size, 302 m_arrays, 318

VectorPosition, 301 m_channels, 318

VectorPosition.hh, 421 m_cmodel, 319

video_frames m_fname, 318

avi_t, 45 m_frames, 319

video_index VideoFile, 317

avi_t, 46 VideoFile.hh, 423

video_index_entry, 306 VideoFrame, 320

key, 306 ∼VideoFrame, 321

len, 306 clone, 321

pos, 306 VideoFrame, 321

video_pos VideoFrame.hh, 424

avi_t, 45 VideoReader, 322

video_strn ∼VideoReader, 323

avi_t, 45 m_from, 324

video_superindex m_to, 324

avi_t, 46 read, 323

video_tag readfmt, 323

avi_t, 45 VideoReader, 323

VideoArray, 307 VideoReader.hh, 425

∼VideoArray, 309 VideoWriter, 325

abs, 311 ∼VideoWriter, 326

at, 309, 310 VideoWriter, 326

clone, 314 write, 326

cloneVideo, 313 writefmt, 326

copy, 314 VideoWriter.hh, 426

current, 309 VidReader, 327

epsilons, 312 ∼VidReader, 328

epsilonsFrames, 311 framesInFile, 328

epsilonsVideo, 314 m_skip, 329

equalsFrames, 311 m_xsize, 329

frames, 309 m_ysize, 329

import, 313 readfmt, 329

m_current, 315 VidReader, 328

m_frames, 315 VidReader.hh, 427

m_offset, 315 VidWriter, 330

m_xyzsize, 315 ∼VidWriter, 331

reframe, 312 m_skip, 331

resize, 312 VidWriter, 331

to, 310 writefmt, 331

VideoArray, 308 VidWriter.hh, 428

VideoArray.hh, 422 Villa1

videoDimensions Wave, 22

ColorVideo, 96 Villa2

VideoFile, 316 Wave, 22



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

INDEX 463





Villa3 avilib.h, 360

Wave, 22 WAVE_FORMAT_YAMAHA_ADPCM

Villa4 avilib.h, 360

Wave, 22 wave_header, 333

Villa5 common, 333

Wave, 22 data, 333

Villa6 format, 333

Wave, 22 riff, 333

wave_id

Wave riff_struct, 280

Antonini, 22 WAVE_VERSION

Brislawn, 22 wave_version.h, 430

Daub4, 22 wave_version.h, 430

Daub6, 22 WAVE_VERSION, 430

Daub8, 22 Wavelet, 334

Haar, 22 ∼Wavelet, 335

NULL, 22 analysis, 335

Odegard, 22 anastep, 336

Villa1, 22 init, 336

Villa2, 22 level, 335

Villa3, 22 m_anahigh, 337

Villa4, 22 m_analow, 337

Villa5, 22 m_apad, 337

Villa6, 22 m_apositions, 338

Wave.hh, 429 m_apsize, 338

WAVE_FORMAT_ADPCM m_npad, 338

avilib.h, 359 m_shpad, 337

WAVE_FORMAT_ALAW m_shpositions, 338

avilib.h, 359 m_shpsize, 339

WAVE_FORMAT_DIGIFIX m_shsigns, 338

avilib.h, 359 m_slpad, 337

WAVE_FORMAT_DIGISTD m_slpositions, 338

avilib.h, 359 m_slpsize, 338

WAVE_FORMAT_DSP_TRUESPEECH m_symmetric, 338

avilib.h, 359 m_synhigh, 337

WAVE_FORMAT_DVI_ADPCM m_synlow, 337

avilib.h, 359 synstep, 336

wave_format_ex synthesis, 336

avi_t, 47 Wavelet, 335

WAVE_FORMAT_GSM610 Wavelet.hh, 431

avilib.h, 360 WaveletTransform, 340

WAVE_FORMAT_IBM_CVSD ∼WaveletTransform, 342

avilib.h, 360 aaverage, 344

WAVE_FORMAT_MULAW analysis, 342

avilib.h, 360 doanalysis, 350

WAVE_FORMAT_OKI_ADPCM dosynthesis, 350

avilib.h, 360 expandImage, 343

WAVE_FORMAT_PCM fill, 350

avilib.h, 360 getArea, 348, 349

WAVE_FORMAT_UNKNOWN getSubband, 348



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

464 INDEX





hh, 347 cm_yuv, 16

highMax, 347 coeff, 15

hl, 346 COEFF_EPSILON, 13

image, 347 COEFF_MAX, 13

import, 349 COEFF_MIN, 13

lh, 346 debug_printf, 17

ll, 346 DELETE, 14

m_buffer, 351 DELETEAR, 14

m_cols, 351 DELETENOTNULL, 14

m_filter, 351 DELETENOTNULLAR, 14

m_image, 351 DIV2, 14

m_rows, 351 DPRINTF, 14

m_wavelet, 351 filetype, 16

mapPosition, 343 FMT0, 14

ratio, 346 fn_avi, 17

restoreImage, 343 fn_jpg, 17

sanity, 350 fn_pfi, 16

saverage, 344 fn_pgm, 16

sdeviation, 345 fn_ppm, 16

sqvariance, 345 fn_raw, 16

steps, 350 fn_unknown, 17

subband, 347 fn_vid, 17

synthesis, 342 HH, 16

variance, 345 HL, 16

WaveletTransform, 342 LH, 16

where, 343 LL, 16

WaveletTransform.hh, 432 MAX, 14

wBitsPerSample MIN, 14

common_struct, 102 MUL2, 15

wBlockAlign NEW, 15

common_struct, 102 pixel, 15

wChannels ppm_read, 17

common_struct, 102 rgb, 17

weight rgb_b, 17

ImageComparison, 170 rgb_g, 17

ImageVector, 205 rgb_r, 17

wFormatTag rgb_unknown, 17

common_struct, 102 SQUARE, 15

where STR, 15

WaveletTransform, 343 STRR, 15

width tools_areaFromString, 18

avi_t, 44 tools_areaToString, 18

WImage tools_coeff2int, 18

area, 16 tools_coeff2pixel, 19

areaINVALID, 16 tools_epsilons, 19

areas, 20 tools_equals, 19

clrmodel, 16 tools_fileSize, 19

cm_grey, 16 tools_powerOfTwo, 20

cm_rgb, 16 tools_startFromCenter, 20

cm_unknown, 16 TWOPOW, 15



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen

INDEX 465





yuv, 17 SIGNIFICANT_COEFF, 25

yuv_u, 17 SIGNIFICANT_REGION, 25

yuv_unknown, 17 WTools.hh, 435

yuv_v, 17

yuv_y, 17 xpos

WImage.hh, 433 CoeffInformation, 59

wLongsPerEntry xypos

_avistdindex_chunk, 34 CoeffInformation, 60

_avisuperindex_chunk, 37 xysort

write ImageInformation, 184

ColorImage, 78

ColorVideo, 91, 92 ypos

GreymapWriter, 125 CoeffInformation, 59

Image, 143, 144 yuv

PixmapWriter, 254 WImage, 17

StillImage, 292 yuv_u

VideoWriter, 326 WImage, 17

writeColorImage yuv_unknown

MagickInter, 30 WImage, 17

writeColorImageWithTransparency yuv_v

MagickInter, 30 WImage, 17

writefmt yuv_y

AviWriter, 55 WImage, 17

GreymapWriter, 125 yxsort

JpgWriter, 212 ImageInformation, 184

PfcWriter, 237

PfgWriter, 241

PgmWriter, 245

PixmapWriter, 254

PpmWriter, 261

RawWriter, 274

VideoWriter, 326

VidWriter, 331

WTools

cipredicate, 25

DENOISE_HH, 24

DENOISE_HL, 24

DENOISE_LH, 24

DRAWN, 25

II_XPOS, 24

II_XYPOS, 24

II_YPOS, 24

imgtype, 25

PII_XPOS, 24

PII_XYPOS, 24

PII_YPOS, 24

REPLACE_CHANNEL, 24

REPLACE_SIMPLE, 25

SCANNED, 25

SIGNIFICANT_CHANNEL, 25



Generated on Thu Apr 17 11:47:12 2008 for Wavelet and Image class library by Doxygen


Related docs
Other docs by liamei12345
of Approved Sensitivities _4-29-11_ - EIPC
Views: 0  |  Downloads: 0
02Test-Result-III-Web
Views: 2  |  Downloads: 0
Chicken Soup Poems
Views: 16  |  Downloads: 0
Kansas - Association of Women Psychiatrists
Views: 0  |  Downloads: 0
Selection 12
Views: 0  |  Downloads: 0
Lesson 6-Building a Directory Service
Views: 0  |  Downloads: 0
piacente_10_11
Views: 1  |  Downloads: 0
By registering with docstoc.com you agree to our
privacy policy

You are almost ready to download!

You are almost ready to download!