@Namespace(value="cv::cuda") public static class opencv_cudaobjdetect.HOG extends opencv_core.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
| Modifier and Type | Field and Description |
|---|---|
static int |
DESCR_FORMAT_COL_BY_COL
enum cv::cuda::HOG::
|
static int |
DESCR_FORMAT_ROW_BY_ROW
enum cv::cuda::HOG::
|
| Constructor and Description |
|---|
HOG(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
compute(opencv_core.GpuMat img,
opencv_core.GpuMat descriptors) |
void |
compute(opencv_core.GpuMat img,
opencv_core.GpuMat descriptors,
opencv_core.Stream stream) |
void |
compute(opencv_core.Mat img,
opencv_core.Mat descriptors) |
void |
compute(opencv_core.Mat img,
opencv_core.Mat descriptors,
opencv_core.Stream stream)
\brief Returns block descriptors computed for the whole image.
|
void |
compute(opencv_core.UMat img,
opencv_core.UMat descriptors) |
void |
compute(opencv_core.UMat img,
opencv_core.UMat descriptors,
opencv_core.Stream stream) |
static opencv_cudaobjdetect.HOG |
create() |
static opencv_cudaobjdetect.HOG |
create(opencv_core.Size win_size,
opencv_core.Size block_size,
opencv_core.Size block_stride,
opencv_core.Size cell_size,
int nbins)
\brief Creates the HOG descriptor and detector.
|
void |
detect(opencv_core.GpuMat img,
opencv_core.PointVector found_locations) |
void |
detect(opencv_core.GpuMat img,
opencv_core.PointVector found_locations,
double[] confidences) |
void |
detect(opencv_core.GpuMat img,
opencv_core.PointVector found_locations,
DoubleBuffer confidences) |
void |
detect(opencv_core.GpuMat img,
opencv_core.PointVector found_locations,
org.bytedeco.javacpp.DoublePointer confidences) |
void |
detect(opencv_core.Mat img,
opencv_core.PointVector found_locations) |
void |
detect(opencv_core.Mat img,
opencv_core.PointVector found_locations,
double[] confidences) |
void |
detect(opencv_core.Mat img,
opencv_core.PointVector found_locations,
DoubleBuffer confidences) |
void |
detect(opencv_core.Mat img,
opencv_core.PointVector found_locations,
org.bytedeco.javacpp.DoublePointer confidences)
\brief Performs object detection without a multi-scale window.
|
void |
detect(opencv_core.UMat img,
opencv_core.PointVector found_locations) |
void |
detect(opencv_core.UMat img,
opencv_core.PointVector found_locations,
double[] confidences) |
void |
detect(opencv_core.UMat img,
opencv_core.PointVector found_locations,
DoubleBuffer confidences) |
void |
detect(opencv_core.UMat img,
opencv_core.PointVector found_locations,
org.bytedeco.javacpp.DoublePointer confidences) |
void |
detectMultiScale(opencv_core.GpuMat img,
opencv_core.RectVector found_locations) |
void |
detectMultiScale(opencv_core.GpuMat img,
opencv_core.RectVector found_locations,
double[] confidences) |
void |
detectMultiScale(opencv_core.GpuMat img,
opencv_core.RectVector found_locations,
DoubleBuffer confidences) |
void |
detectMultiScale(opencv_core.GpuMat img,
opencv_core.RectVector found_locations,
org.bytedeco.javacpp.DoublePointer confidences) |
void |
detectMultiScale(opencv_core.Mat img,
opencv_core.RectVector found_locations) |
void |
detectMultiScale(opencv_core.Mat img,
opencv_core.RectVector found_locations,
double[] confidences) |
void |
detectMultiScale(opencv_core.Mat img,
opencv_core.RectVector found_locations,
DoubleBuffer confidences) |
void |
detectMultiScale(opencv_core.Mat img,
opencv_core.RectVector found_locations,
org.bytedeco.javacpp.DoublePointer confidences)
\brief Performs object detection with a multi-scale window.
|
void |
detectMultiScale(opencv_core.UMat img,
opencv_core.RectVector found_locations) |
void |
detectMultiScale(opencv_core.UMat img,
opencv_core.RectVector found_locations,
double[] confidences) |
void |
detectMultiScale(opencv_core.UMat img,
opencv_core.RectVector found_locations,
DoubleBuffer confidences) |
void |
detectMultiScale(opencv_core.UMat img,
opencv_core.RectVector found_locations,
org.bytedeco.javacpp.DoublePointer confidences) |
long |
getBlockHistogramSize()
\brief Returns the block histogram size.
|
opencv_core.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() |
opencv_core.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(opencv_core.GpuMat detector) |
void |
setSVMDetector(opencv_core.Mat detector)
\brief Sets coefficients for the linear SVM classifier.
|
void |
setSVMDetector(opencv_core.UMat detector) |
void |
setWinSigma(double win_sigma)
Gaussian smoothing window parameter.
|
void |
setWinStride(opencv_core.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, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic static final int DESCR_FORMAT_ROW_BY_ROW
public static final int DESCR_FORMAT_COL_BY_COL
public HOG(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).@opencv_core.Ptr public static opencv_cudaobjdetect.HOG create(@ByVal(nullValue="cv::Size(64, 128)") opencv_core.Size win_size, @ByVal(nullValue="cv::Size(16, 16)") opencv_core.Size block_size, @ByVal(nullValue="cv::Size(8, 8)") opencv_core.Size block_stride, @ByVal(nullValue="cv::Size(8, 8)") opencv_core.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 opencv_cudaobjdetect.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)
@Cast(value="bool") public boolean getGammaCorrection()
public void setNumLevels(int nlevels)
public int getNumLevels()
public void setHitThreshold(double hit_threshold)
public double getHitThreshold()
public void setWinStride(@ByVal
opencv_core.Size win_stride)
@ByVal public opencv_core.Size getWinStride()
public void setScaleFactor(double scale0)
public double getScaleFactor()
public void setGroupThreshold(int group_threshold)
public int getGroupThreshold()
public void setDescriptorFormat(int descr_format)
public int getDescriptorFormat()
@Cast(value="size_t") public long getDescriptorSize()
@Cast(value="size_t") public long getBlockHistogramSize()
public void setSVMDetector(@ByVal
opencv_core.Mat detector)
public void setSVMDetector(@ByVal
opencv_core.UMat detector)
public void setSVMDetector(@ByVal
opencv_core.GpuMat detector)
@ByVal public opencv_core.Mat getDefaultPeopleDetector()
public void detect(@ByVal
opencv_core.Mat img,
@ByRef
opencv_core.PointVector found_locations,
@StdVector
org.bytedeco.javacpp.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
opencv_core.Mat img,
@ByRef
opencv_core.PointVector found_locations)
public void detect(@ByVal
opencv_core.Mat img,
@ByRef
opencv_core.PointVector found_locations,
@StdVector
DoubleBuffer confidences)
public void detect(@ByVal
opencv_core.Mat img,
@ByRef
opencv_core.PointVector found_locations,
@StdVector
double[] confidences)
public void detect(@ByVal
opencv_core.UMat img,
@ByRef
opencv_core.PointVector found_locations,
@StdVector
org.bytedeco.javacpp.DoublePointer confidences)
public void detect(@ByVal
opencv_core.UMat img,
@ByRef
opencv_core.PointVector found_locations)
public void detect(@ByVal
opencv_core.UMat img,
@ByRef
opencv_core.PointVector found_locations,
@StdVector
DoubleBuffer confidences)
public void detect(@ByVal
opencv_core.UMat img,
@ByRef
opencv_core.PointVector found_locations,
@StdVector
double[] confidences)
public void detect(@ByVal
opencv_core.GpuMat img,
@ByRef
opencv_core.PointVector found_locations,
@StdVector
org.bytedeco.javacpp.DoublePointer confidences)
public void detect(@ByVal
opencv_core.GpuMat img,
@ByRef
opencv_core.PointVector found_locations)
public void detect(@ByVal
opencv_core.GpuMat img,
@ByRef
opencv_core.PointVector found_locations,
@StdVector
DoubleBuffer confidences)
public void detect(@ByVal
opencv_core.GpuMat img,
@ByRef
opencv_core.PointVector found_locations,
@StdVector
double[] confidences)
public void detectMultiScale(@ByVal
opencv_core.Mat img,
@ByRef
opencv_core.RectVector found_locations,
@StdVector
org.bytedeco.javacpp.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
opencv_core.Mat img,
@ByRef
opencv_core.RectVector found_locations)
public void detectMultiScale(@ByVal
opencv_core.Mat img,
@ByRef
opencv_core.RectVector found_locations,
@StdVector
DoubleBuffer confidences)
public void detectMultiScale(@ByVal
opencv_core.Mat img,
@ByRef
opencv_core.RectVector found_locations,
@StdVector
double[] confidences)
public void detectMultiScale(@ByVal
opencv_core.UMat img,
@ByRef
opencv_core.RectVector found_locations,
@StdVector
org.bytedeco.javacpp.DoublePointer confidences)
public void detectMultiScale(@ByVal
opencv_core.UMat img,
@ByRef
opencv_core.RectVector found_locations)
public void detectMultiScale(@ByVal
opencv_core.UMat img,
@ByRef
opencv_core.RectVector found_locations,
@StdVector
DoubleBuffer confidences)
public void detectMultiScale(@ByVal
opencv_core.UMat img,
@ByRef
opencv_core.RectVector found_locations,
@StdVector
double[] confidences)
public void detectMultiScale(@ByVal
opencv_core.GpuMat img,
@ByRef
opencv_core.RectVector found_locations,
@StdVector
org.bytedeco.javacpp.DoublePointer confidences)
public void detectMultiScale(@ByVal
opencv_core.GpuMat img,
@ByRef
opencv_core.RectVector found_locations)
public void detectMultiScale(@ByVal
opencv_core.GpuMat img,
@ByRef
opencv_core.RectVector found_locations,
@StdVector
DoubleBuffer confidences)
public void detectMultiScale(@ByVal
opencv_core.GpuMat img,
@ByRef
opencv_core.RectVector found_locations,
@StdVector
double[] confidences)
public void compute(@ByVal
opencv_core.Mat img,
@ByVal
opencv_core.Mat descriptors,
@ByRef(nullValue="cv::cuda::Stream::Null()")
opencv_core.Stream stream)
img - Source image. See cuda::HOGDescriptor::detect for type limitations.descriptors - 2D array of descriptors.stream - CUDA stream.public void compute(@ByVal
opencv_core.Mat img,
@ByVal
opencv_core.Mat descriptors)
public void compute(@ByVal
opencv_core.UMat img,
@ByVal
opencv_core.UMat descriptors,
@ByRef(nullValue="cv::cuda::Stream::Null()")
opencv_core.Stream stream)
public void compute(@ByVal
opencv_core.UMat img,
@ByVal
opencv_core.UMat descriptors)
public void compute(@ByVal
opencv_core.GpuMat img,
@ByVal
opencv_core.GpuMat descriptors,
@ByRef(nullValue="cv::cuda::Stream::Null()")
opencv_core.Stream stream)
public void compute(@ByVal
opencv_core.GpuMat img,
@ByVal
opencv_core.GpuMat descriptors)
Copyright © 2018. All rights reserved.