Skip to content
Snippets Groups Projects

Draft: Release 2.0

Closed Cresson Remi requested to merge develop into master
11 files
+ 230
356
Compare changes
  • Side-by-side
  • Inline
Files
11
+ 4
1
## Miscellaneous: Work with images with different footprints / resolutions
OrfeoToolBox provides a handy `Superimpose` application that enables the projection of an image into the geometry of another one.
In pyotb, a function has been created to handle more than 2 images.
@@ -17,6 +18,7 @@ print(s2_image.shape) # (286, 195, 4)
print(vhr_image.shape) # (2048, 2048, 3)
print(labels.shape) # (1528, 1360, 1)
```
Our goal is to obtain all images at the same footprint, same resolution and same shape.
Let's consider we want the intersection of all footprints and the same resolution as `labels` image.
@@ -25,7 +27,8 @@ Let's consider we want the intersection of all footprints and the same resolutio
Here is the final result :
![Result](illustrations/pyotb_define_processing_area_result.jpg)
The piece of code to achieve this :
The piece of code to achieve this :
```python
s2_image, vhr_image, labels = pyotb.define_processing_area(s2_image, vhr_image, labels, window_rule='intersection',
pixel_size_rule='same_as_input',
Loading