convert image coordinates from index to X-Y image coordinates are given as index = (ID.col-1) * total.lines + ID.row

ind2sub2(Raster, Image_Index)

Arguments

Raster

raster obj. image raster object

Image_Index

numeric. coordinates corresponding to the raster

Value

list. list of columns and rows corresponding to index number