Changeset 2933 in Sophya for trunk/SophyaPI/PIext/nomimagadapter.cc
- Timestamp:
- Apr 3, 2006, 2:20:29 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/nomimagadapter.cc
r2683 r2933 15 15 #else 16 16 #include "objfitter.h" 17 #include "fitstarray.h"18 17 #endif 19 18 … … 72 71 } 73 72 74 /* --Methode-- */75 template <class T>76 void NOMAdapter_Image<T>::ReadFits(string const & flnm)77 {78 #ifdef SANS_EVOLPLANCK79 cerr << " NOMAdapter_Image<T>::ReadFits() Non disponible !! " << endl;80 #else81 FitsInFile fis(flnm);82 fis >> (*mImg);83 #endif84 }85 86 /* --Methode-- */87 template <class T>88 void NOMAdapter_Image<T>::SaveFits(string const & flnm)89 {90 #ifdef SANS_EVOLPLANCK91 FitsImage<T> fim(*mImg, 1);92 fim.Save(flnm);93 #else94 FitsOutFile fos(flnm);95 fos << (*mImg);96 #endif97 }98 99 #ifndef SANS_EVOLPLANCK100 DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */101 void NOMAdapter_Image< uint_2 >::SaveFits(string const & flnm)102 {103 cout << " NOMAdapter_Image< uint_2 >::SaveFits() - Error "104 << " Not supported uint_2 data type ! " << endl;105 }106 107 DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */108 void NOMAdapter_Image< uint_2 >::ReadFits(string const & flnm)109 {110 cout << " NOMAdapter_Image< uint_2 >::ReadFits() - Error "111 << " Not supported uint_2 data type ! " << endl;112 }113 #endif114 73 115 74 /* --Methode-- */
Note:
See TracChangeset
for help on using the changeset viewer.