FACT++  1.0
bool MStarguider::Interpolate ( const unsigned long  n,
byte img 
) const
private

Definition at line 1095 of file MStarguider.cc.

References end, fIntRate, and fTPointMode.

Referenced by ProcessFrame().

1096 {
1097  if (fIntRate<=1)
1098  return true;
1099 
1100  const int rate = fTPointMode>0 ? 5*25 : fIntRate;
1101 
1102  static unsigned short myimg[768*576];
1103 
1104  unsigned short *f = myimg;
1105 
1106  const byte *end = img+768*576;
1107 
1108  if (n%rate)
1109  {
1110  while (img<end)
1111  *f++ += *img++;
1112  return false;
1113  }
1114  else
1115  {
1116  while (img<end)
1117  {
1118  *img = (*img + *f)/rate;
1119  ++img;
1120  *f++ = 0;
1121  }
1122 
1123  return true;
1124  }
1125 }
byte fIntRate
Definition: MStarguider.h:54
unsigned char byte
Definition: MGImage.h:17
int fTPointMode
Definition: MStarguider.h:63
double end

+ Here is the caller graph for this function: