ind2sub2: convert image coordinates from index to X-Y image coordinates...

View source: R/Lib_ImageProcess.R

ind2sub2R Documentation

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

Description

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

Usage

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


jbferet/biodivMapR documentation built on May 1, 2024, 4:34 a.m.