public class HOGParameters extends AnchorBean<HOGParameters>
This class should implement a meaningful Object.equals(Object)
and hashCode()
on its properties as it may be used a CalculationPart
. The interpolator
) is
disconsidered.
Constructor and Description |
---|
HOGParameters() |
HOGParameters(Interpolator interpolator)
Creates with a particular
Interpolator . |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
void |
checkSize(Extent extent)
Throws an exception if an image of size
extent cannot be described by these
parameters. |
org.opencv.objdetect.HOGDescriptor |
createDescriptor(Extent imageSize)
Creates an empty
HOGDescriptor to describe an image of a particular size. |
boolean |
equals(Object o) |
SizeXY |
getBlockSize()
The block-size as per OpenCV implementation (identical default-size).
|
SizeXY |
getBlockStride()
The block-stride as per OpenCV implementation (identical default-size).
|
SizeXY |
getCellSize()
The cell-size as per OpenCV implementation (identical default-size).
|
Interpolator |
getInterpolator()
The interpolator to use for scaling images.
|
int |
getNumberBins()
The number of bins in each histogram for a cell.
|
SizeXY |
getWindowSize()
The window-size as per OpenCV implementation.
|
int |
hashCode() |
void |
setBlockSize(SizeXY blockSize)
The block-size as per OpenCV implementation (identical default-size).
|
void |
setBlockStride(SizeXY blockStride)
The block-stride as per OpenCV implementation (identical default-size).
|
void |
setCellSize(SizeXY cellSize)
The cell-size as per OpenCV implementation (identical default-size).
|
void |
setInterpolator(Interpolator interpolator)
The interpolator to use for scaling images.
|
void |
setNumberBins(int numberBins)
The number of bins in each histogram for a cell.
|
void |
setWindowSize(SizeXY windowSize)
The window-size as per OpenCV implementation.
|
int |
sizeDescriptor(Extent imageSize)
Calculates the size of the descriptor will be for a given image.
|
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public HOGParameters(Interpolator interpolator)
Interpolator
.interpolator
- the interpolator.public HOGParameters()
public int sizeDescriptor(Extent imageSize)
It assumes the window is equal to the image-size.
imageSize
- the size of the image (and window).public org.opencv.objdetect.HOGDescriptor createDescriptor(Extent imageSize)
HOGDescriptor
to describe an image of a particular size.imageSize
- the size of the image.public void checkSize(Extent extent) throws FeatureCalculationException
extent
cannot be described by these
parameters.extent
- the size of the image to check.FeatureCalculationException
- if the image is inappropriately sized for these
parameters.protected boolean canEqual(Object other)
public SizeXY getWindowSize()
public void setWindowSize(SizeXY windowSize)
public SizeXY getBlockSize()
public void setBlockSize(SizeXY blockSize)
public SizeXY getBlockStride()
public void setBlockStride(SizeXY blockStride)
public SizeXY getCellSize()
public void setCellSize(SizeXY cellSize)
public int getNumberBins()
public void setNumberBins(int numberBins)
public Interpolator getInterpolator()
public void setInterpolator(Interpolator interpolator)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.