Quantcast
Channel: Creating orthomosaic from *.las point cloud in R - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Answer by Zoe for Creating orthomosaic from *.las point cloud in R

$
0
0

Okay, so I figured out how to do it, although it's not very elegant:

# load datapoints <- readLAS(input_path)# returns the RGB values for the highest pointsRGBZ <- function(r,g,b,z) {  bands = list(    R = r[which.max(z)],    G = g[which.max(z)],    B = b[which.max(z)]  )  return(bands)}# create & save orthoortho <- grid_metrics(points, ~RGBZ(R,G,B,Z), res = 0.1)writeRaster(ortho, output_path)

Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>