Compare
Compares the data image in this FITS file to another one. Returns true if they match; false otherwise. The headers ARE NOT compared; except to verify image dimensions.
Syntax
bool Compare( anotherCFitsFile );
Parameters
CFitsFile &anotherCFitsFile
Reference to another CFits object to compare against.
Returns
bool - 'true' if the image data matches; 'false' otherwise.
Required Headers
CFitsFile.h
Namespace
arc
Throws
std::runtime_error
Remarks
Only supports 16-bit images, but doesn't check for it.
Example
        // This code demonstrates how to compare two existing
        // 16-bit FITS files.

        #include <iostream>
        #include "CFitsFile.h"

        using namespace std;
        using namespace arc;

        int main()
        {
            try {
                CFitsFile cFits1( "Image1.fit" );
                CFitsFile cFits2( "Image2.fit" );

                if ( !cFits1.Compare( cFits2 ) )
                    cout << "FITS files do not match!" << endl; 
            }
            catch ( std::exception &e )
            {
                cerr << "Exception Occurred: " << e.what() << endl;
            }
        }

© Astronomical Research Cameras, Inc.