whitesWhistleDetector
Class SliceData

java.lang.Object
  extended by whitesWhistleDetector.SliceData

public class SliceData
extends java.lang.Object


Field Summary
protected  FFTDataUnit fftDataUnit
           
protected  int nPeaks
           
private  int peakBin
           
protected  int[][] peakInfo
           
protected  int sliceLength
           
protected  int sliceNumber
           
protected  boolean[] slicePixs
           
 
Constructor Summary
protected SliceData(int sliceNumber, int sliceLength, FFTDataUnit fftDataUnit)
           
 
Method Summary
protected  int[] condenseInfo(SliceData prevSlice)
          Repacks the data and returns the lower and upper bounds.
private  int countRegions()
           
private  int findOverlappingPeak(int[] peakInfo, SliceData otherSlice)
           
 int getPeakBin()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sliceNumber

protected int sliceNumber

sliceLength

protected int sliceLength

slicePixs

protected boolean[] slicePixs

fftDataUnit

protected FFTDataUnit fftDataUnit

nPeaks

protected int nPeaks

peakInfo

protected int[][] peakInfo

peakBin

private int peakBin
Constructor Detail

SliceData

protected SliceData(int sliceNumber,
                    int sliceLength,
                    FFTDataUnit fftDataUnit)
Method Detail

getPeakBin

public int getPeakBin()

condenseInfo

protected int[] condenseInfo(SliceData prevSlice)
Repacks the data and returns the lower and upper bounds.

0th = lower bound

1st = peak value

2nd = upper bound

3rd = peak number in previous slice (filled in later but allocated now)

Returns:
bounds

findOverlappingPeak

private int findOverlappingPeak(int[] peakInfo,
                                SliceData otherSlice)

countRegions

private int countRegions()