EVERYDAY DISCOUNT OFFER
Buy 2 or more eligible titles and save 35%*—use code BUY2. Shop now.
Register your product to gain access to bonus material or receive a coupon.
Bring the power and flexibility of C++ to all your DSP applications
The multimedia revolution has created hundreds of new uses for Digital Signal Processing, but most software guides have continued to focus on outdated languages such as FORTRAN and Pascal for managing new applications. Now C++ Algorithms for Digital Signal Processing applies object-oriented techniques to this growing field with software you can implement on your desktop PC. C++ Algorithms for Digital Signal Processing's programming methods can be used for applications as diverse as:
Complete coverage is provided, including:
Multimedia professionals, managers, and even advanced hobbyists will appreciate C++ Algorithms for Digital Signal Processing as much as students, engineers, and programmers. It's the ideal bridge between programming and signal processing, and a valuable reference for experts in either field.
Source code for all of the DSP programs and DSP data associated with the examples discussed in this book and Appendix B and the file README.TXT which provide more information about how to compile and run the programs can be downloaded from www.informit.com/title/9780131791442
Click here for a sample chapter for this book: 0131791443.pdf
Preface.
List of Key Symbols.
1. Digital Signal Processing Fundamentals.
Sequences.
The Sampling Function. Sampled Signal Spectra. Continuous- and Discrete Time Signal Spectra. The Impulse Sequence.
Linear Time Invariant Operators.
Causality. Difference Equations. The z-transform Description of Linear Operators. Frequency Domain Transfer Function of an Operator. Frequency Response Relationship to the z-transform. Summary of Linear Operators.
Digital Filters.
FIR Filters. Linear Phase in FIR Filters. IIR Filters. Example Filter Responses. Filter Specifications. Filter Structures.
The Discrete Fourier Transform.
Form of the DFT. Properties of the DFT. Power Spectrum. Averaged Periodograms. The Fast Fourier Transform. FFT Example Result.
Nonlinear Operators.
Clipping and Compression. _-law and A-law Compression. Filtering by Sorting: Median and Min/Max Filters.
Linear Algebra: Matrices and Vectors.
Vectors. Properties of Matrix Mathematics.
Probability and Random Processes.
Basic Probability. Random Variables. Mean, Variance, and Gaussian Random Variables. Quantization of Sequences. Random Processes, Autocorrelation, and Spectral Density. Modeling Real-World Signals With AR Processes.
Adaptive Filters and Systems.
Wiener Filter Theory. LMS Algorithms.
Two-Dimensional Signal Processing.
The Two-Dimensional Fourier Transform. Two-Dimensional Convolution. Using the FFT to Speed Up Two-Dimensional Processing. Two-Dimensional Filtering in the Transform Domain.
References.
The Elements of DSP Programming. Variables and Data Types.
Types of Numbers. Arrays. Text Data Types: Characters and Strings.
Operators.
Assignment Operators. Arithmetic and Bitwise Operators. Combined Operators. Logical Operators. Operator Overloading. Operator Precedence and Type Conversion.
Program Control.
Conditional Execution: if-else. The switch Statement. Single-Line Conditional Expressions. Loops: while, do-while, and for. Program Jumps: break, continue, and goto. Exception Handling.
Functions.
Defining and Declaring Functions. Storage Class, Privacy, and Scope. Function Prototypes. Templates.
Macros and the C Preprocessor.
Conditional Preprocessor Directives. Macros. Inline Functions. Constant Variables.
Pointers, Arrays, and References.
Special Pointer Operators. Pointers and Dynamic Memory Allocation. Arrays of Pointers. References.
Structures.
Declaring and Referencing Structures. Member Functions. Constructors and Destructors. Pointers to Structures.
Classes.
Member Access Identifiers. Operator Overloading. Inheritance. Complex Numbers.
Input and Output.
cin, cout, and cerr. Accessing Disk Files.
Common C++ Programming Pitfalls.
Special String Characters. Array Indexing. Misusing Pointers.
Comments on Programming Style.
Software Quality. Structured Programming.
References.
User Interface.
String Input. Numerical Input.
Formatted Disk Storage.
Open Formatted Data File Routines. Formatted Data Access Routines. Trailer Access Routines.
Graphic Display of Data. Exercises. References.
Digital Versus Analog Filters. FIR Filters.
Floating-Point FIR Filters. Integer FIR Filters.
IIR Filters.
IIR Filter Design. IIR Filter Function.
Real-Time Filters.
FIR Real-Time Filters. Real-Time Filtering Examples.
Interpolation and Decimation.
FIR Interpolation. FIR Sample Rate Modification and Pitch Shifting.
Complex Filters.
Hilbert Transform Real-to-Complex Conversion.
Filtering to Remove Noise.
Noise Generation. Statistics Calculation. Signal-to-Noise Ratio Improvement. Filtering Quantization Noise.
Nonlinear Filtering.
Sorting. Median Filtering. Speech Compression.
Oscillators and Waveform Synthesis.
IIR Filters as Oscillators. Table-Generated Waveforms.
Adaptive Filtering and Modeling of Signals.
LMS Signal Enhancement. ARMA Modeling of Signals. AR Frequency Estimation.
Exercises. References.
The Discrete Fourier Transform Routine. The Inverse Discrete Fourier Transform. The Fast Fourier Transform Routine. The Inverse FFT Routine. Windowing Routines. Magnitude, Phase, and Logarithmic Displays. Optimizing The FFT for Real Input Sequences. Fourier Transform Examples.
FFT Test Routine. DFT Test Routine. Inverse FFT Test Routine. Real FFT Test Routine.
Fast Convolution Using the FFT. Power Spectral Estimation. Interpolation Using the Fourier Transform. Exercises. References.
Vector Operations.
Vector Arithmetic. Example Vector Operations. Cross Correlation and Autocorrelation.
Matrix Operations.
Matrix Element Manipulation. Matrix Arithmetic. Matrix Inversion. Matrix Determinant. Example Matrix Routine.
Matrix Disk Storage. Least Squares Curve Fitting.
Least Squares Routine. Curve-Fitting Examples.
Exercises. References.
Transform Techniques in Image Processing.
Discrete Cosine Transform Image Compression. Coefficient Quantization in the Compressed Image. Block Coding. Discrete Cosine Transform Functions. Image Compression Routine. Image Recovery Routine. Compression And Recovery of an Image.
Histogram Processing.
Histogram Function. Histogram-Flattening Routine. Histogram-Flattening Example.
Two-Dimensional Convolution.
Convolution Speed-Up. Two-Dimensional Convolution Function. Example Convolution Routine. Two-Dimensional FFT Convolution. Edge Detection Using Convolution. Edge Detection Routine.
Nonlinear Processing of Images.
Median Filtering. Erosion And Dilation.
Exercises. References.
Math Functions.
Trigonometric Functions. Exponential, Log, Power, Square Root. Hyperbolic Functions. Absolute Value, Floor, Ceiling. Euclidean Distance.
Character String Functions.
Convert String to Double-Precision Number. Convert String to Integer. Number to String Conversion. String Manipulation Functions.
Memory Allocation Operators. Standard Input/Output Classes.
Get a Character from a Stream. Get a String from a Stream. Get a Block of Data from a Stream. Get a Class from a Stream. Send a Character to a Stream. Send a String or Block of Data to a Stream. Open a File. Determine the Position of a File Pointer. Reposition a File Pointer. Close a File. Formatted Output Conversion. Formatted Input Conversion.
Other Standard Functions.
Random Number Generator. Quick General Sort. Terminate a Process and Close Files.
Library Functions.
User Interface Functions. Disk Storage Functions. Filter Functions. DFT Functions. Matrix Functions. Image-Processing Functions.
Programs.
WINPLOT Program. File Format Conversion Programs.
Preface
This book is written with the conviction that two current trends in engineering and programming will continue in the foreseeable future and will become very closely related. The first trend is the rapidly growing importance of digital signal processing (DSP). Digital techniques have become the method of choice in signal processing as digital computers have increased in power, speed, and convenience and as powerful microprocessors have become more available. Some examples of the applications of DSP to engineering problems are:
Radar signal processing such as: