imfinfocv

Gets information about an image with the image's ComputerVision handle, without re-reading the image again.

Syntax

R = imfinfocv(handle)

Inputs

handle
Handle of the image from a imreadcv command.
Type: integer

Outputs

R
The resulting structure with information about the image in handle. R contains the following fields:
Channel type:
Channel type used in ComputerVision for data layout.
Channels
Channels in the image. 1 for Grayscale images, 3 for RGB images and 4 for RGB images with the alpha channel.
Height
Height of the image in pixels.
Pixel depth
Depth of the image.
Size in bytes
Size of the image in bytes.
Type
Image type in ComputerVision library.
Width
Width of the image in pixels.
Width step
Width of each step (row) in the image.
Type: struct

Example

Gets image information:

handle = imreadcv('img1.png');
R = imfinfocv(handle)

ans = struct [
  Channel type: CV_8UC4
  Channels: 4
  Height: 200
  Pixel depth: 0
  Size in bytes: 40000
  Type: 24
  Width: 200
  Width step: 800
]