When using the ArcObject RasterCursor (see snippet below), how do I get the absolute row / column of the current pixel value?
IRasterCursor rasterCursor = raster.CreateCursorEx(null);
do
{
IPixelBlock3 pixelblock = rasterCursor.PixelBlock as IPixelBlock3;
Array pixels = (Array)pixelblock.PixelData[rasterBandIndex];
for (int i = 0; i < pixelblock.Width; i++)
{
for (int j = 0; j < pixelblock.Height; j++)
{
// How to get absolute row / column of this pixelvalue
dynamic pixelValue = pixels.GetValue(i, j);
}
}
}
while (rasterCursor.Next());