I want to use random forests in R to classify an image. My image is in jp2 format. I read Open JPEG2000 (Sentinel 2) in R and updated my rdal:
rgdal: version: 1.2-5, (SVN revision 648) Geospatial Data Abstraction Library extensions to R successfully loaded Loaded GDAL runtime: GDAL 2.0.1, released 2015/09/15
Still, I see only JPEG not JPER2000 when I run
gdalDrivers(). Translation into tiff is not an option for me as my image is ~800 Gb if uncompressed (more than my c drive) and gdal is not implementing random forests.
I also tried
myimage <- readGDAL('filename.jp2').
But even after exhaustive googling I can't figure out how
gdal_chooseInstallation('JP2OpenJPEG') works. All I am getting is
Error in .local(.Object, ...) :
How to I read jp2 image in R without translating it other formats so I can apply random forests?