org.opencv.objdetect
public class HOGDescriptor extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_NLEVELS |
static int |
L2Hys |
Constructor and Description |
---|
HOGDescriptor() |
HOGDescriptor(Size _winSize,
Size _blockSize,
Size _blockStride,
Size _cellSize,
int _nbins) |
HOGDescriptor(Size _winSize,
Size _blockSize,
Size _blockStride,
Size _cellSize,
int _nbins,
int _derivAperture,
double _winSigma,
int _histogramNormType,
double _L2HysThreshold,
boolean _gammaCorrection,
int _nlevels) |
HOGDescriptor(java.lang.String filename) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkDetectorSize() |
void |
compute(Mat img,
MatOfFloat descriptors) |
void |
compute(Mat img,
MatOfFloat descriptors,
Size winStride,
Size padding,
MatOfPoint locations) |
void |
computeGradient(Mat img,
Mat grad,
Mat angleOfs) |
void |
computeGradient(Mat img,
Mat grad,
Mat angleOfs,
Size paddingTL,
Size paddingBR) |
void |
detect(Mat img,
MatOfPoint foundLocations,
MatOfDouble weights) |
void |
detect(Mat img,
MatOfPoint foundLocations,
MatOfDouble weights,
double hitThreshold,
Size winStride,
Size padding,
MatOfPoint searchLocations) |
void |
detectMultiScale(Mat img,
MatOfRect foundLocations,
MatOfDouble foundWeights) |
void |
detectMultiScale(Mat img,
MatOfRect foundLocations,
MatOfDouble foundWeights,
double hitThreshold,
Size winStride,
Size padding,
double scale,
double finalThreshold,
boolean useMeanshiftGrouping) |
Size |
get_blockSize() |
Size |
get_blockStride() |
Size |
get_cellSize() |
int |
get_derivAperture() |
boolean |
get_gammaCorrection() |
int |
get_histogramNormType() |
double |
get_L2HysThreshold() |
int |
get_nbins() |
int |
get_nlevels() |
MatOfFloat |
get_svmDetector() |
double |
get_winSigma() |
Size |
get_winSize() |
static MatOfFloat |
getDaimlerPeopleDetector() |
static MatOfFloat |
getDefaultPeopleDetector() |
long |
getDescriptorSize() |
double |
getWinSigma() |
boolean |
load(java.lang.String filename) |
boolean |
load(java.lang.String filename,
java.lang.String objname) |
void |
save(java.lang.String filename) |
void |
save(java.lang.String filename,
java.lang.String objname) |
void |
setSVMDetector(Mat _svmdetector) |
public static final int DEFAULT_NLEVELS
public static final int L2Hys
public HOGDescriptor()
public HOGDescriptor(Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins)
public HOGDescriptor(Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins, int _derivAperture, double _winSigma, int _histogramNormType, double _L2HysThreshold, boolean _gammaCorrection, int _nlevels)
public HOGDescriptor(java.lang.String filename)
public boolean checkDetectorSize()
public void compute(Mat img, MatOfFloat descriptors)
public void compute(Mat img, MatOfFloat descriptors, Size winStride, Size padding, MatOfPoint locations)
public void computeGradient(Mat img, Mat grad, Mat angleOfs, Size paddingTL, Size paddingBR)
public void detect(Mat img, MatOfPoint foundLocations, MatOfDouble weights)
public void detect(Mat img, MatOfPoint foundLocations, MatOfDouble weights, double hitThreshold, Size winStride, Size padding, MatOfPoint searchLocations)
public void detectMultiScale(Mat img, MatOfRect foundLocations, MatOfDouble foundWeights)
public void detectMultiScale(Mat img, MatOfRect foundLocations, MatOfDouble foundWeights, double hitThreshold, Size winStride, Size padding, double scale, double finalThreshold, boolean useMeanshiftGrouping)
public Size get_blockSize()
public Size get_blockStride()
public Size get_cellSize()
public int get_derivAperture()
public boolean get_gammaCorrection()
public int get_histogramNormType()
public double get_L2HysThreshold()
public int get_nbins()
public int get_nlevels()
public MatOfFloat get_svmDetector()
public double get_winSigma()
public Size get_winSize()
public static MatOfFloat getDaimlerPeopleDetector()
public static MatOfFloat getDefaultPeopleDetector()
public long getDescriptorSize()
public double getWinSigma()
public boolean load(java.lang.String filename)
public boolean load(java.lang.String filename, java.lang.String objname)
public void save(java.lang.String filename)
public void save(java.lang.String filename, java.lang.String objname)
public void setSVMDetector(Mat _svmdetector)