OpenDroneMap / FIELDimageR

FIELDimageR: A R package to analyze orthomosaic images from agricultural field trials. This package is a compilation of functions to analyze pos-mosaicking images from research fields, and allows to: crop the image; remove soil effect; build vegetation indices; rotate the image; build the plot shapefile; extract information for each plot; and evaluate stand count, canopy percentage, and plant height.
GNU General Public License v2.0
237 stars 89 forks source link

plotRGB: cannot allocate vector of size 4.9 Gb #5

Closed lucassantoscorrea closed 3 years ago

lucassantoscorrea commented 4 years ago

IS THERE ANY LIMITATION ON THE SIZE OF IMAGES TO BE PROCESSED IN YOUR SOLUTION?

BRAZILIAN HERE, LITTLE KNOWLEDGE OF ENGLISH!

filipematias23 commented 4 years ago

Ola Lucas, Obrigado por perguntar. O R inicialmente não e um software de analise de imagens ou documentos pesados, então um arquivo de 5Gb provavelmente não vai abrir facilmente na area de plotagem. Eu recomendo algumas estratégias: i) reduzir o tamanho da imagem com a função aggregate; ii) cortar a imagem em tamanhos menores e trabalhar com um pedaço por vez; iii) aumentar a memória de uso do R; iv) remover objetos não usados no pipeline (voce pode sobrescreve-los salvando com o mesmo nome); v) em ultimo usar outro software como o QGIS. Eu escrevi um pouco sobre isso nesse link: https://github.com/OpenDroneMap/FIELDimageR#P20 . Deixe-me saber se tem mais duvidas.

Tudo de bom, Filipe Matias

lucassantoscorrea commented 4 years ago

Obrigado chefia!