Displaying a set of selected images

{
// Example of display of an image contained in a few selected frames
// A loop is made on these selected frames, which contain a trigger
// named "TrigImage". The result of this macro may be seen  here 

// Open a frame channel
  fc = new VFrameChannel("demoDB.root");
  
// Open a new window (canvas) and divide it
  c1 = new TCanvas("c1","Images in selected frames",1);
  c1->Divide(2,2);

// The images are in the frames containing condition (trigger) "TrigImage"  
  cs = fc->CreateConditionSet("TrigImage");
  
// search all the frames containing condition TrigImage, i.e. images
  while (fr = fc->GetNextFrame(cs)) {
     c1->cd(1);
     gVM->Draw(fr,"MYGO_IMAGE","surf2");
     c1->cd(2);
     gVM->Draw(fr,"MYGO_IMAGE","cont0z");
     c1->cd(3);
     gVM->Draw(fr,"MYGO_IMAGE","cont1");
     c1->cd(4);
     gVM->Draw(fr,"MYGO_IMAGE","colz");

     gPad->Update();
     FrameFree(fr);
  }
}


- ROOT page - VEGA page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to , or contact with any questions or problems regarding ROOT or VEGA.