C Fast Casting Data Type
I have a problem when try to change data type form one to another in C. For example, I try to casting float data type to integer or from double to integer. In the last time, I use command (int)float_number. Because this process is slow, I try to searching about fast casting data type. We [...]
C Create Dynamic 2D array
In my last post, I create code to create 2D array in C++. Now, I try to create dynamic 2D array in C. Algorithm to create dynamic 2D array in C or C++ is same. This is a code to create dynamic 2D array in C : float **arrayf_create(int row, int col) { int i; [...]
C/C++ Ricker Wavelets Code
Ricker Wavelets are zero-phase wavelets with a central peak and two smaller side lobes. A Ricker Wavelets can be uniquely specified with only a single parameter “f”. It’s peak frequency as seen on the wavelet spectrum. Ricker Wavelets Equation is : After searching in internet, I get Matlab code for this Ricker Wavelets and convert [...]
C/C++ Zero Crossing code
Zero-crossing is a commonly used term in electronics, mathematics, and image processing. In mathematical terms, a “zero-crossing” is a point where the sign of a function changes (e.g. from positive to negative), represented by a crossing of the axis (zero value) in the graph of the function. This is picture describe zero crossing location : [...]
