Changeset 3546 in Sophya for trunk/SophyaPI/PIext/graphexecut.cc


Ignore:
Timestamp:
Nov 17, 2008, 11:46:31 AM (17 years ago)
Author:
ansari
Message:

Ajout commande pirgbdisp pour lecture d'objet PIPixRGBArray (image RGB) et son affichage, Reza 17/11/2008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/graphexecut.cc

    r3528 r3546  
    319319else if (kw == "bargraph") return BarGraph(kw, tokens);
    320320else if (kw == "textdrawer") return TextDrawer(kw, tokens);
    321 
     321else if (kw == "pirgbdisp") {
     322  if (tokens.size() < 1) {
     323    cout << "Usage: pirgbdisp PI-RGB_FileName [gr_opt]" << endl;
     324    return(0);
     325  }
     326  string gropt = "lut=rgb rgb216cm ";
     327  if (tokens.size() > 1) gropt += tokens[1];
     328  PIPixRGBArray * rgbimg = new PIPixRGBArray(tokens[0].c_str());
     329  P2DPixRGBAdapter * argbimg = new P2DPixRGBAdapter(rgbimg, true);
     330  mImgApp->DispImage(argbimg, tokens[0], gropt);
     331}
    322332// Obsolete : ne pas virer SVP, cmv 26/7/99
    323333else if (kw == "gfd2d") {
     
    333343  mObjMgr->DisplayGFD(tokens[0],tokens[1],numvary,err,opt);
    334344  }
     345
    335346else if (kw == "gfd3d") {
    336347  cout<<"----- gfd3d OBSOLETE: utilisez nt3d -----"<<endl;
     
    752763mpiac->RegisterCommand(kw, usage, this, grp);
    753764
     765kw = "pirgbdisp";
     766usage = "Read and display RGB-image object (PIPixRGBArray) from file ";
     767usage += "\n Usage : pirgbdisp PI-RGB_FileName [gr_opt] ";
     768mpiac->RegisterCommand(kw, usage, this, grp);
    754769
    755770// Ceci est maintenant obsolete, on garde pour info.
Note: See TracChangeset for help on using the changeset viewer.