mod09Q1e.c 305 B

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