List of all members.
Static Public Member Functions |
static double | MSE (ref double[] signal_1, ref double[] signal_2, int SizeToCompare) |
static Boolean | IsPowerOfTwo (UInt32 x) |
| Verifies a number is a power of two.
|
static UInt32 | NextPowerOfTwo (UInt32 x) |
| Get Next power of number.
|
static Double[] | triangularExtraction (ref Double[] value, uint width, uint height, uint num, int fill=-1) |
static Double[] | squareExtraction (ref Double[] value, uint width, uint height, uint num, int fill=-1) |
| Make an extraction of square shape from the matrix starting from (0,0) coordinates.
|
static int | ColorToGray (int color) |
static void | saveSignal (ref double[] signal, string fileName) |
static double[] | loadSignal (string fileName) |
Public Attributes |
const Double | DDC_PI = 3.14159265358979323846 |
Member Function Documentation
Convert a color to grayscale.
- Parameters:
-
Verifies a number is a power of two.
- Parameters:
-
- Returns:
- true if number is a power two (i.e.:1,2,4,8,16,...)
Load a signal from a file
- Parameters:
-
signal | Signal to load |
fileName | Name of the file |
static double DSP.Utilities.MSE |
( |
ref double[] |
signal_1, |
|
|
ref double[] |
signal_2, |
|
|
int |
SizeToCompare |
|
) |
| [static] |
Calculate the Mean squared error.
- Parameters:
-
signal_1 | First signal to compare |
signal_2 | Second signal to compare |
SizeToCompare | Max size of element to compare. If size of one signal is less then this value function returns -1. |
Get Next power of number.
- Parameters:
-
- Returns:
- A power of two number
Saves a signal into a file
- Parameters:
-
signal | Signal to save |
fileName | Name of the file |
Make an extraction of square shape from the matrix starting from (0,0) coordinates.
- Parameters:
-
value | Matrix to manage |
width | Width of the matrix |
height | Height of the matrix |
num | Number of elements to extract |
fill | If different from -1 fills the selected elements in the Matrix with this value |
Make an extraction of triangular shape from the matrix starting from (0,0) coordinates.
- Parameters:
-
value | Matrix to manage |
width | Width of the matrix |
height | Height of the matrix |
num | Number of elements to extract |
fill | If different from -1 fills the selected elements in the Matrix with this value |
The documentation for this class was generated from the following file: