Package boofcv.abst.feature.detect.peak
Class MeanShiftPeak_to_SearchLocalPeak<T extends ImageGray<T>>
java.lang.Object
boofcv.abst.feature.detect.peak.MeanShiftPeak_to_SearchLocalPeak<T>
- All Implemented Interfaces:
SearchLocalPeak<T>
public class MeanShiftPeak_to_SearchLocalPeak<T extends ImageGray<T>>
extends Object
implements SearchLocalPeak<T>
Wrapper around
MeanShiftPeak
for SearchLocalPeak
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
getPeakX()
Location of the found peak.float
getPeakY()
Location of the found peak.void
search
(float x, float y) Initial point for the searchvoid
Specifies the image which is to be searchedvoid
setSearchRadius
(int radius) How far around the center it consider when searching for the peak
-
Constructor Details
-
MeanShiftPeak_to_SearchLocalPeak
-
-
Method Details
-
setImage
Description copied from interface:SearchLocalPeak
Specifies the image which is to be searched- Specified by:
setImage
in interfaceSearchLocalPeak<T extends ImageGray<T>>
- Parameters:
image
- input image
-
setSearchRadius
public void setSearchRadius(int radius) Description copied from interface:SearchLocalPeak
How far around the center it consider when searching for the peak- Specified by:
setSearchRadius
in interfaceSearchLocalPeak<T extends ImageGray<T>>
- Parameters:
radius
- Search radius
-
search
public void search(float x, float y) Description copied from interface:SearchLocalPeak
Initial point for the search- Specified by:
search
in interfaceSearchLocalPeak<T extends ImageGray<T>>
- Parameters:
x
- initial x-coordinatey
- initial y-coordinate
-
getPeakX
public float getPeakX()Description copied from interface:SearchLocalPeak
Location of the found peak. x-coordinate- Specified by:
getPeakX
in interfaceSearchLocalPeak<T extends ImageGray<T>>
- Returns:
- x-coordinate
-
getPeakY
public float getPeakY()Description copied from interface:SearchLocalPeak
Location of the found peak. y-coordinate- Specified by:
getPeakY
in interfaceSearchLocalPeak<T extends ImageGray<T>>
- Returns:
- y-coordinate
-