• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kstars

fitsprocess.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           fitsprocess.h  -  Image processing utilities
00003                              -------------------
00004     begin                : Tue Feb 24 2004
00005     copyright            : (C) 2004 by Jasem Mutlaq
00006     email                : mutlaqja@ikarustech.com
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017  
00018  #ifndef FITSPROCESS_H
00019  #define FITSPROCESS_H
00020  
00021  #include <qptrlist.h>
00022  #include <qstringlist.h>
00023  #include <kcommand.h>
00024  
00025  /*1. QPtrList<unsigned int *> darkFrames;
00026       2. QPtrList<unsigned int *> flatFrames;
00027       3. The class reads the hdu of each FITS, the size of each frame must match the original frame, if not, abort and inform the user.
00028       4. Ignore the EXPOSURE (time in milliseconds) differences for now. We need to compensate for differences by employing different methods of extrapolation later. 
00029       5. void combine(int mode); mode is either FITS_AVERAGE or FITS_MEDIAN.
00030       6. void subtract(unsigned int * img1, unsigned int * img2); we know numOfPixels already.
00031       7. void divide(unsigned int * img1, unsigned int * img2); we know numOfPixels already.*/
00032 
00033 class FITSViewer;
00034 class QImage;
00035 
00036 class FITSProcess
00037 {
00038    public:
00039      FITSProcess(FITSViewer *parent, QStringList darkFiles, QStringList flatFiles, QStringList darkflatFiles, int darkMode, int flatMode, int darkflatMode);
00040      ~FITSProcess();
00041      
00042      QPtrList<float> darkFrames;
00043      QPtrList<float> flatFrames;
00044      QPtrList<float> darkflatFrames;
00045      FITSViewer *viewer;
00046      
00047      int npix;
00048      int darkCombineMode;
00049      int flatCombineMode;
00050      int darkflatCombineMode;
00051      float *finalDark;
00052      float *finalFlat;
00053      float *finalDarkFlat;
00054      
00055      float * combine(QPtrList<float> & frames, int mode);
00056      void subtract(float * img1, float * img2);
00057      void divide(float * img1, float * img2);
00058      void reduce();
00059      void normalize(float *buf);
00060      float quick_select(float * arr, int n);
00061      float average(float * array, int n);
00062      float min(float *buf);
00063      
00064 };
00065 
00066 class FITSProcessCommand : public KCommand
00067 {
00068   public:
00069   
00070   FITSProcessCommand(FITSViewer *parent);
00071   ~FITSProcessCommand();
00072  
00073   void execute();
00074   void unexecute();
00075   QString name() const;
00076   
00077   private:
00078   FITSViewer *viewer;
00079   float * buffer;
00080   QImage *oldImage;
00081  
00082 };
00083  
00084 #endif

kstars

Skip menu "kstars"
  • Main Page
  • Modules
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • keduca
  • kstars
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal