Ignore:
Timestamp:
10/04/03 12:47:13 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mimage/MImgCleanTGB.cc

    r2296 r2377  
    257257#include <TGFrame.h>      // TGFrame
    258258#include <TGLabel.h>      // TGLabel
     259#include <TArrayC.h>      // TArrayC
    259260#include <TGTextEntry.h>  // TGTextEntry
    260261
     
    481482    Double_t sdev = sqrt(sq/w2 - mean*mean);
    482483
    483     Byte_t *nb = new Byte_t[1000];
    484     memset(nb, 0, 577);
     484    TArrayC n(fCam->GetNumPixels());
     485    Byte_t *nb = (Byte_t*)n.GetArray();
     486    //Byte_t *nb = new Byte_t[1000];
     487    //memset(nb, 0, 577);
    485488
    486489    for (Int_t i=0; i<entries; i++)
     
    512515    //CleanStep3(nb, 2, 3);
    513516
    514     delete nb;
    515 
    516517    return kTRUE;
    517518}
Note: See TracChangeset for help on using the changeset viewer.