Hello. I'm working through the tutorial and when I reach section 4.7, I receive the following error:
> calData <- prepareCalData(rstSegm = segmRst,
+ trainData = trainDataRst,
+ rstFeatures = classificationFeatures,
+ thresh = 0.5,
+ funs = "mean",
+ minImgSegm = 30,
+ verbose = TRUE)
-> [1/3] Loading train data into image segments...
done.
-> [2/3] Calculating feature statistics for all image segments...
Error in calculateSegmentStats(rstFeatures = rstFeatures, rstSegm = rstSegm, :
Not enough memory to process the input raster files! Modify option bylayer to TRUE
Warning message:
In prepareCalData(rstSegm = segmRst, trainData = trainDataRst, rstFeatures = classificationFeatures, :
An error occurred while calculating segmentation statistics for feature data!
Any recommendation on how to fix the memory issue? I'm working on MacBook.