Changeset 1321 in Sophya for trunk/SophyaPI/PIext/nomimagadapter.cc
- Timestamp:
- Nov 13, 2000, 4:32:34 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/nomimagadapter.cc
r1315 r1321 14 14 #else 15 15 #include "objfitter.h" 16 #include "fitstarray.h" 16 17 #endif 17 18 … … 72 73 /* --Methode-- */ 73 74 template <class T> 75 void NOMAdapter_Image<T>::ReadFits(string const & flnm) 76 { 77 #ifdef SANS_EVOLPLANCK 78 cerr << " NOMAdapter_Image<T>::ReadFits() Non disponible !! " << endl; 79 #else 80 FitsInFile fis(flnm); 81 fis >> (*mImg); 82 #endif 83 } 84 85 /* --Methode-- */ 86 template <class T> 74 87 void NOMAdapter_Image<T>::SaveFits(string const & flnm) 75 88 { … … 78 91 fim.Save(flnm); 79 92 #else 80 string s = typeid(*mImg).name(); 81 cout << "NOMAdapter_Image<T>::SaveFits() - Error : Not supported for " << s << endl; 82 #endif 83 } 93 FitsOutFile fos(flnm); 94 fos << (*mImg); 95 #endif 96 } 97 98 #ifndef SANS_EVOLPLANCK 99 void NOMAdapter_Image< uint_2 >::SaveFits(string const & flnm) 100 { 101 cout << " NOMAdapter_Image< uint_2 >::SaveFits() - Error " 102 << " Not supported uint_2 data type ! " << endl; 103 } 104 105 void NOMAdapter_Image< uint_2 >::ReadFits(string const & flnm) 106 { 107 cout << " NOMAdapter_Image< uint_2 >::ReadFits() - Error " 108 << " Not supported uint_2 data type ! " << endl; 109 } 110 #endif 84 111 85 112 /* --Methode-- */
Note:
See TracChangeset
for help on using the changeset viewer.