/**************************************************************************/ /* File: snr_main.cc */ /**************************************************************************/ /* Project: Computing SNR of a given signal Class: EE 8993 Spring 96 */ /* Author: Neeraj Deshmukh Date: February 19, 1996 */ /**************************************************************************/ /*======================================================================== This file defines the main function for the signal-to-noise computation of any given signal ========================================================================*/ /*------------------------------------------------------------------------ system and ISIP include files ------------------------------------------------------------------------*/ #include "snr_prms.h" /*------------------------------------------------------------------------ forward declaration of classes ------------------------------------------------------------------------*/ class SNR_Detector; /*------------------------------------------------------------------------ main function ------------------------------------------------------------------------*/ main (int argc, char **argv) { // check for correct commandline // if (argc != 1) { fprintf (stderr, "Usage: cat | snr.exe \n"); exit (-1); } // create the SNR detector object // SNR_Detector snr_Detector_o; // compute the SNR value // snr_Detector_o.compute_snr_cc (); // close file and free memory // delete [] argv; }