public class Contrib extends Object
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
Contrib() |
| Modifier and Type | Method and Description |
|---|---|
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,
List<MatOfPoint> results,
MatOfFloat cost) |
static int |
chamerMatching(Mat img,
Mat templ,
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) |
public static final int ROTATION
public static final int TRANSLATION
public static final int RIGID_BODY_MOTION
public static final int COLORMAP_AUTUMN
public static final int COLORMAP_BONE
public static final int COLORMAP_JET
public static final int COLORMAP_WINTER
public static final int COLORMAP_RAINBOW
public static final int COLORMAP_OCEAN
public static final int COLORMAP_SUMMER
public static final int COLORMAP_SPRING
public static final int COLORMAP_COOL
public static final int COLORMAP_HSV
public static final int COLORMAP_PINK
public static final int COLORMAP_HOT
public static final int RETINA_COLOR_RANDOM
public static final int RETINA_COLOR_DIAGONAL
public static final int RETINA_COLOR_BAYER
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
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.public static int chamerMatching(Mat img, Mat templ, 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)
public static int chamerMatching(Mat img, Mat templ, List<MatOfPoint> results, MatOfFloat cost)
Copyright © 2014. All rights reserved.