Changeset 5393 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
11/11/04 15:09:57 (20 years ago)
Author:
aliu
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtemp/mifae/library/MIslandsClean.cc

    r5379 r5393  
    333333      i++;
    334334    }
    335  
    336335   
    337336    TMath::Sort(islnum, islSize, islIdx, kTRUE);
     
    339338    i = 0;
    340339    Next.Reset();
    341     while ((imgIsl=(MImgIsland*)Next())) {
    342 
    343       if (islnum > 1 && islIdx[0]!=i && islIdx[1]!=i){
     340
     341    while ((imgIsl=(MImgIsland*)Next())) {
     342
     343      if (islnum>1 && i!=0 && islIdx[0]!=i && islIdx[1]!=i){
    344344         
    345345        pixNum = imgIsl->GetPixNum();
     
    352352          }
    353353      }
    354       else if(islnum>1 && islSize[islIdx[1]]<0.6*islSize[islIdx[0]]){
     354      else if(islnum>1 && i!=0 && islSize[islIdx[i]]<0.6*islSize[islIdx[0]]){
    355355       
    356356        pixNum = imgIsl->GetPixNum();
Note: See TracChangeset for help on using the changeset viewer.