如何使用R的pixmap包提取像素数据?
首先,使用以下代码读取图像文件: picture <- read.pnm("picture.pgm") picture Pixmap image Type : pixmapGrey Size : 749x745 Resolution : 1x1 Bounding box : 0 0 745 749
然后,如何将像素数据提取到矩阵中?
首先,使用以下代码读取图像文件: picture <- read.pnm("picture.pgm") picture Pixmap image Type : pixmapGrey Size : 749x745 Resolution : 1x1 Bounding box : 0 0 745 749
然后,如何将像素数据提取到矩阵中?