Class SpectrogramThreshold
java.lang.Object
spectrogramNoiseReduction.SpecNoiseMethod
spectrogramNoiseReduction.threshold.SpectrogramThreshold
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getDelay()
Get a longer description of the method in html format for hover texts in dialogs.Get a component to include in the overall noise reductino dialoggetName()
Get a name for the method.getNode()
Get the FX node for the spectrogram method.Get the noise params for this method for storage between eunsboolean
initialise
(int channelMap) Set up the noise reduction processvoid
pickEarlierData
(ComplexArray fftData, ComplexArray complexArray) go through an array of other data, and copy data that's in earlyData into thresholdData if the threhsoldData is > 0;boolean
runNoiseReduction
(FFTDataUnit fftDataUnit) Run the noise reduction on the data in place.boolean
setParams
(Serializable noiseParams) Set the params for this method - will check class is OK before casting.Methods inherited from class spectrogramNoiseReduction.SpecNoiseMethod
getAnnotation
-
Field Details
-
OUTPUT_BINARY
public static final int OUTPUT_BINARY- See Also:
-
OUTPUT_INPUT
public static final int OUTPUT_INPUT- See Also:
-
OUTPUT_RAW
public static final int OUTPUT_RAW- See Also:
-
-
Constructor Details
-
SpectrogramThreshold
public SpectrogramThreshold()
-
-
Method Details
-
getDialogComponent
Description copied from class:SpecNoiseMethod
Get a component to include in the overall noise reductino dialog- Specified by:
getDialogComponent
in classSpecNoiseMethod
- Returns:
- component
-
getName
Description copied from class:SpecNoiseMethod
Get a name for the method.- Specified by:
getName
in classSpecNoiseMethod
- Returns:
- String
-
getDescription
Description copied from class:SpecNoiseMethod
Get a longer description of the method in html format for hover texts in dialogs.- Specified by:
getDescription
in classSpecNoiseMethod
- Returns:
- html description
-
getDelay
public int getDelay()- Specified by:
getDelay
in classSpecNoiseMethod
- Returns:
- the delay imposed on the data by this operation.
-
getParams
Description copied from class:SpecNoiseMethod
Get the noise params for this method for storage between euns- Specified by:
getParams
in classSpecNoiseMethod
- Returns:
-
initialise
public boolean initialise(int channelMap) Description copied from class:SpecNoiseMethod
Set up the noise reduction process- Specified by:
initialise
in classSpecNoiseMethod
- Returns:
- true if initialised OK.
-
runNoiseReduction
Description copied from class:SpecNoiseMethod
Run the noise reduction on the data in place.- Specified by:
runNoiseReduction
in classSpecNoiseMethod
- Returns:
- true if ran OK/
-
pickEarlierData
go through an array of other data, and copy data that's in earlyData into thresholdData if the threhsoldData is > 0;- Parameters:
fftData
- data to pick from (generally raw input fft data to noise process)binaryChoice
- output from runNoiseReduction()
-
setParams
Description copied from class:SpecNoiseMethod
Set the params for this method - will check class is OK before casting.- Specified by:
setParams
in classSpecNoiseMethod
- Returns:
- true if parameters match
-
getThresholdParams
-
getNode
Description copied from class:SpecNoiseMethod
Get the FX node for the spectrogram method.- Specified by:
getNode
in classSpecNoiseMethod
- Returns:
- the FX node for the spectrogram method.
-