Class SampleIntensityScalePoint
java.lang.Object
boofcv.alg.feature.detect.selector.SampleIntensityScalePoint
- All Implemented Interfaces:
SampleIntensity<ScalePoint>
Uses the intensity value in
ScalePoint
to return the intensity-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getX
(ScalePoint p) Pixel coordinate x-axisint
getY
(ScalePoint p) Pixel coordinate y-axisfloat
sample
(@Nullable GrayF32 intensity, int index, ScalePoint p) Returns the intensity.
-
Constructor Details
-
SampleIntensityScalePoint
public SampleIntensityScalePoint()
-
-
Method Details
-
sample
Description copied from interface:SampleIntensity
Returns the intensity. If the sampling method does not require the intensity image then it may be null.- Specified by:
sample
in interfaceSampleIntensity<ScalePoint>
- Parameters:
intensity
- Image with intensity information. May be null if sampling method does not use it.index
- Index of the point in the listp
- Coordinate being sampled. Must be inside the image- Returns:
- The intensity at the sample point
-
getX
Description copied from interface:SampleIntensity
Pixel coordinate x-axis- Specified by:
getX
in interfaceSampleIntensity<ScalePoint>
-
getY
Description copied from interface:SampleIntensity
Pixel coordinate y-axis- Specified by:
getY
in interfaceSampleIntensity<ScalePoint>
-