Package org.opencv.objdetect
Class HOGDescriptor
- java.lang.Object
-
- org.opencv.objdetect.HOGDescriptor
-
public class HOGDescriptor extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_NLEVELS
static int
DESCR_FORMAT_COL_BY_COL
static int
DESCR_FORMAT_ROW_BY_ROW
static int
L2Hys
protected long
nativeObj
-
Constructor Summary
Constructors Modifier Constructor Description HOGDescriptor()
protected
HOGDescriptor(long addr)
HOGDescriptor(java.lang.String filename)
HOGDescriptor(Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins)
HOGDescriptor(Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins, int _derivAperture)
HOGDescriptor(Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins, int _derivAperture, double _winSigma)
HOGDescriptor(Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins, int _derivAperture, double _winSigma, int _histogramNormType)
HOGDescriptor(Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins, int _derivAperture, double _winSigma, int _histogramNormType, double _L2HysThreshold)
HOGDescriptor(Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins, int _derivAperture, double _winSigma, int _histogramNormType, double _L2HysThreshold, boolean _gammaCorrection)
HOGDescriptor(Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins, int _derivAperture, double _winSigma, int _histogramNormType, double _L2HysThreshold, boolean _gammaCorrection, int _nlevels)
HOGDescriptor(Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins, int _derivAperture, double _winSigma, int _histogramNormType, double _L2HysThreshold, boolean _gammaCorrection, int _nlevels, boolean _signedGradient)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HOGDescriptor
__fromPtr__(long addr)
boolean
checkDetectorSize()
void
compute(Mat img, MatOfFloat descriptors)
void
compute(Mat img, MatOfFloat descriptors, Size winStride)
void
compute(Mat img, MatOfFloat descriptors, Size winStride, Size padding)
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)
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)
void
detect(Mat img, MatOfPoint foundLocations, MatOfDouble weights, double hitThreshold, Size winStride)
void
detect(Mat img, MatOfPoint foundLocations, MatOfDouble weights, double hitThreshold, Size winStride, Size padding)
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)
void
detectMultiScale(Mat img, MatOfRect foundLocations, MatOfDouble foundWeights, double hitThreshold, Size winStride)
void
detectMultiScale(Mat img, MatOfRect foundLocations, MatOfDouble foundWeights, double hitThreshold, Size winStride, Size padding)
void
detectMultiScale(Mat img, MatOfRect foundLocations, MatOfDouble foundWeights, double hitThreshold, Size winStride, Size padding, double scale)
void
detectMultiScale(Mat img, MatOfRect foundLocations, MatOfDouble foundWeights, double hitThreshold, Size winStride, Size padding, double scale, double finalThreshold)
void
detectMultiScale(Mat img, MatOfRect foundLocations, MatOfDouble foundWeights, double hitThreshold, Size winStride, Size padding, double scale, double finalThreshold, boolean useMeanshiftGrouping)
protected void
finalize()
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()
boolean
get_signedGradient()
MatOfFloat
get_svmDetector()
double
get_winSigma()
Size
get_winSize()
static MatOfFloat
getDaimlerPeopleDetector()
static MatOfFloat
getDefaultPeopleDetector()
long
getDescriptorSize()
long
getNativeObjAddr()
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)
-
-
-
Field Detail
-
nativeObj
protected final long nativeObj
-
DEFAULT_NLEVELS
public static final int DEFAULT_NLEVELS
- See Also:
- Constant Field Values
-
L2Hys
public static final int L2Hys
- See Also:
- Constant Field Values
-
DESCR_FORMAT_COL_BY_COL
public static final int DESCR_FORMAT_COL_BY_COL
- See Also:
- Constant Field Values
-
DESCR_FORMAT_ROW_BY_ROW
public static final int DESCR_FORMAT_ROW_BY_ROW
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HOGDescriptor
protected HOGDescriptor(long addr)
-
HOGDescriptor
public HOGDescriptor(Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins, int _derivAperture, double _winSigma, int _histogramNormType, double _L2HysThreshold, boolean _gammaCorrection, int _nlevels, boolean _signedGradient)
-
HOGDescriptor
public HOGDescriptor(Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins, int _derivAperture, double _winSigma, int _histogramNormType, double _L2HysThreshold, boolean _gammaCorrection, int _nlevels)
-
HOGDescriptor
public HOGDescriptor(Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins, int _derivAperture, double _winSigma, int _histogramNormType, double _L2HysThreshold, boolean _gammaCorrection)
-
HOGDescriptor
public HOGDescriptor(Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins, int _derivAperture, double _winSigma, int _histogramNormType, double _L2HysThreshold)
-
HOGDescriptor
public HOGDescriptor(Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins, int _derivAperture, double _winSigma, int _histogramNormType)
-
HOGDescriptor
public HOGDescriptor(Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins, int _derivAperture, double _winSigma)
-
HOGDescriptor
public HOGDescriptor(Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins, int _derivAperture)
-
HOGDescriptor
public HOGDescriptor(Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins)
-
HOGDescriptor
public HOGDescriptor(java.lang.String filename)
-
HOGDescriptor
public HOGDescriptor()
-
-
Method Detail
-
getNativeObjAddr
public long getNativeObjAddr()
-
__fromPtr__
public static HOGDescriptor __fromPtr__(long addr)
-
checkDetectorSize
public boolean checkDetectorSize()
-
load
public boolean load(java.lang.String filename, java.lang.String objname)
-
load
public boolean load(java.lang.String filename)
-
getWinSigma
public double getWinSigma()
-
getDescriptorSize
public long getDescriptorSize()
-
getDaimlerPeopleDetector
public static MatOfFloat getDaimlerPeopleDetector()
-
getDefaultPeopleDetector
public static MatOfFloat getDefaultPeopleDetector()
-
compute
public void compute(Mat img, MatOfFloat descriptors, Size winStride, Size padding, MatOfPoint locations)
-
compute
public void compute(Mat img, MatOfFloat descriptors, Size winStride, Size padding)
-
compute
public void compute(Mat img, MatOfFloat descriptors, Size winStride)
-
compute
public void compute(Mat img, MatOfFloat descriptors)
-
computeGradient
public void computeGradient(Mat img, Mat grad, Mat angleOfs, Size paddingTL, Size paddingBR)
-
detect
public void detect(Mat img, MatOfPoint foundLocations, MatOfDouble weights, double hitThreshold, Size winStride, Size padding, MatOfPoint searchLocations)
-
detect
public void detect(Mat img, MatOfPoint foundLocations, MatOfDouble weights, double hitThreshold, Size winStride, Size padding)
-
detect
public void detect(Mat img, MatOfPoint foundLocations, MatOfDouble weights, double hitThreshold, Size winStride)
-
detect
public void detect(Mat img, MatOfPoint foundLocations, MatOfDouble weights, double hitThreshold)
-
detect
public void detect(Mat img, MatOfPoint foundLocations, MatOfDouble weights)
-
detectMultiScale
public void detectMultiScale(Mat img, MatOfRect foundLocations, MatOfDouble foundWeights, double hitThreshold, Size winStride, Size padding, double scale, double finalThreshold, boolean useMeanshiftGrouping)
-
detectMultiScale
public void detectMultiScale(Mat img, MatOfRect foundLocations, MatOfDouble foundWeights, double hitThreshold, Size winStride, Size padding, double scale, double finalThreshold)
-
detectMultiScale
public void detectMultiScale(Mat img, MatOfRect foundLocations, MatOfDouble foundWeights, double hitThreshold, Size winStride, Size padding, double scale)
-
detectMultiScale
public void detectMultiScale(Mat img, MatOfRect foundLocations, MatOfDouble foundWeights, double hitThreshold, Size winStride, Size padding)
-
detectMultiScale
public void detectMultiScale(Mat img, MatOfRect foundLocations, MatOfDouble foundWeights, double hitThreshold, Size winStride)
-
detectMultiScale
public void detectMultiScale(Mat img, MatOfRect foundLocations, MatOfDouble foundWeights, double hitThreshold)
-
detectMultiScale
public void detectMultiScale(Mat img, MatOfRect foundLocations, MatOfDouble foundWeights)
-
save
public void save(java.lang.String filename, java.lang.String objname)
-
save
public void save(java.lang.String filename)
-
setSVMDetector
public void setSVMDetector(Mat svmdetector)
-
get_winSize
public Size get_winSize()
-
get_blockSize
public Size get_blockSize()
-
get_blockStride
public Size get_blockStride()
-
get_cellSize
public Size get_cellSize()
-
get_nbins
public int get_nbins()
-
get_derivAperture
public int get_derivAperture()
-
get_winSigma
public double get_winSigma()
-
get_histogramNormType
public int get_histogramNormType()
-
get_L2HysThreshold
public double get_L2HysThreshold()
-
get_gammaCorrection
public boolean get_gammaCorrection()
-
get_svmDetector
public MatOfFloat get_svmDetector()
-
get_nlevels
public int get_nlevels()
-
get_signedGradient
public boolean get_signedGradient()
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
-