Thursday 7 July 2011

OpenCV naming convensions


  • Matrix data types:
    CV_[bit_depth](S|U|F)C[number_of_channels]
    S = Signed integer
    U = Unsigned integer
    F = Float 
    
    E.g.: CV_8UC1 means an 8-bit unsigned single-channel matrix,
            CV_32FC2 means a 32-bit float matrix with two channels.

  • Image data types:
    IPL_DEPTH_[bit_depth](S|U|F)
    E.g.: IPL_DEPTH_8U means an 8-bit unsigned image.
            IPL_DEPTH_32F means a 32-bit float image.
Note that in the image data types, the depth and number of channels are specified separately.

No comments :

Post a Comment