- How to get intensity of each pixel in image. i want to calculate higher intensity pixels in image
- #define DWORD unsigned long
- DWORD density(DWORD pixel)
- {
- // RGB in DWORD: 0x00rrggbb
- return (pixel & 0x000000ff) + ((pixel >> 8) & 0x000000ff) + ((pixel >> 16) & 0x000000ff);
- }