@Namespace(value="cv::cuda") @Properties(inherit=opencv_cudaobjdetect.class) public class HOG extends Algorithm
\note - An example applying the HOG descriptor for people detection can be found at opencv_source_code/samples/cpp/peopledetect.cpp - A CUDA example applying the HOG descriptor for people detection can be found at opencv_source_code/samples/gpu/hog.cpp - (Python) An example applying the HOG descriptor for people detection can be found at opencv_source_code/samples/python/peopledetect.py
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
HOG(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
compute(GpuMat img,
GpuMat descriptors) |
void |
compute(GpuMat img,
GpuMat descriptors,
Stream stream) |
void |
compute(Mat img,
Mat descriptors) |
void |
compute(Mat img,
Mat descriptors,
Stream stream)
\brief Returns block descriptors computed for the whole image.
|
void |
compute(UMat img,
UMat descriptors) |
void |
compute(UMat img,
UMat descriptors,
Stream stream) |
static HOG |
create() |
static HOG |
create(Size win_size,
Size block_size,
Size block_stride,
Size cell_size,
int nbins)
\brief Creates the HOG descriptor and detector.
|
void |
detect(GpuMat img,
PointVector found_locations) |
void |
detect(GpuMat img,
PointVector found_locations,
double[] confidences) |
void |
detect(GpuMat img,
PointVector found_locations,
DoubleBuffer confidences) |
void |
detect(GpuMat img,
PointVector found_locations,
DoublePointer confidences) |
void |
detect(Mat img,
PointVector found_locations) |
void |
detect(Mat img,
PointVector found_locations,
double[] confidences) |
void |
detect(Mat img,
PointVector found_locations,
DoubleBuffer confidences) |
void |
detect(Mat img,
PointVector found_locations,
DoublePointer confidences)
\brief Performs object detection without a multi-scale window.
|
void |
detect(UMat img,
PointVector found_locations) |
void |
detect(UMat img,
PointVector found_locations,
double[] confidences) |
void |
detect(UMat img,
PointVector found_locations,
DoubleBuffer confidences) |
void |
detect(UMat img,
PointVector found_locations,
DoublePointer confidences) |
void |
detectMultiScale(GpuMat img,
RectVector found_locations) |
void |
detectMultiScale(GpuMat img,
RectVector found_locations,
double[] confidences) |
void |
detectMultiScale(GpuMat img,
RectVector found_locations,
DoubleBuffer confidences) |
void |
detectMultiScale(GpuMat img,
RectVector found_locations,
DoublePointer confidences) |
void |
detectMultiScale(Mat img,
RectVector found_locations) |
void |
detectMultiScale(Mat img,
RectVector found_locations,
double[] confidences) |
void |
detectMultiScale(Mat img,
RectVector found_locations,
DoubleBuffer confidences) |
void |
detectMultiScale(Mat img,
RectVector found_locations,
DoublePointer confidences)
\brief Performs object detection with a multi-scale window.
|
void |
detectMultiScale(UMat img,
RectVector found_locations) |
void |
detectMultiScale(UMat img,
RectVector found_locations,
double[] confidences) |
void |
detectMultiScale(UMat img,
RectVector found_locations,
DoubleBuffer confidences) |
void |
detectMultiScale(UMat img,
RectVector found_locations,
DoublePointer confidences) |
void |
detectMultiScaleWithoutConf(GpuMat img,
RectVector found_locations) |
void |
detectMultiScaleWithoutConf(Mat img,
RectVector found_locations)
\brief Performs object detection with a multi-scale window.
|
void |
detectMultiScaleWithoutConf(UMat img,
RectVector found_locations) |
void |
detectWithoutConf(GpuMat img,
PointVector found_locations) |
void |
detectWithoutConf(Mat img,
PointVector found_locations)
\brief Performs object detection without a multi-scale window.
|
void |
detectWithoutConf(UMat img,
PointVector found_locations) |
long |
getBlockHistogramSize()
\brief Returns the block histogram size.
|
Mat |
getDefaultPeopleDetector()
\brief Returns coefficients of the classifier trained for people detection.
|
int |
getDescriptorFormat() |
long |
getDescriptorSize()
\brief Returns the number of coefficients required for the classification.
|
boolean |
getGammaCorrection() |
int |
getGroupThreshold() |
double |
getHitThreshold() |
double |
getL2HysThreshold() |
int |
getNumLevels() |
double |
getScaleFactor() |
double |
getWinSigma() |
Size |
getWinStride() |
void |
setDescriptorFormat(int descr_format)
Descriptor storage format:
- **DESCR_FORMAT_ROW_BY_ROW** - Row-major order.
|
void |
setGammaCorrection(boolean gamma_correction)
Flag to specify whether the gamma correction preprocessing is required or not.
|
void |
setGroupThreshold(int group_threshold)
Coefficient to regulate the similarity threshold.
|
void |
setHitThreshold(double hit_threshold)
Threshold for the distance between features and SVM classifying plane.
|
void |
setL2HysThreshold(double threshold_L2hys)
L2-Hys normalization method shrinkage.
|
void |
setNumLevels(int nlevels)
Maximum number of detection window increases.
|
void |
setScaleFactor(double scale0)
Coefficient of the detection window increase.
|
void |
setSVMDetector(GpuMat detector) |
void |
setSVMDetector(Mat detector)
\brief Sets coefficients for the linear SVM classifier.
|
void |
setSVMDetector(UMat detector) |
void |
setWinSigma(double win_sigma)
Gaussian smoothing window parameter.
|
void |
setWinStride(Size win_stride)
Window stride.
|
clear, empty, getDefaultName, position, read, save, save, write, write, writeaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic HOG(Pointer p)
Pointer.Pointer(Pointer).@opencv_core.Ptr public static HOG create(@ByVal(nullValue="cv::Size(64, 128)") Size win_size, @ByVal(nullValue="cv::Size(16, 16)") Size block_size, @ByVal(nullValue="cv::Size(8, 8)") Size block_stride, @ByVal(nullValue="cv::Size(8, 8)") Size cell_size, int nbins)
win_size - Detection window size. Align to block size and block stride.block_size - Block size in pixels. Align to cell size. Only (16,16) is supported for now.block_stride - Block stride. It must be a multiple of cell size.cell_size - Cell size. Only (8, 8) is supported for now.nbins - Number of bins. Only 9 bins per cell are supported for now.@opencv_core.Ptr public static HOG create()
public void setWinSigma(double win_sigma)
public double getWinSigma()
public void setL2HysThreshold(double threshold_L2hys)
public double getL2HysThreshold()
public void setGammaCorrection(@Cast(value="bool") boolean gamma_correction)
public void setNumLevels(int nlevels)
public int getNumLevels()
public void setHitThreshold(double hit_threshold)
public double getHitThreshold()
public void setWinStride(@ByVal Size win_stride)
public void setScaleFactor(double scale0)
public double getScaleFactor()
public void setGroupThreshold(int group_threshold)
public int getGroupThreshold()
public void setDescriptorFormat(@Cast(value="cv::HOGDescriptor::DescriptorStorageFormat") int descr_format)
@Cast(value="cv::HOGDescriptor::DescriptorStorageFormat") public int getDescriptorFormat()
@Cast(value="size_t") public long getDescriptorSize()
@Cast(value="size_t") public long getBlockHistogramSize()
public void setSVMDetector(@ByVal Mat detector)
@ByVal public Mat getDefaultPeopleDetector()
public void detect(@ByVal Mat img, @ByRef PointVector found_locations, @Cast(value={"double*","std::vector<double>*"}) @StdVector(value="double") DoublePointer confidences)
img - Source image. CV_8UC1 and CV_8UC4 types are supported for now.found_locations - Left-top corner points of detected objects boundaries.confidences - Optional output array for confidences.public void detect(@ByVal Mat img, @ByRef PointVector found_locations)
public void detect(@ByVal Mat img, @ByRef PointVector found_locations, @Cast(value={"double*","std::vector<double>*"}) @StdVector(value="double") DoubleBuffer confidences)
public void detect(@ByVal Mat img, @ByRef PointVector found_locations, @Cast(value={"double*","std::vector<double>*"}) @StdVector(value="double") double[] confidences)
public void detect(@ByVal UMat img, @ByRef PointVector found_locations, @Cast(value={"double*","std::vector<double>*"}) @StdVector(value="double") DoublePointer confidences)
public void detect(@ByVal UMat img, @ByRef PointVector found_locations)
public void detect(@ByVal UMat img, @ByRef PointVector found_locations, @Cast(value={"double*","std::vector<double>*"}) @StdVector(value="double") DoubleBuffer confidences)
public void detect(@ByVal UMat img, @ByRef PointVector found_locations, @Cast(value={"double*","std::vector<double>*"}) @StdVector(value="double") double[] confidences)
public void detect(@ByVal GpuMat img, @ByRef PointVector found_locations, @Cast(value={"double*","std::vector<double>*"}) @StdVector(value="double") DoublePointer confidences)
public void detect(@ByVal GpuMat img, @ByRef PointVector found_locations)
public void detect(@ByVal GpuMat img, @ByRef PointVector found_locations, @Cast(value={"double*","std::vector<double>*"}) @StdVector(value="double") DoubleBuffer confidences)
public void detect(@ByVal GpuMat img, @ByRef PointVector found_locations, @Cast(value={"double*","std::vector<double>*"}) @StdVector(value="double") double[] confidences)
public void detectWithoutConf(@ByVal Mat img, @ByRef PointVector found_locations)
img - Source image. CV_8UC1 and CV_8UC4 types are supported for now.found_locations - Left-top corner points of detected objects boundaries.public void detectWithoutConf(@ByVal UMat img, @ByRef PointVector found_locations)
public void detectWithoutConf(@ByVal GpuMat img, @ByRef PointVector found_locations)
public void detectMultiScale(@ByVal Mat img, @ByRef RectVector found_locations, @Cast(value={"double*","std::vector<double>*"}) @StdVector(value="double") DoublePointer confidences)
img - Source image. See cuda::HOGDescriptor::detect for type limitations.found_locations - Detected objects boundaries.confidences - Optional output array for confidences.public void detectMultiScale(@ByVal Mat img, @ByRef RectVector found_locations)
public void detectMultiScale(@ByVal Mat img, @ByRef RectVector found_locations, @Cast(value={"double*","std::vector<double>*"}) @StdVector(value="double") DoubleBuffer confidences)
public void detectMultiScale(@ByVal Mat img, @ByRef RectVector found_locations, @Cast(value={"double*","std::vector<double>*"}) @StdVector(value="double") double[] confidences)
public void detectMultiScale(@ByVal UMat img, @ByRef RectVector found_locations, @Cast(value={"double*","std::vector<double>*"}) @StdVector(value="double") DoublePointer confidences)
public void detectMultiScale(@ByVal UMat img, @ByRef RectVector found_locations)
public void detectMultiScale(@ByVal UMat img, @ByRef RectVector found_locations, @Cast(value={"double*","std::vector<double>*"}) @StdVector(value="double") DoubleBuffer confidences)
public void detectMultiScale(@ByVal UMat img, @ByRef RectVector found_locations, @Cast(value={"double*","std::vector<double>*"}) @StdVector(value="double") double[] confidences)
public void detectMultiScale(@ByVal GpuMat img, @ByRef RectVector found_locations, @Cast(value={"double*","std::vector<double>*"}) @StdVector(value="double") DoublePointer confidences)
public void detectMultiScale(@ByVal GpuMat img, @ByRef RectVector found_locations)
public void detectMultiScale(@ByVal GpuMat img, @ByRef RectVector found_locations, @Cast(value={"double*","std::vector<double>*"}) @StdVector(value="double") DoubleBuffer confidences)
public void detectMultiScale(@ByVal GpuMat img, @ByRef RectVector found_locations, @Cast(value={"double*","std::vector<double>*"}) @StdVector(value="double") double[] confidences)
public void detectMultiScaleWithoutConf(@ByVal Mat img, @ByRef RectVector found_locations)
img - Source image. See cuda::HOGDescriptor::detect for type limitations.found_locations - Detected objects boundaries.public void detectMultiScaleWithoutConf(@ByVal UMat img, @ByRef RectVector found_locations)
public void detectMultiScaleWithoutConf(@ByVal GpuMat img, @ByRef RectVector found_locations)
public void compute(@ByVal Mat img, @ByVal Mat descriptors, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
img - Source image. See cuda::HOGDescriptor::detect for type limitations.descriptors - 2D array of descriptors.stream - CUDA stream.public void compute(@ByVal UMat img, @ByVal UMat descriptors, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
public void compute(@ByVal GpuMat img, @ByVal GpuMat descriptors, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
Copyright © 2020. All rights reserved.