Package tritechgemini.detect
Class RelativeThresholdDetector
java.lang.Object
tritechgemini.detect.RelativeThresholdDetector
- All Implemented Interfaces:
RegionDetector
Start of some other detector ideas, but they ain't going to work very well.
- Author:
- Doug Gillespie
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetectRegions(SonarImageRecordI rawGeminiRecord, SonarImageRecordI denoisedRecord, int thHigh, int thLow, int nConnect) Search for regions using the raw data within the recordvoidsetMaxObjectSize(double maxObjectSize) voidsetMinObjectSize(double minObjectSize)
-
Constructor Details
-
RelativeThresholdDetector
public RelativeThresholdDetector()
-
-
Method Details
-
setMinObjectSize
public void setMinObjectSize(double minObjectSize) - Specified by:
setMinObjectSizein interfaceRegionDetector- Parameters:
minObjectSize- the minObjectSize to set
-
setMaxObjectSize
public void setMaxObjectSize(double maxObjectSize) - Specified by:
setMaxObjectSizein interfaceRegionDetector- Parameters:
maxObjectSize- the maxObjectSize to set
-
detectRegions
public ArrayList<DetectedRegion> detectRegions(SonarImageRecordI rawGeminiRecord, SonarImageRecordI denoisedRecord, int thHigh, int thLow, int nConnect) Description copied from interface:RegionDetectorSearch for regions using the raw data within the record- Specified by:
detectRegionsin interfaceRegionDetector- Parameters:
rawGeminiRecord- Raw data recorddenoisedRecord- Data with background removed.thHigh- higher thresholdthLow- lower threshold- Returns:
-