门萨 新疆:OpenCV naming conventions

来源:百度文库 编辑:偶看新闻 时间:2024/04/27 20:27:04
  • Function naming conventions:
        cvActionTargetMod(...)    Action = the core functionality (e.g. set, create)    Target = the target image area (e.g. contour, polygon)    Mod    = optional modifiers (e.g. argument type)

  • Matrix data types:
        CV_(S|U|F)C    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_(S|U|F)    E.g.: IPL_DEPTH_8U means an  8-bit unsigned image.          IPL_DEPTH_32F means a 32-bit float image.

  • Header files:
        #include     #include     #include       #include    // unnecessary - included in cv.h