Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
Bial::SignalOp Namespace Reference

Functions

void Accumulate (Signal &sgn)
 Accumulates input signal. More...
 
Signal Accumulate (const Signal &sgn)
 Returns a copy of input signal, accumulated. More...
 
double AccumulatedFrequency (const Signal &sgn, size_t min_bin=0)
 Returns the sum of the frequencies from min_bin to the last bin (including the extremities). More...
 
double AccumulatedFrequency (const Signal &sgn, size_t min_bin, size_t max_bin)
 Returns the sum of the frequencies from min_bin to max_bin (including the extremities). More...
 
double AccumulatedWeightedFrequency (const Signal &sgn, size_t min_bin=0)
 Returns the sum of frequencies weighted by their sampling time from min_bin to the last bin (including the extremities). More...
 
double AccumulatedWeightedFrequency (const Signal &sgn, size_t min_bin, size_t max_bin)
 Returns the sum of frequencies weighted by their sampling time from min_bin to max_bin (including the extremities). More...
 
Signal RemoveEmptyBins (const Signal &sgn)
 Returns a copy of input signal, without the empty bins. More...
 
Vector< size_t > MapBins (const Signal &source, const Signal &target)
 Returns a Vector contaning the indexes of the target bins which corresponds to the bins with the same frequency in source signals. Used to get corresponding bins with a signal which empty bins were removed. More...
 
void Equalize (Signal &sgn)
 Equalizes input signal. More...
 
Signal Equalize (const Signal &sgn)
 Returns a copy of input signal, equalized. More...
 
void SegmentEqualize (Signal &sgn)
 Equalizes input signal by segmented histogram in two parts. More...
 
Signal SegmentEqualize (const Signal &sgn)
 Returns a copy of input signal, equalized. More...
 
double LowHysteresis (const Signal &sgn, size_t krl_size, float low_threshold, float hgh_threshold)
 Returns data value of the hysteresis in the low data value of the histogram. More...
 
double HighHysteresis (const Signal &sgn, size_t krl_size, float low_threshold, float hgh_threshold)
 Returns data value of the hysteresis in the high data value of the histogram. More...
 
size_t Peak (const Signal &sgn, size_t min_bin, size_t max_bin)
 Finds the highest peak from bin min_bin to bin max_bin. More...
 
Vector< size_t > Peaks (const Signal &sgn, size_t min_bin, size_t max_bin, size_t kernel_size)
 Finds the bins representing the local maxima with respect to their adjacents in kernel range. More...
 
size_t FirstRightPeak (const Signal &sgn, size_t start_bin, size_t kernel_size)
 Finds the first peak to the right of start_bin using a kernel of size kernel_size to validade the peak. Peaks that are narrower than kernel_size are ignored. More...
 
size_t FirstRightPeak (const Signal &sgn, size_t start_bin, size_t end_bin, size_t kernel_size)
 Finds the first peak to the right of start_bin up to end_bin using a kernel of size kernel_size to validade the peak. Peaks that are narrower than kernel_size are ignored. More...
 
size_t FirstLeftPeak (const Signal &sgn, size_t start_bin, size_t kernel_size)
 Finds the first peak to the left of start_bin using a kernel of size kernel_size to validade the peak. Peaks that are narrower than kernel_size are ignored. More...
 
size_t FirstLeftPeak (const Signal &sgn, size_t start_bin, size_t end_bin, size_t kernel_size)
 Finds the first peak to the left of start_bin up to end_bin using a kernel of size kernel_size to validade the peak. Peaks that are narrower than kernel_size are ignored. More...
 
size_t Valley (const Signal &sgn, size_t min_bin, size_t max_bin)
 Finds the lowest valley from bin min_bin to bin max_bin. More...
 
Vector< size_t > Valleys (const Signal &sgn, size_t min_bin, size_t max_bin, size_t kernel_size)
 Finds the bins representing the local minima with respect to their adjacents in kernel range. More...
 
size_t FirstRightValley (const Signal &sgn, size_t start_bin, size_t kernel_size)
 Finds the first valley to the right of start_bin using a kernel of size kernel_size to validade the valley. Valleys that are narrower than kernel_size are ignored. More...
 
size_t FirstRightValley (const Signal &sgn, size_t start_bin, size_t end_bin, size_t kernel_size)
 Finds the first valley to the right of start_bin up to end_bin using a kernel of size kernel_size to validade the valley. Valleys that are narrower than kernel_size are ignored. More...
 
size_t FirstLeftValley (const Signal &sgn, size_t start_bin, size_t kernel_size)
 Finds the first valley to the left of start_bin using a kernel of size kernel_size to validade the valley. Valleys that are narrower than kernel_size are ignored. More...
 
size_t FirstLeftValley (const Signal &sgn, size_t start_bin, size_t end_bin, size_t kernel_size)
 Finds the first valley to the left of start_bin up to end_bin using a kernel of size kernel_size to validade the valley. Valleys that are narrower than kernel_size are ignored. More...
 
size_t FirstRightAcclivity (const Signal &sgn, size_t start_bin, size_t kernel_size, float signal_delta_proportion)
 Detects the first bin that belongs to an acclivity, to the right of start_bin, that is greater than start_bin value * ( 1.0 + signal_delta_proportion ). Sets of consecutive bins that that are narrower than kernel_size are ignored. More...
 
size_t FirstRightAcclivity (const Signal &sgn, size_t start_bin, size_t end_bin, size_t kernel_size, float signal_delta_proportion)
 Detects the first bin that belongs to an acclivity, to the right of start_bin and limited to end_bin, that is greater than start_bin value * ( 1.0 + signal_delta_proportion ). Sets of consecutive bins that that are narrower than kernel_size are ignored. More...
 
size_t FirstLeftAcclivity (const Signal &sgn, size_t start_bin, size_t kernel_size, float signal_delta_proportion)
 Detects the first bin that belongs to an acclivity, to the left of start_bin, that is greater than start_bin value * ( 1.0 + signal_delta_proportion ). Sets of consecutive bins that that are narrower than kernel_size are ignored. More...
 
size_t FirstLeftAcclivity (const Signal &sgn, size_t start_bin, size_t end_bin, size_t kernel_size, float signal_delta_proportion)
 Detects the first bin that belongs to an acclivity, to the left of start_bin and limited to end_bin, that is greater than start_bin value * ( 1.0 + signal_delta_proportion ). Sets of consecutive bins that that are narrower than kernel_size are ignored. More...
 
size_t FirstRightDeclivity (const Signal &sgn, size_t start_bin, size_t kernel_size, float signal_delta_proportion)
 Detects the first bin that belongs to an declivity, to the right of start_bin, that is lower than start_bin value * ( 1.0 - signal_delta_proportion ). Sets of consecutive bins that that are narrower than kernel_size are ignored. More...
 
size_t FirstRightDeclivity (const Signal &sgn, size_t start_bin, size_t end_bin, size_t kernel_size, float signal_delta_proportion)
 Detects the first bin that belongs to an declivity, to the right of start_bin and limited to end_bin, that is lower than start_bin value * ( 1.0 - signal_delta_proportion ). Sets of consecutive bins that that are narrower than kernel_size are ignored. More...
 
size_t FirstLeftDeclivity (const Signal &sgn, size_t start_bin, size_t kernel_size, float signal_delta_proportion)
 Detects the first bin that belongs to an declivity, to the left of start_bin, that is lower than start_bin value * ( 1.0 - signal_delta_proportion ). Sets of consecutive bins that that are narrower than kernel_size are ignored. More...
 
size_t FirstLeftDeclivity (const Signal &sgn, size_t start_bin, size_t end_bin, size_t kernel_size, float signal_delta_proportion)
 Detects the first bin that belongs to an declivity, to the left of start_bin and limited to end_bin, that is lower than start_bin value * ( 1.0 - signal_delta_proportion ). Sets of consecutive bins that that are narrower than kernel_size are ignored. More...
 
size_t PlateauRightLimit (const Signal &sgn, size_t start_bin, size_t kernel_size, float signal_delta_proportion)
 Detects the last occurrence, to the right of start_bin, of a bin that is not greater than start_bin value * ( 1.0 + signal_delta_proportion ) and that is not lower than start_bin value * ( 1.0 - signal_delta_proportion ). Sets of consecutive bins that are out of plateau signal range but are narrower than kernel_size are ignored. More...
 
size_t PlateauRightLimit (const Signal &sgn, size_t start_bin, size_t end_bin, size_t kernel_size, float signal_delta_proportion)
 Detects the last occurrence, to the right of start_bin up to end_bin, of a bin that is not greater than start_bin value * ( 1.0 + signal_delta_proportion ) and that is not lower than start_bin value ( 1.0 - signal_delta_proportion ).
Sets of consecutive bins that are out of plateau signal range but are narrower than kernel_size are ignored. More...
 
size_t PlateauLeftLimit (const Signal &sgn, size_t start_bin, size_t kernel_size, float signal_delta_proportion)
 Detects the last occurrence, to the left of start_bin, of a bin that is not greater than start_bin value * ( 1.0 + signal_delta_proportion ) and that is not lower than start_bin value * ( 1.0 - signal_delta_proportion ).
Sets of consecutive bins that are out of plateau signal range but are narrower than kernel_size are ignored. More...
 
size_t PlateauLeftLimit (const Signal &sgn, size_t start_bin, size_t end_bin, size_t kernel_size, float signal_delta_proportion)
 Detects the last occurrence, to the left of start_bin up to end_bin, of a bin that is not greater than start_bin value * ( 1.0 + signal_delta_proportion ) and that is not lower than start_bin value ( 1.0 - signal_delta_proportion ).
Sets of consecutive bins that are out of plateau signal range but are narrower than kernel_size are ignored. More...
 
void MedianFilter (Signal &sgn, size_t kernel_size)
 Filters input signal by a median kernel of size kernel_size. More...
 
Signal MedianFilter (const Signal &sgn, size_t kernel_size)
 Returns a copy of input signal filtered by median kernel of size kernel_size. More...
 
void Normalize (Signal &sgn)
 Normalizes input signal. More...
 
Signal Normalize (const Signal &sgn)
 Returns a copy of input signal, normalized. More...
 
size_t OtsuThreshold (const Signal &sgn)
 Computes otsu threshold of input signal. More...
 

Function Documentation

void Bial::SignalOp::Accumulate ( Signal sgn)

Accumulates input signal.

Date
2013/Oct/07
Parameters
sgnInput signal.
Returns
none.
Warning
none.
Signal Bial::SignalOp::Accumulate ( const Signal sgn)

Returns a copy of input signal, accumulated.

Date
2013/Oct/07
Parameters
sgnInput signal.
Returns
Accumulated signal.
Warning
none.
double Bial::SignalOp::AccumulatedFrequency ( const Signal sgn,
size_t  min_bin = 0 
)

Returns the sum of the frequencies from min_bin to the last bin (including the extremities).

Date
2012/Sep/13
Parameters
sgnInput signal.
min_binleft most bin.
Returns
The sum of the frequencies from min_bin to the last bin (including the extremities).
Warning
none.
double Bial::SignalOp::AccumulatedFrequency ( const Signal sgn,
size_t  min_bin,
size_t  max_bin 
)

Returns the sum of the frequencies from min_bin to max_bin (including the extremities).

Date
2012/Sep/13
Parameters
sgnInput signal.
min_binleft most bin.
max_binright most bin.
Returns
The sum of the frequencies from min_bin to max_bin (including the extremities).
Warning
none.
double Bial::SignalOp::AccumulatedWeightedFrequency ( const Signal sgn,
size_t  min_bin = 0 
)

Returns the sum of frequencies weighted by their sampling time from min_bin to the last bin (including the extremities).

Date
2012/Sep/13
Parameters
sgnInput signal.
min_binleft most bin.
Returns
The sum of the frequencies weighted by their sampling time from min_bin to the last bin (including the extremities).
Warning
none.
double Bial::SignalOp::AccumulatedWeightedFrequency ( const Signal sgn,
size_t  min_bin,
size_t  max_bin 
)

Returns the sum of frequencies weighted by their sampling time from min_bin to max_bin (including the extremities).

Date
2012/Sep/13
Parameters
sgnInput signal.
min_binleft most bin.
max_binright most bin.
Returns
The sum of the frequencies weighted by their sampling time from min_bin to max_bin (including the extremities).
Warning
none.
void Bial::SignalOp::Equalize ( Signal sgn)

Equalizes input signal.

Date
2013/Oct/07
Parameters
sgnInput signal.
Returns
none.
Warning
none.
Signal Bial::SignalOp::Equalize ( const Signal sgn)

Returns a copy of input signal, equalized.

Date
2013/Oct/07
Parameters
sgnInput signal.
Returns
Equalized signal.
Warning
none.
size_t Bial::SignalOp::FirstLeftAcclivity ( const Signal sgn,
size_t  start_bin,
size_t  kernel_size,
float  signal_delta_proportion 
)

Detects the first bin that belongs to an acclivity, to the left of start_bin, that is greater than start_bin value * ( 1.0 + signal_delta_proportion ). Sets of consecutive bins that that are narrower than kernel_size are ignored.

Date
2012/Sep/14
Parameters
sgnInput signal.
start_binA bin tha lies before the acclivity.
kernel_sizeSize of used kernel.
signal_delta_proportionmaximum signal proportion difference accepted.
Returns
The index of the first bin that belongs to the acclivity to the left of start_bin.
Warning
none.
size_t Bial::SignalOp::FirstLeftAcclivity ( const Signal sgn,
size_t  start_bin,
size_t  end_bin,
size_t  kernel_size,
float  signal_delta_proportion 
)

Detects the first bin that belongs to an acclivity, to the left of start_bin and limited to end_bin, that is greater than start_bin value * ( 1.0 + signal_delta_proportion ). Sets of consecutive bins that that are narrower than kernel_size are ignored.

Date
2012/Sep/14
Parameters
sgnInput signal.
start_binA bin tha lies before the acclivity.
end_binLimit for the search.
kernel_sizeSize of used kernel.
signal_delta_proportionmaximum signal proportion difference accepted.
Returns
The index of the first bin that belongs to the acclivity to the left of start_bin and limited to end_bin.
Warning
none.
size_t Bial::SignalOp::FirstLeftDeclivity ( const Signal sgn,
size_t  start_bin,
size_t  kernel_size,
float  signal_delta_proportion 
)

Detects the first bin that belongs to an declivity, to the left of start_bin, that is lower than start_bin value * ( 1.0 - signal_delta_proportion ). Sets of consecutive bins that that are narrower than kernel_size are ignored.

Date
2012/Sep/14
Parameters
sgnInput signal.
start_binA bin tha lies before the declivity.
kernel_sizeSize of used kernel.
signal_delta_proportionmaximum signal proportion difference accepted.
Returns
The index of the first bin that belongs to the declivity to the left of start_bin.
Warning
none.
size_t Bial::SignalOp::FirstLeftDeclivity ( const Signal sgn,
size_t  start_bin,
size_t  end_bin,
size_t  kernel_size,
float  signal_delta_proportion 
)

Detects the first bin that belongs to an declivity, to the left of start_bin and limited to end_bin, that is lower than start_bin value * ( 1.0 - signal_delta_proportion ). Sets of consecutive bins that that are narrower than kernel_size are ignored.

Date
2012/Sep/14
Parameters
sgnInput signal.
start_binA bin tha lies before the declivity.
end_binLimit for the search.
kernel_sizeSize of used kernel.
signal_delta_proportionmaximum signal proportion difference accepted.
Returns
The index of the first bin that belongs to the declivity to the left of start_bin and limited to end_bin.
Warning
none.
size_t Bial::SignalOp::FirstLeftPeak ( const Signal sgn,
size_t  start_bin,
size_t  kernel_size 
)

Finds the first peak to the left of start_bin using a kernel of size kernel_size to validade the peak. Peaks that are narrower than kernel_size are ignored.

Date
2012/Sep/11
Parameters
sgnInput signal.
signalInput signal.
start_binBin of reference.
kernel_sizeSize of used kernel.
Returns
The bin of the first peak to the left from start_bin at last as wide as kernel_size.
Warning
none.
size_t Bial::SignalOp::FirstLeftPeak ( const Signal sgn,
size_t  start_bin,
size_t  end_bin,
size_t  kernel_size 
)

Finds the first peak to the left of start_bin up to end_bin using a kernel of size kernel_size to validade the peak. Peaks that are narrower than kernel_size are ignored.

Date
2012/Sep/14
Parameters
sgnInput signal.
signalInput signal.
start_binBin of reference.
end_binLimit for the search.
kernel_sizeSize of used kernel.
Returns
The bin of the first peak to the left from start_bin to end_bin at last as wide as kernel_size.
Warning
none.
size_t Bial::SignalOp::FirstLeftValley ( const Signal sgn,
size_t  start_bin,
size_t  kernel_size 
)

Finds the first valley to the left of start_bin using a kernel of size kernel_size to validade the valley. Valleys that are narrower than kernel_size are ignored.

Date
2012/Sep/11
Parameters
sgnInput signal.
signalInput signal.
start_binBin of reference.
kernel_sizeSize of used kernel.
Returns
The bin of the first valley to the left from start_bin at last as wide as kernel_size.
Warning
none.
size_t Bial::SignalOp::FirstLeftValley ( const Signal sgn,
size_t  start_bin,
size_t  end_bin,
size_t  kernel_size 
)

Finds the first valley to the left of start_bin up to end_bin using a kernel of size kernel_size to validade the valley. Valleys that are narrower than kernel_size are ignored.

Date
2012/Sep/11
Parameters
sgnInput signal.
signalInput signal.
start_binBin of reference.
end_binLimit for the search.
kernel_sizeSize of used kernel.
Returns
The bin of the first valley to the left from start_bin to end_bin at last as wide as kernel_size.
Warning
none.
size_t Bial::SignalOp::FirstRightAcclivity ( const Signal sgn,
size_t  start_bin,
size_t  kernel_size,
float  signal_delta_proportion 
)

Detects the first bin that belongs to an acclivity, to the right of start_bin, that is greater than start_bin value * ( 1.0 + signal_delta_proportion ). Sets of consecutive bins that that are narrower than kernel_size are ignored.

Date
2012/Sep/14
Parameters
sgnInput signal.
start_binA bin tha lies before the acclivity.
kernel_sizeSize of used kernel.
signal_delta_proportionmaximum signal proportion difference accepted.
Returns
The index of the first bin that belongs to the acclivity to the right of start_bin.
Warning
none.
size_t Bial::SignalOp::FirstRightAcclivity ( const Signal sgn,
size_t  start_bin,
size_t  end_bin,
size_t  kernel_size,
float  signal_delta_proportion 
)

Detects the first bin that belongs to an acclivity, to the right of start_bin and limited to end_bin, that is greater than start_bin value * ( 1.0 + signal_delta_proportion ). Sets of consecutive bins that that are narrower than kernel_size are ignored.

Date
2012/Sep/14
Parameters
sgnInput signal.
start_binA bin tha lies before the acclivity.
end_binLimit for the search.
kernel_sizeSize of used kernel.
signal_delta_proportionmaximum signal proportion difference accepted.
Returns
The index of the first bin that belongs to the acclivity to the right of start_bin and limited to end_bin.
Warning
none.
size_t Bial::SignalOp::FirstRightDeclivity ( const Signal sgn,
size_t  start_bin,
size_t  kernel_size,
float  signal_delta_proportion 
)

Detects the first bin that belongs to an declivity, to the right of start_bin, that is lower than start_bin value * ( 1.0 - signal_delta_proportion ). Sets of consecutive bins that that are narrower than kernel_size are ignored.

Date
2012/Sep/14
Parameters
sgnInput signal.
start_binA bin tha lies before the declivity.
kernel_sizeSize of used kernel.
signal_delta_proportionmaximum signal proportion difference accepted.
Returns
The index of the first bin that belongs to the declivity to the right of start_bin.
Warning
none.
size_t Bial::SignalOp::FirstRightDeclivity ( const Signal sgn,
size_t  start_bin,
size_t  end_bin,
size_t  kernel_size,
float  signal_delta_proportion 
)

Detects the first bin that belongs to an declivity, to the right of start_bin and limited to end_bin, that is lower than start_bin value * ( 1.0 - signal_delta_proportion ). Sets of consecutive bins that that are narrower than kernel_size are ignored.

Date
2012/Sep/14
Parameters
sgnInput signal.
start_binA bin tha lies before the declivity.
end_binLimit for the search.
kernel_sizeSize of used kernel.
signal_delta_proportionmaximum signal proportion difference accepted.
Returns
The index of the first bin that belongs to the declivity to the right of start_bin and limited to end_bin.
Warning
none.
size_t Bial::SignalOp::FirstRightPeak ( const Signal sgn,
size_t  start_bin,
size_t  kernel_size 
)

Finds the first peak to the right of start_bin using a kernel of size kernel_size to validade the peak. Peaks that are narrower than kernel_size are ignored.

Date
2012/Sep/11
Parameters
sgnInput signal.
signalInput signal.
start_binBin of reference.
kernel_sizeSize of used kernel.
Returns
The bin of the first peak to the right from start_bin at last as wide as kernel_size.
Warning
none.
size_t Bial::SignalOp::FirstRightPeak ( const Signal sgn,
size_t  start_bin,
size_t  end_bin,
size_t  kernel_size 
)

Finds the first peak to the right of start_bin up to end_bin using a kernel of size kernel_size to validade the peak. Peaks that are narrower than kernel_size are ignored.

Date
2012/Sep/14
Parameters
sgnInput signal.
signalInput signal.
start_binBin of reference.
end_binLimit for the search.
kernel_sizeSize of used kernel.
Returns
The bin of the first peak to the right from start_bin to end_bin at last as wide as kernel_size.
Warning
none.
size_t Bial::SignalOp::FirstRightValley ( const Signal sgn,
size_t  start_bin,
size_t  kernel_size 
)

Finds the first valley to the right of start_bin using a kernel of size kernel_size to validade the valley. Valleys that are narrower than kernel_size are ignored.

Date
2012/Sep/11
Parameters
sgnInput signal.
signalInput signal.
start_binBin of reference.
kernel_sizeSize of used kernel.
Returns
The bin of the first valley to the right from start_bin at last as wide as kernel_size.
Warning
none.
size_t Bial::SignalOp::FirstRightValley ( const Signal sgn,
size_t  start_bin,
size_t  end_bin,
size_t  kernel_size 
)

Finds the first valley to the right of start_bin up to end_bin using a kernel of size kernel_size to validade the valley. Valleys that are narrower than kernel_size are ignored.

Date
2012/Sep/11
Parameters
sgnInput signal.
signalInput signal.
start_binBin of reference.
end_binLimit for the search.
kernel_sizeSize of used kernel.
Returns
The bin of the first valley to the right from start_bin to end_bin at last as wide as kernel_size.
Warning
none.
double Bial::SignalOp::HighHysteresis ( const Signal sgn,
size_t  krl_size,
float  low_threshold,
float  hgh_threshold 
)

Returns data value of the hysteresis in the high data value of the histogram.

Date
2014/Jan/07
Parameters
sgnInput signal.
krl_sizeSize of the kernel to locate hysteresis.
low_thresholdLow frequency threshold.
hgh_thresholdHigh frequency threshold.
Returns
Data value of the hysteresis in the high data value of the histogram.
Warning
none.
double Bial::SignalOp::LowHysteresis ( const Signal sgn,
size_t  krl_size,
float  low_threshold,
float  hgh_threshold 
)

Returns data value of the hysteresis in the low data value of the histogram.

Date
2014/Jan/07
Parameters
sgnInput signal.
krl_sizeSize of the kernel to locate hysteresis.
low_thresholdLow frequency threshold.
hgh_thresholdHigh frequency threshold.
Returns
Data value of the hysteresis in the low data value of the histogram.
Warning
none.
Vector< size_t > Bial::SignalOp::MapBins ( const Signal source,
const Signal target 
)

Returns a Vector contaning the indexes of the target bins which corresponds to the bins with the same frequency in source signals. Used to get corresponding bins with a signal which empty bins were removed.

Date
2012/Sep/12
Parameters
sourceThe source signal to be mapped. Signal without empty bins.
targetThe target signal with empty bins. Indexes from source corresponding to target are returned.
Returns
A Vector contaning the indexes of the target bins which corresponds to the bins with the same frequency in source signals.
Warning
none.
void Bial::SignalOp::MedianFilter ( Signal sgn,
size_t  kernel_size 
)

Filters input signal by a median kernel of size kernel_size.

Date
2012/Sep/11
Parameters
sgnInput signal.
kernel_sizeSize of the kernel for filtering.
Returns
none.
Warning
none.
Signal Bial::SignalOp::MedianFilter ( const Signal sgn,
size_t  kernel_size 
)

Returns a copy of input signal filtered by median kernel of size kernel_size.

Date
2012/Sep/11
Parameters
sgnInput signal.
kernel_sizeSize of the kernel for filtering.
Returns
Signal filtered by median kernel of size kernel_size.
Warning
none.
void Bial::SignalOp::Normalize ( Signal sgn)

Normalizes input signal.

Date
2013/Oct/07
Parameters
sgnInput signal.
Returns
none.
Warning
none.
Signal Bial::SignalOp::Normalize ( const Signal sgn)

Returns a copy of input signal, normalized.

Date
2013/Oct/07
Parameters
sgnInput signal.
Returns
Normalized signal.
Warning
none.
size_t Bial::SignalOp::OtsuThreshold ( const Signal sgn)

Computes otsu threshold of input signal.

Date
2012/Sep/13
Parameters
sgnInput signal.
Returns
Bin corresponding to Otsu threshold.
Warning
none.
size_t Bial::SignalOp::Peak ( const Signal sgn,
size_t  min_bin,
size_t  max_bin 
)

Finds the highest peak from bin min_bin to bin max_bin.

Date
2012/Sep/11
Parameters
sgnInput signal.
min_binminimum bin range.
max_binmaximum bin range.
Returns
The bin of the highest peak.
Warning
none.
Vector< size_t > Bial::SignalOp::Peaks ( const Signal sgn,
size_t  min_bin,
size_t  max_bin,
size_t  kernel_size 
)

Finds the bins representing the local maxima with respect to their adjacents in kernel range.

Date
2014/Jan/23
Parameters
sgnInput signal.
min_binminimum bin range.
max_binmaximum bin range.
kernel_sizeSize of used kernel.
Returns
A vector with the local peaks.
Warning
none.
size_t Bial::SignalOp::PlateauLeftLimit ( const Signal sgn,
size_t  start_bin,
size_t  kernel_size,
float  signal_delta_proportion 
)

Detects the last occurrence, to the left of start_bin, of a bin that is not greater than start_bin value * ( 1.0 + signal_delta_proportion ) and that is not lower than start_bin value * ( 1.0 - signal_delta_proportion ).
Sets of consecutive bins that are out of plateau signal range but are narrower than kernel_size are ignored.

Date
2012/Sep/11
Parameters
sgnInput signal.
signalInput signal.
start_binA bin that belongs to the plateau.
kernel_sizeSize of used kernel.
signal_delta_proportionmaximum signal proportion difference accepted for a bin to belong to the plateau.
Returns
The index of the last bin to the left of the start_bin that belongs to the plateau.
Warning
none.
size_t Bial::SignalOp::PlateauLeftLimit ( const Signal sgn,
size_t  start_bin,
size_t  end_bin,
size_t  kernel_size,
float  signal_delta_proportion 
)

Detects the last occurrence, to the left of start_bin up to end_bin, of a bin that is not greater than start_bin value * ( 1.0 + signal_delta_proportion ) and that is not lower than start_bin value ( 1.0 - signal_delta_proportion ).
Sets of consecutive bins that are out of plateau signal range but are narrower than kernel_size are ignored.

Date
2012/Sep/11
Parameters
sgnInput signal.
signalInput signal.
start_binA bin that belongs to the plateau.
kernel_sizeSize of used kernel.
signal_delta_proportionmaximum signal proportion difference accepted for a bin to belong to the plateau.
end_binLimit for the search.
Returns
The index of the last bin to the left of the start_bin up to end_bin that belongs to the plateau.
Warning
none.
size_t Bial::SignalOp::PlateauRightLimit ( const Signal sgn,
size_t  start_bin,
size_t  kernel_size,
float  signal_delta_proportion 
)

Detects the last occurrence, to the right of start_bin, of a bin that is not greater than start_bin value * ( 1.0 + signal_delta_proportion ) and that is not lower than start_bin value * ( 1.0 - signal_delta_proportion ). Sets of consecutive bins that are out of plateau signal range but are narrower than kernel_size are ignored.

Date
2012/Sep/11
Parameters
sgnInput signal.
signalInput signal.
start_binA bin that belongs to the plateau.
kernel_sizeSize of used kernel.
signal_delta_proportionmaximum signal proportion difference accepted for a bin to belong to the plateau.
Returns
The index of the last bin to the right of the start_bin that belongs to the plateau.
Warning
none.
size_t Bial::SignalOp::PlateauRightLimit ( const Signal sgn,
size_t  start_bin,
size_t  end_bin,
size_t  kernel_size,
float  signal_delta_proportion 
)

Detects the last occurrence, to the right of start_bin up to end_bin, of a bin that is not greater than start_bin value * ( 1.0 + signal_delta_proportion ) and that is not lower than start_bin value ( 1.0 - signal_delta_proportion ).
Sets of consecutive bins that are out of plateau signal range but are narrower than kernel_size are ignored.

Date
2012/Sep/11
Parameters
sgnInput signal.
signalInput signal.
start_binA bin that belongs to the plateau.
kernel_sizeSize of used kernel.
signal_delta_proportionmaximum signal proportion difference accepted for a bin to belong to the plateau.
end_binLimit for the search.
Returns
The index of the last bin to the right of the start_bin up to end_bin that belongs to the plateau.
Warning
none.
Signal Bial::SignalOp::RemoveEmptyBins ( const Signal sgn)

Returns a copy of input signal, without the empty bins.

Date
2012/Sep/11
Parameters
sgnInput signal.
Returns
Copy of input signal, without the empty bins.
Warning
none.
void Bial::SignalOp::SegmentEqualize ( Signal sgn)

Equalizes input signal by segmented histogram in two parts.

Date
2013/Oct/07
Parameters
sgnInput signal.
Returns
none.
Warning
NOT IMPLEMENTED YET.
Signal Bial::SignalOp::SegmentEqualize ( const Signal sgn)

Returns a copy of input signal, equalized.

Date
2013/Oct/07
Parameters
sgnInput signal.
Returns
Equalized signal by segmented histogram in two parts.
Warning
NOT IMPLEMENTED YET.
size_t Bial::SignalOp::Valley ( const Signal sgn,
size_t  min_bin,
size_t  max_bin 
)

Finds the lowest valley from bin min_bin to bin max_bin.

Date
2012/Sep/11
Parameters
sgnInput signal.
min_binminimum bin range.
max_binmaximum bin range.
Returns
The bin of the lowest valley.
Warning
none.
Vector< size_t > Bial::SignalOp::Valleys ( const Signal sgn,
size_t  min_bin,
size_t  max_bin,
size_t  kernel_size 
)

Finds the bins representing the local minima with respect to their adjacents in kernel range.

Date
2014/Jan/23
Parameters
sgnInput signal.
min_binminimum bin range.
max_binmaximum bin range.
kernel_sizeSize of used kernel.
Returns
A vector with the local valleys.
Warning
none.