1.ReadImage (CImage &im, char* Path)/writeimage (CImage &im, char* Path)
(1) Assign or store an im when cast to Cbyteimage
(2) Support only. TGA,. PGM,. PPM,. PMF formats
(3) Best incoming IM for cbyteimage type
2.ReadFilePGM (cbyteimage &im, char* Path)/WRITEFILEPGM (cbyteimage &im, char* Path)
(1) assigning IM or storing IM
(2) Support only. PGM,. PPM,. PMF formats
3.ReadFilePGM (cbyteimage &im, char* Path)/WRITEFILEPGM (cbyteimage &im, char* Path)
(1) assigning IM or storing IM
(2) Support only. PGM,. PPM,. PMF formats
4.CXXXImage member
(1) m_shape:width, height, nbands
(2) M_bandsize: Number of primitive bytes
(3) M_pixsize: Pixel bytes
(4) M_rowsize: The number of bytes per line, here is not equal to width*m_pixsize, so be careful to use
(5) M_memstart
(6) M_memory:reference counted memory
(7) Alphachannel
(1) Reallocate (SHAPE): Frees up existing memory and re-allocates shape dimension space
(2) Clearpixels (): Set all values to 0
5. Global Functions
(1) CopyPixels (SRC, DST): Copy src to dst,dst depth must be the same as SRC, if DST is not allocated space or the allocated space size is inconsistent with SRC then re-allocates space for DST before copying
(2) Scaleandoffset (SRC, DST, scale, offset): Functionally as with copypixels, only the values are scaled and panned
Computer vision: A guide to the use of imagelib libraries commonly seen in source code for visual algorithms