ee_Image_matchHistogram | R Documentation |
Matches the histogram of one image (source) to that of another image (target).
`ee$Image$Extra_matchHistogram(x, ...)`
x |
ee$Image to adjust. |
... |
Additional arguments for histogram matching. See details for more information. |
The ...
argument can include the following:
targetee$Image. The target image to match.
bandsDictionary. Band names to match, with source bands as keys and target bands as values.
geometryee$Geometry. The region to match histograms in that overlaps both images. Default is NULL.
maxBucketsInteger. The maximum number of buckets to use when building histograms. Default 256.
These parameters allow for detailed customization of the histogram matching process.
The adjusted image containing the matched source bands.
## Not run:
library(rgee)
library(rgeeExtra)
ee_Initialize()
extra_Initialize()
source <- ee$Image("LANDSAT/LC08/C01/T1_TOA/LC08_047027_20160819")
target <-ee$Image("LANDSAT/LE07/C01/T1_TOA/LE07_046027_20150701")
bands <- list("B4"="B3", "B3"="B2", "B2"="B1")
matched <- ee$Image$Extra_matchHistogram(source, target, bands)
names(matched)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.