mod09A1e.c 302 B

12345678910111213141516171819
  1. /* Adjacency correction 500m long Int bit[31]
  2. * 0 -> class 0: Not Corrected product
  3. * 1 -> class 1: Corrected product
  4. */
  5. #include <grass/raster.h>
  6. CELL mod09A1e(CELL pixel)
  7. {
  8. CELL qctemp;
  9. pixel >>= 31; /* bit no 31 becomes 0 */
  10. qctemp = pixel & 0x01;
  11. return qctemp;
  12. }