Skip to content

PATTERNS

flatten image collections

Many workflows for image collections will include a step that transforms an image collection into a single image (and flattens the collection).

composite image

If the collection represents a time series of satellite scenes, the workflow will often include a step that makes a composite image.

We will get to composite images in the second half of the semester.


🌎 mosaic image

If the collection contains a set of small tiles, then a workflow will often include a step that makes a mosaic image. This is a common step in workflows with lidar products.

mosaic-collection

graph LR

  method("geo.icFlatten.mosaicToImage()") ;
  output[/"ic_mosaic"/]  ;

  method --> output

  arg["ic"] ;

  arg --o method

  classDef in-out fill:#FFFFFF,stroke-width:1px,stroke: #000000, color:#000000; 
  classDef op fill:#000000,stroke-width:0px,color:#FFFFFF;
  classDef arg fill:#CCCCCC,stroke-width:0px,color:#000000;


  class input in-out; 
  class method op;
  class output in-out;
  class arg arg; 

var ic_mosaic = geo.icFlatten.mosaicToImage(ic);

print("Mosaic", ic_mosaic);

This method mosaics the tiles into a single image and gives the new image the same coordinate reference system as the first image in the collection. The crs defines the xy units of the image and this enables you to use the mosaic image as an input in terrain operations.


This work is licensed under CC BY-NC-SA 4.0