Changeset 557 in Sophya
- Timestamp:
- Nov 9, 1999, 7:24:11 PM (26 years ago)
- Location:
- trunk/SophyaPI/PI
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/parradapter.cc
r537 r557 156 156 int n0 = 0; 157 157 158 if (min >= max) { min = -9.e 19; max = 9.e19; }158 if (min >= max) { min = -9.e69; max = 9.e69; } 159 159 double minpix = max; 160 160 double maxpix = min; … … 220 220 int_4 *q; 221 221 222 double MINDYNAMIC = 1.e- 8; /* Gamme dynamique minimale (MaxAff-MinAff)*/222 double MINDYNAMIC = 1.e-48; /* Gamme dynamique minimale (MaxAff-MinAff)*/ 223 223 double FRACPIC = 0.6065; /* Valeur de exp(-0.5) */ 224 224 -
trunk/SophyaPI/PI/picmapview.cc
r537 r557 56 56 // long kind() 57 57 // Retourne PICMapView::ClassId . 58 // void SetColMap(PIColorMap* cmp=NULL, float min=1., floatmax=-1., bool refr=true)58 // void SetColMap(PIColorMap* cmp=NULL, double min=1., double max=-1., bool refr=true) 59 59 // Choix de la table de couleur et valeurs min et max. Si "refr==true", 60 60 // la méthode "Refresh()" est appelée. 61 // void SetColMapId(CMapId cmapid, float min=1., floatmax=-1., bool refr=true)61 // void SetColMapId(CMapId cmapid, double min=1., double max=-1., bool refr=true) 62 62 // Choix de la table de couleur en utilisant le "CMapId" et 63 63 // définition des valeurs min et max. Si "refr==true", … … 66 66 67 67 /* --Methode-- */ 68 void PICMapView::SetColMap(PIColorMap* cmp, float min, floatmax, bool refr)68 void PICMapView::SetColMap(PIColorMap* cmp, double min, double max, bool refr) 69 69 { 70 70 if (cmp == NULL) { … … 76 76 } 77 77 if ( cmap && (cmp->Type() == cmap->Type()) && (cmp->Type() != CMAP_OTHER) 78 && ((vmin-min) < 1.e- 19) && ((vmin-min) > -1.e-19) &&79 ((vmax-max) < 1.e- 19) && ((vmax-max) > -1.e-19) ) return;78 && ((vmin-min) < 1.e-69) && ((vmin-min) > -1.e-69) && 79 ((vmax-max) < 1.e-69) && ((vmax-max) > -1.e-69) ) return; 80 80 if (cmap) delete cmap; 81 81 cmap = new PIColorMap(*cmp); … … 86 86 87 87 /* --Methode-- */ 88 void PICMapView::SetColMapId(CMapId cmapid, float min, floatmax, bool refr)88 void PICMapView::SetColMapId(CMapId cmapid, double min, double max, bool refr) 89 89 { 90 90 if ( cmap && (cmapid == cmap->Type()) && (cmapid != CMAP_OTHER) 91 && ((vmin-min) < 1.e- 19) && ((vmin-min) > -1.e-19) &&92 ((vmax-max) < 1.e- 19) && ((vmax-max) > -1.e-19) ) return;91 && ((vmin-min) < 1.e-69) && ((vmin-min) > -1.e-69) && 92 ((vmax-max) < 1.e-69) && ((vmax-max) > -1.e-69) ) return; 93 93 if (cmap) delete cmap; 94 94 cmap = new PIColorMap(cmapid); -
trunk/SophyaPI/PI/picmapview.h
r130 r557 23 23 virtual long kind() {return ClassId; } 24 24 25 void SetColMap(PIColorMap* cmp=NULL, float min=1., floatmax=-1., bool refr=true);26 void SetColMapId(CMapId cmapid, float min=1., floatmax=-1., bool refr=true);25 void SetColMap(PIColorMap* cmp=NULL, double min=1., double max=-1., bool refr=true); 26 void SetColMapId(CMapId cmapid, double min=1., double max=-1., bool refr=true); 27 27 28 28 // Traitement des evenements … … 33 33 protected: 34 34 PIColorMap* cmap; 35 floatvmin, vmax;35 double vmin, vmax; 36 36 }; 37 37 -
trunk/SophyaPI/PI/piimage.cc
r537 r557 136 136 AddDrawer(mdrw, true, false, false); 137 137 138 SetLut( 0., 32000., kLutType_Lin, 0, false);138 SetLut(-9.e19, 9.e19, kLutType_Lin, 0, false); 139 139 SetColMapId(CMAP_COLRJ32); 140 140 // pour le copier-coller … … 432 432 int nbsig = lauto; 433 433 double fracmax = 1. - 0.05*nbsig; 434 int nbnul, nbsat; 435 double moy, sig; 436 img->CheckDyn(min, max, moy, sig, nbnul, nbsat); 434 437 img->ComputeLut_PicHisto(min, max, nbsig, fracmax); 435 438 } -
trunk/SophyaPI/PI/piimgtools.h
r537 r557 35 35 PILabel* mOlb[2]; 36 36 PIScale* mSc[2]; 37 floatmin_lut,max_lut;37 double min_lut,max_lut; 38 38 // Pour la couleur et le zoom 39 39 PIOptMenu* mOptzc[2];
Note:
See TracChangeset
for help on using the changeset viewer.