Computer vision: A guide to the use of imagelib libraries commonly seen in source code for visual algorithms

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.