Changeset 7864 for trunk/MagicSoft/Mars/mbadpixels
- Timestamp:
- 08/08/06 16:04:31 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc
r7804 r7864 312 312 return 0; 313 313 314 // Check whether more than one neighbor contains useful information, 315 // which mean it can later be interpolated 314 316 if (GetNumSuitableNeighbors(type, *pix)>1) 315 317 return 0; 316 318 319 // If the requested area-index is valid check whether it is the requested one 317 320 if (aidx>=0 && pix->GetAidx()!=aidx) 318 321 return 1; 319 322 323 // Remove the pixel from the list of pixels to be checked 320 324 list.RemoveAt(idx); 321 325 326 // Do the same for the neighbor pixels recursively and count the 1-results 322 327 Short_t cnt = 1; 323 328 const Int_t n = pix->GetNumNeighbors(); … … 325 330 cnt += GetNumMaxCluster(type, list, pix->GetNeighbor(i), aidx); 326 331 332 // return the number of neighbor pixels/clusters which have unsuitable-type type 327 333 return cnt; 328 334 }
Note:
See TracChangeset
for help on using the changeset viewer.