OpenCV 2.4.3.1

org.opencv.contrib
Class Contrib

java.lang.Object
  extended by org.opencv.contrib.Contrib

public class Contrib
extends java.lang.Object


Field Summary
static int COLORMAP_AUTUMN
           
static int COLORMAP_BONE
           
static int COLORMAP_COOL
           
static int COLORMAP_HOT
           
static int COLORMAP_HSV
           
static int COLORMAP_JET
           
static int COLORMAP_OCEAN
           
static int COLORMAP_PINK
           
static int COLORMAP_RAINBOW
           
static int COLORMAP_SPRING
           
static int COLORMAP_SUMMER
           
static int COLORMAP_WINTER
           
static int RETINA_COLOR_BAYER
           
static int RETINA_COLOR_DIAGONAL
           
static int RETINA_COLOR_RANDOM
           
static int RIGID_BODY_MOTION
           
static int ROTATION
           
static int TRANSLATION
           
 
Constructor Summary
Contrib()
           
 
Method Summary
static void applyColorMap(Mat src, Mat dst, int colormap)
          Applies a GNU Octave/MATLAB equivalent colormap on a given image.
static int chamerMatching(Mat img, Mat templ, java.util.List<MatOfPoint> results, MatOfFloat cost)
           
static int chamerMatching(Mat img, Mat templ, java.util.List<MatOfPoint> results, MatOfFloat cost, double templScale, int maxMatches, double minMatchDistance, int padX, int padY, int scales, double minScale, double maxScale, double orientationWeight, double truncate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLORMAP_AUTUMN

public static final int COLORMAP_AUTUMN
See Also:
Constant Field Values

COLORMAP_BONE

public static final int COLORMAP_BONE
See Also:
Constant Field Values

COLORMAP_COOL

public static final int COLORMAP_COOL
See Also:
Constant Field Values

COLORMAP_HOT

public static final int COLORMAP_HOT
See Also:
Constant Field Values

COLORMAP_HSV

public static final int COLORMAP_HSV
See Also:
Constant Field Values

COLORMAP_JET

public static final int COLORMAP_JET
See Also:
Constant Field Values

COLORMAP_OCEAN

public static final int COLORMAP_OCEAN
See Also:
Constant Field Values

COLORMAP_PINK

public static final int COLORMAP_PINK
See Also:
Constant Field Values

COLORMAP_RAINBOW

public static final int COLORMAP_RAINBOW
See Also:
Constant Field Values

COLORMAP_SPRING

public static final int COLORMAP_SPRING
See Also:
Constant Field Values

COLORMAP_SUMMER

public static final int COLORMAP_SUMMER
See Also:
Constant Field Values

COLORMAP_WINTER

public static final int COLORMAP_WINTER
See Also:
Constant Field Values

RETINA_COLOR_BAYER

public static final int RETINA_COLOR_BAYER
See Also:
Constant Field Values

RETINA_COLOR_DIAGONAL

public static final int RETINA_COLOR_DIAGONAL
See Also:
Constant Field Values

RETINA_COLOR_RANDOM

public static final int RETINA_COLOR_RANDOM
See Also:
Constant Field Values

RIGID_BODY_MOTION

public static final int RIGID_BODY_MOTION
See Also:
Constant Field Values

ROTATION

public static final int ROTATION
See Also:
Constant Field Values

TRANSLATION

public static final int TRANSLATION
See Also:
Constant Field Values
Constructor Detail

Contrib

public Contrib()
Method Detail

applyColorMap

public static void applyColorMap(Mat src,
                                 Mat dst,
                                 int colormap)

Applies a GNU Octave/MATLAB equivalent colormap on a given image.

Currently the following GNU Octave/MATLAB equivalent colormaps are implemented: enum

// C++ code:

COLORMAP_AUTUMN = 0,

COLORMAP_BONE = 1,

COLORMAP_JET = 2,

COLORMAP_WINTER = 3,

COLORMAP_RAINBOW = 4,

COLORMAP_OCEAN = 5,

COLORMAP_SUMMER = 6,

COLORMAP_SPRING = 7,

COLORMAP_COOL = 8,

COLORMAP_HSV = 9,

COLORMAP_PINK = 10,

COLORMAP_HOT = 11

Parameters:
src - The source image, grayscale or colored does not matter.
dst - The result is the colormapped source image. Note: "Mat.create" is called on dst.
colormap - The colormap to apply, see the list of available colormaps below.
See Also:
org.opencv.contrib.Contrib.applyColorMap

chamerMatching

public static int chamerMatching(Mat img,
                                 Mat templ,
                                 java.util.List<MatOfPoint> results,
                                 MatOfFloat cost)

chamerMatching

public static int chamerMatching(Mat img,
                                 Mat templ,
                                 java.util.List<MatOfPoint> results,
                                 MatOfFloat cost,
                                 double templScale,
                                 int maxMatches,
                                 double minMatchDistance,
                                 int padX,
                                 int padY,
                                 int scales,
                                 double minScale,
                                 double maxScale,
                                 double orientationWeight,
                                 double truncate)

Official OpenCV 2.4 Documentation