At times we need to retrieve the properties of an image like: width, height, number of channels, etc. Listing 2 shows the code snippet to retrieve image properties. The full source code is in imgprop.c.
Listing 2: Retrieve image properties
Consult OpenCV Reference Manuals for details of IplImage data structure.
| 2. Load an Image | 4. Copy an Image |
| ICQ | 489571630 |
| Skype | dede_bl4ckheart |
| Yahoo | dede_bl4ckheart |
| nashruddin.amin |