boofcv.alg.weights
Class WeightPixelKernel_F32
- java.lang.Object
-
- boofcv.alg.weights.WeightPixelKernel_F32
-
- All Implemented Interfaces:
- WeightPixel_F32
- Direct Known Subclasses:
- WeightPixelGaussian_F32
public abstract class WeightPixelKernel_F32 extends java.lang.Object implements WeightPixel_F32
Weight which uses the values contained in aKernel2D_F32. For performance reasons no checks are done to see if a request has been made outside the kernel's radius. Those values should be zero.
-
-
Constructor Summary
Constructors Constructor and Description WeightPixelKernel_F32()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetRadiusX()Returns the kernel's radius along the x-axisintgetRadiusY()Returns the kernel's radius along the y-axisfloatweight(int x, int y)Access the weight using coordinates.floatweightIndex(int index)Faster way to access the weight.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface boofcv.alg.weights.WeightPixel_F32
setRadius
-
-
-
-
Method Detail
-
weightIndex
public float weightIndex(int index)
Description copied from interface:WeightPixel_F32Faster way to access the weight. Refers to the index in a row major matrix.
x = (index % widthX) - radiusX
y = (index / widthX) - radiusY
- Specified by:
weightIndexin interfaceWeightPixel_F32- Parameters:
index- index of grid element- Returns:
- the weight
-
weight
public float weight(int x, int y)Description copied from interface:WeightPixel_F32Access the weight using coordinates.- Specified by:
weightin interfaceWeightPixel_F32- Parameters:
x- x-coordinate: range = -radius to radius, inclusivey- y-coordinate: range = -radius to radius, inclusive- Returns:
- the weight
-
getRadiusX
public int getRadiusX()
Description copied from interface:WeightPixel_F32Returns the kernel's radius along the x-axis- Specified by:
getRadiusXin interfaceWeightPixel_F32- Returns:
- Radius of kernel
-
getRadiusY
public int getRadiusY()
Description copied from interface:WeightPixel_F32Returns the kernel's radius along the y-axis- Specified by:
getRadiusYin interfaceWeightPixel_F32- Returns:
- Radius of kernel
-
-
DataMelt 3.0 © DataMelt by jWork.ORG