Package org.opencv.objdetect
Class HOGDescriptor
java.lang.Object
org.opencv.objdetect.HOGDescriptor
public class HOGDescriptor extends Object
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_NLEVELSstatic intL2Hysprotected longnativeObj -
Constructor Summary
Constructors Modifier Constructor Description HOGDescriptor()protectedHOGDescriptor(long addr)HOGDescriptor(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, double _winSigma, int _histogramNormType, double _L2HysThreshold, boolean _gammaCorrection, int _nlevels, boolean _signedGradient) -
Method Summary
Modifier and Type Method Description static HOGDescriptor__fromPtr__(long addr)booleancheckDetectorSize()voidcompute(Mat img, MatOfFloat descriptors)voidcompute(Mat img, MatOfFloat descriptors, Size winStride, Size padding, MatOfPoint locations)voidcomputeGradient(Mat img, Mat grad, Mat angleOfs)voidcomputeGradient(Mat img, Mat grad, Mat angleOfs, Size paddingTL, Size paddingBR)voiddetect(Mat img, MatOfPoint foundLocations, MatOfDouble weights)voiddetect(Mat img, MatOfPoint foundLocations, MatOfDouble weights, double hitThreshold, Size winStride, Size padding, MatOfPoint searchLocations)voiddetectMultiScale(Mat img, MatOfRect foundLocations, MatOfDouble foundWeights)voiddetectMultiScale(Mat img, MatOfRect foundLocations, MatOfDouble foundWeights, double hitThreshold, Size winStride, Size padding, double scale, double finalThreshold, boolean useMeanshiftGrouping)protected voidfinalize()Sizeget_blockSize()Sizeget_blockStride()Sizeget_cellSize()intget_derivAperture()booleanget_gammaCorrection()intget_histogramNormType()doubleget_L2HysThreshold()intget_nbins()intget_nlevels()booleanget_signedGradient()MatOfFloatget_svmDetector()doubleget_winSigma()Sizeget_winSize()static MatOfFloatgetDaimlerPeopleDetector()static MatOfFloatgetDefaultPeopleDetector()longgetDescriptorSize()longgetNativeObjAddr()doublegetWinSigma()booleanload(String filename)booleanload(String filename, String objname)voidsave(String filename)voidsave(String filename, String objname)voidsetSVMDetector(Mat _svmdetector)
-
Field Details
-
nativeObj
protected final long nativeObj -
L2Hys
public static final int L2Hys- See Also:
- Constant Field Values
-
DEFAULT_NLEVELS
public static final int DEFAULT_NLEVELS- See Also:
- Constant Field Values
-
-
Constructor Details
-
HOGDescriptor
protected HOGDescriptor(long addr) -
HOGDescriptor
-
HOGDescriptor
-
HOGDescriptor
-
HOGDescriptor
public HOGDescriptor()
-
-
Method Details
-
getNativeObjAddr
public long getNativeObjAddr() -
__fromPtr__
-
checkDetectorSize
public boolean checkDetectorSize() -
load
-
load
-
getWinSigma
public double getWinSigma() -
getDescriptorSize
public long getDescriptorSize() -
getDaimlerPeopleDetector
-
getDefaultPeopleDetector
-
compute
public void compute(Mat img, MatOfFloat descriptors, Size winStride, Size padding, MatOfPoint locations) -
compute
-
computeGradient
-
computeGradient
-
detect
public void detect(Mat img, MatOfPoint foundLocations, MatOfDouble weights, double hitThreshold, Size winStride, Size padding, MatOfPoint searchLocations) -
detect
-
detectMultiScale
public void detectMultiScale(Mat img, MatOfRect foundLocations, MatOfDouble foundWeights, double hitThreshold, Size winStride, Size padding, double scale, double finalThreshold, boolean useMeanshiftGrouping) -
detectMultiScale
-
save
-
save
-
setSVMDetector
-
get_winSize
-
get_blockSize
-
get_blockStride
-
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
-
get_nlevels
public int get_nlevels() -
get_signedGradient
public boolean get_signedGradient() -
finalize
-