Hi Markus, We do not have classes specialized in image processing. However, you can build a 2-d histogram and draw it with.,eg the option "col" as illustrated in the following example: void pixels() { gStyle->SetPalette(1); TCanvas *c1 = new TCanvas("c1"); TH2C *hpixel = new TH2C("hpixel","pixels",640,0,640,512,0,512); hpixel->SetStats(0); for (Int_t i=0;i<640;i++) { for (Int_t j=0;j<512;j++) { hpixel->SetCellContent(i,j,48*cos(i/100.)*sin(j/80.)); } } hpixel->Draw("col"); } Rene Brun Markus Huening wrote: > > Hi Rooters, > > I'm looking for a way to display an Pixel Image, preferably in a Pad with > Axes an stuff. The Data I want to display is stored in an array (640X512) > of chars. Does anybody know how top do this? > > Greetings > > M. Huening > > ====================================================== > Markus Huening > Desy/FDET > Notkestrasse 85 > D-22607 Hamburg > Germany > > Tel: ++49 (040)8998-3030 > Fax: ++49 (040)8998-3094 > e-mail: markus.huening@desy.de
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:37 MET