Module: OpenCV

Defined in:
ext/opencv.cpp,
lib/version.rb,
ext/opencv.cpp

Overview

What is OpenCV?

OpenCV is “Open Source Computer Vision Library”. OpenCV is developed by Intel and many opensource developers. This library include many useful function for computer vision, such as object-detection.

OpenCV is developed at sourceforge.net

What is Ruby/OpenCV?

Ruby/OpenCV is manual Wrapper of OpenCV (not use SWIG). This library seem to be Ruby.

  • object-oriented

  • support Garbage Collection by Ruby

Ruby/OpenCV is developed rubyforge.org/projects/opencv (Official) and blueruby.mydns.jp/pages/opencv (Japanese)

How to install

Show INSTALL

How to generate this documentation?

This document created by rdoc. If you have Ruby 1.8 or later, you might use rdoc command. for example

> cd opencv
> rdoc

and show “./doc/index.html”

Defined Under Namespace

Modules: CvError, GUI Classes: Curve, CvAvgComp, CvBox2D, CvCapture, CvChain, CvChainCode, CvCircle32f, CvClice, CvConnectedComp, CvContour, CvContourTree, CvConvexityDefect, CvFont, CvHaarClassifierCascade, CvHistogram, CvMat, CvMemStorage, CvMoments, CvPoint, CvPoint2D32f, CvPoint3D32f, CvRect, CvScalar, CvSeq, CvSet, CvSize, CvSize2D32f, CvTermCriteria, CvTwopoints, CvVector, CvVideoWriter, IplConvKernel, IplImage

Constant Summary collapse

VERSION =
'0.0.7'
CV_8U =

8bit unsigned

0
CV_8S =

8bit signed

1
CV_16U =

16bit unsigned

2
CV_16S =

16bit signed

3
CV_32S =

32bit signed

4
CV_32F =

32bit floating-point

5
CV_64F =

64bit floating-point

6
INVERSION_METHOD =

lu, :svd, :svd_sym(:svd_symmetric)}: Inversion method

{
DXT_FLAG =

forward, :inverse, :scale, :rows}: DFT and DCT flags

{
INTERPOLATION_METHOD =

nn, :linear, :area, :cubic}: Interpolation method

{
WARP_FLAG =

fill_outliers, :inverse_map}: Warp affine optional flags

{
DEPTH =

cv8u, :cv8s, :cv16u, :cv16s, :cv32s, :cv32f, :cv64f}: Depth of each pixel.

{
CONNECTIVITY =

aa(:anti_alias)}: Determined by the closeness of pixel values

{
RETRIEVAL_MODE =

external, :list, :ccomp, :tree}: Retrieval mode

{
APPROX_CHAIN_METHOD =

code, :approx_none, :approx_simple, :apporx_tc89_11, :approx_tc89_kcos}: Approximation method

{
APPROX_POLY_METHOD =

dp}: Approximation method (polygon)

{
MATCH_TEMPLATE_METHOD =

sqdiff, :sqdiff_normed, :ccorr, :ccorr_normed, :ccoeff, :ccoeff_normed}: Match template method

{
LOG_POLAR_METHOD =
log_polar_method

Class Method Summary collapse

Class Method Details

.BayerBG2BGRObject

.BayerBG2RGBObject

.BayerGB2BGRObject

.BayerGB2RGBObject

.BayerGR2BGRObject

.BayerGR2RGBObject

.BayerRG2BGRObject

.BayerRG2RGBObject

.BGR2BGR555Object

.BGR2BGR565Object

.BGR2BGRAObject

color convert methods

.BGR2GRAYObject

.BGR2HLSObject

.BGR2HSVObject

.BGR2LabObject

.BGR2LuvObject

.BGR2RGBObject

.BGR2RGBAObject

.BGR2XYZObject

.BGR2YCrCbObject

.BGR5552BGRObject

.BGR5552BGRAObject

.BGR5552GRAYObject

.BGR5552RGBObject

.BGR5552RGBAObject

.BGR5652BGRObject

.BGR5652BGRAObject

.BGR5652GRAYObject

.BGR5652RGBObject

.BGR5652RGBAObject

.BGRA2BGRObject

.BGRA2BGR555Object

.BGRA2BGR565Object

.BGRA2GRAYObject

.BGRA2RGBObject

.BGRA2RGBAObject

.GRAY2BGRObject

.GRAY2BGR555Object

.GRAY2BGR565Object

.GRAY2BGRAObject

.GRAY2RGBObject

.GRAY2RGBAObject

.HLS2BGRObject

.HLS2RGBObject

.HSV2BGRObject

.HSV2RGBObject

.Lab2BGRObject

.Lab2RGBObject

.Luv2BGRObject

.Luv2RGBObject

.RGB2BGRObject

.RGB2BGR555Object

.RGB2BGR565Object

.RGB2BGRAObject

.RGB2GRAYObject

.RGB2HLSObject

.RGB2HSVObject

.RGB2LabObject

.RGB2LuvObject

.RGB2RGBAObject

.RGB2XYZObject

.RGB2YCrCbObject

.RGBA2BGRObject

.RGBA2BGR555Object

.RGBA2BGR565Object

.RGBA2BGRAObject

.RGBA2GRAYObject

.RGBA2RGBObject

.XYZ2BGRObject

.XYZ2RGBObject

.YCrCb2BGRObject

.YCrCb2RGBObject