Main Page | Class List | File List | Class Members

C:/cygwin/home/jar11/clip/include/picture.h File Reference

#include <cstdio>
#include <cstdlib>
#include <cstdarg>
#include <cfloat>
#include <cmath>
#include <cstring>
#include <ctime>
#include <iostream>
#include <fstream>
#include <cctype>
#include <setjmp.h>
#include <assert.h>
#include <limits.h>

Namespaces

namespace  clip
namespace  clip::clip_internal
namespace  clip::apt1_0
namespace  std

Classes

class  clip::irange
 Represents a range of integers with constant spacing, e.g. 2, 5, 8, .., 32. More...
class  clip::picture_of_< PEL >
 The main class in CLIP. A picture_of_ is a one-plane (greylevel) image. More...
class  clip::colour_picture_of_< PEL >
 Supports operations on colour pictures via picture_of_int components. More...
class  clip::parampic_of_< PEL >
 Supports parameter control through interaction on picture windows. More...

Input and output of pictures as text

template<class T> std::ostream & operator<< (std::ostream &os, picture_of_< T > &pic)
template<class T> std::istream & operator>> (std::istream &is, picture_of_< T > &pic)
 Input monochrome picture from text.
template<class T> std::ostream & operator<< (std::ostream &os, colour_picture_of_< T > &pic)
template<class T> std::istream & operator>> (std::istream &is, colour_picture_of_< T > &pic)
 Input colour picture from text.

Keycodes.

This list of keycodes is for MS Windows. Others are defined for Linux and the Mac. Compare return values from picture_of_::key() or colour_picture_of_::key() with these constants to interpret keystrokes. This list is derived from the CImg library.

const unsigned int keyESC = 27
const unsigned int keyF1 = 112
const unsigned int keyF2 = 113
const unsigned int keyF3 = 114
const unsigned int keyF4 = 115
const unsigned int keyF5 = 116
const unsigned int keyF6 = 117
const unsigned int keyF7 = 118
const unsigned int keyF8 = 119
const unsigned int keyF9 = 120
const unsigned int keyF10 = 121
const unsigned int keyF11 = 122
const unsigned int keyF12 = 123
const unsigned int keyPAUSE = 19
const unsigned int key1 = 49
const unsigned int key2 = 50
const unsigned int key3 = 51
const unsigned int key4 = 52
const unsigned int key5 = 53
const unsigned int key6 = 54
const unsigned int key7 = 55
const unsigned int key8 = 56
const unsigned int key9 = 57
const unsigned int key0 = 48
const unsigned int keyBACKSPACE = 8
const unsigned int keyINSERT = 45
const unsigned int keyHOME = 36
const unsigned int keyPAGEUP = 33
const unsigned int keyTAB = 9
const unsigned int keyQ = 81
const unsigned int keyW = 87
const unsigned int keyE = 69
const unsigned int keyR = 82
const unsigned int keyT = 84
const unsigned int keyY = 89
const unsigned int keyU = 85
const unsigned int keyI = 73
const unsigned int keyO = 79
const unsigned int keyP = 80
const unsigned int keyDELETE = 8
const unsigned int keyEND = 35
const unsigned int keyPAGEDOWN = 34
const unsigned int keyCAPSLOCK = 20
const unsigned int keyA = 65
const unsigned int keyS = 83
const unsigned int keyD = 68
const unsigned int keyF = 70
const unsigned int keyG = 71
const unsigned int keyH = 72
const unsigned int keyJ = 74
const unsigned int keyK = 75
const unsigned int keyL = 76
const unsigned int keyENTER = 13
const unsigned int keySHIFTLEFT = 16
const unsigned int keyZ = 90
const unsigned int keyX = 88
const unsigned int keyC = 67
const unsigned int keyV = 86
const unsigned int keyB = 66
const unsigned int keyN = 78
const unsigned int keyM = 77
const unsigned int keySHIFTRIGHT = 16
const unsigned int keyARROWUP = 38
const unsigned int keyCTRLLEFT = 17
const unsigned int keyAPPLEFT = 91
const unsigned int keySPACE = 32
const unsigned int keyALTGR = 17
const unsigned int keyAPPRIGHT = 92
const unsigned int keyMENU = 93
const unsigned int keyCTRLRIGHT = 17
const unsigned int keyARROWLEFT = 37
const unsigned int keyARROWDOWN = 40
const unsigned int keyARROWRIGHT = 39

Detailed Description

CLIP is a C++ class library for manipulating pictures with integer pel values. It has a simple programming model, efficient support for common image processing operations, Matlab-like constructs for subimages, real-time capture and display. It works on MS Windows, Linux and Macintosh platforms.

CLIP is distributed as a single header file that incorporates all functionality. I recommend that you use precompilation of the header if your compiler supports it.


Function Documentation

template<class T>
std::ostream& operator<< std::ostream &  os,
colour_picture_of_< T > &  pic
 

Output colour picture as double-newline delimited planes of newline delimited rows of space delimited cols.

template<class T>
std::ostream& operator<< std::ostream &  os,
picture_of_< T > &  pic
 

Output monochrome picture as newline delimited rows of space delimited cols.


Generated on Sun Mar 13 20:59:22 2005 for clip by doxygen 1.3.8