diff --git a/slides/a11y-light.css b/slides/a11y-light.css new file mode 100644 index 0000000000000000000000000000000000000000..a80b0a8b4b920b1bad668bf78d6980ef7a0b38a8 --- /dev/null +++ b/slides/a11y-light.css @@ -0,0 +1,97 @@ +/*! + Theme: a11y-light + Author: @ericwbailey + Maintainer: @ericwbailey + Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css +*/ + +.hljs { + background: #fefefe; + color: #000000; +} + +/* Comment */ +.hljs-comment, +.hljs-quote { + color: #696969; +} + +/* Red */ +.hljs-variable, +.hljs-template-variable, +.hljs-tag, +.hljs-name, +.hljs-selector-id, +.hljs-selector-class, +.hljs-regexp, +.hljs-deletion { + color: #d91e18; +} + +/* Orange */ +.hljs-number, +.hljs-built_in, +.hljs-literal, +.hljs-type, +.hljs-params, +.hljs-meta, +.hljs-link { + color: #aa5d00; +} + +/* Yellow */ +.hljs-attribute { + color: #aa5d00; +} + +/* Green */ +.hljs-string, +.hljs-symbol, +.hljs-bullet, +.hljs-addition { + color: #008000; +} + +/* Blue */ +.hljs-title, +.hljs-section { + color: #007faa; +} + +/* Purple */ +.hljs-keyword, +.hljs-selector-tag { + color: #7928a1; +} + +.hljs-emphasis { + font-style: italic; +} + +.hljs-strong { + font-weight: bold; +} + +@media screen and (-ms-high-contrast: active) { + .hljs-addition, + .hljs-attribute, + .hljs-built_in, + .hljs-bullet, + .hljs-comment, + .hljs-link, + .hljs-literal, + .hljs-meta, + .hljs-number, + .hljs-params, + .hljs-string, + .hljs-symbol, + .hljs-type, + .hljs-quote { + color: highlight; + } + + .hljs-keyword, + .hljs-selector-tag { + font-weight: bold; + } +} diff --git a/slides/index.html b/slides/index.html index 9c8526cb5a8078c1cc4a0495ec002e0363e7fea1..9d1b53a9fe34a21b360bb41a90e89d3a5f3ccb41 100644 --- a/slides/index.html +++ b/slides/index.html @@ -13,11 +13,9 @@ <link rel="stylesheet" href="./revealjs/dist/theme/white.css"> <link rel="stylesheet" href="otb.css" id="theme"> - <!-- I/ NOT USED ANYMORE --> - <!-- Theme used for syntax highlighted code - <link rel="stylesheet" href="a11y-light.css"> --> - <!-- Theme used for drawer code - <link rel="stylesheet" href="./revealdrawer/dist/drawer.css" /> --> + + <!-- Theme used for syntax highlighted code --> + <link rel="stylesheet" href="a11y-light.css"> </head> <body> @@ -136,7 +134,43 @@ <section> <h1>Conclusion</h1> - <h3>TODO</h3> + <h1small>An easier way to use Orfeo Toolbox in Python</h1small> + </br> + + <img style='vertical-align:middle' data-src="illustrations/pros.png" width=3%/> + <span>Takes advantage of the algorithms and efficiency of Orfeo Toolbox</span> + <br> + <img style='vertical-align:middle' data-src="illustrations/pros.png" width=3%/> + <span>Easy pythonic syntax</span> + <br> + <img style='vertical-align:middle' data-src="illustrations/pros.png" width=3%/> + <span>Easy to interact with Python processing libraries </span> + + </br></br> + <span class="fragment"> + + <pre><code data-trim class="python"> + import pyotb + + # Pansharpening + pxs = pyotb.BundleToPerfectSensor(inp='pan.vrt', inxs='xs.tif') + + # Computing NDVI + ndvi = (pxs[:, :, -1] - pxs[:, :, 0]) / (pxs[:, :, -1] + pxs[:, :, 0]) + + # Computing a boolean raster to identify pixels without vegetation + bare_soils = (ndvi < 0.3) + + # Creating a boolean cloud mask from the GML vector + cloud_mask = pyotb.Rasterization('cloud_mask.GML', im=bare_soils) + + # Masking clouds (i.e. assigning to 0) on the result + bare_soils_masked = pyotb.where(cloud_mask == 1, 0, bare_soils) + bare_soils_masked.write('bare_soils.tif', pixel_type='uint8') + </code></pre> + <p style='font-style:italic'>Code sample</p> + </span> + </section> </div>