mod09A1se.c 288 B

123456789101112131415161718192021
  1. /* CIRRUS DETECTED unsigned int bits[8-9]
  2. * 00 -> class 0: None
  3. * 01 -> class 1: Small
  4. * 10 -> class 2: Average
  5. * 11 -> class 3: High
  6. */
  7. #include <grass/raster.h>
  8. CELL mod09A1se(CELL pixel)
  9. {
  10. CELL qctemp;
  11. pixel >>= 8;
  12. qctemp = pixel & 0x03;
  13. return qctemp;
  14. }