Using GDAL and/or Python Red: GeoTIFF raster Map layer 1 Blue: GeoTIFF raster Map layer 2
closed as off-topic by Vince, Jochen Schwarze, Evil Genius, Kadir Şahbaz, BERA Sep 19 '18 at 12:55
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "When seeking help to debug/write/improve code always provide the desired behavior, a specific problem/error and the shortest code (as formatted text, not pictures) needed to reproduce it in the question body. Providing a clear problem statement and a code attempt helps others to help you." – Vince, Jochen Schwarze, Evil Genius, Kadir Şahbaz, BERA
Assuming no rotation, if you have the coordinates of the center of your pixel, you can check that both the absolute difference between the X or Y coordinates of your "blue" pixel" and the "red" pixel is smaller than the difference between the half-width of the "red pixel" and the "blue" pixel (in the X and Y direction).
gdalinfo will give you the necessary information.