<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style id="bidiui-paragraph-margins" type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body bidimailui-detected-decoding-type="UTF-8"
bidimailui-charset-is-forced="true" style="direction: ltr;"
text="#933131" bgcolor="#FFFFFF">
<p><font size="4">Yes, Orfeo has some strange, convoluted names. You
probably have heard the quote:</font></p>
<p><font size="4"><br>
‘There are only two hard things in Computer Science: cache
invalidation and naming things.’<br>
Phil Karlton<br>
</font></p>
<p><font size="4"><br>
</font></p>
<p><font size="4">Best, Micha</font></p>
<p><font size="4"><br>
</font></p>
<div class="moz-cite-prefix">On 24/05/2024 2:00, <a class="moz-txt-link-abbreviated" href="mailto:boxerg@iinet.net.au">boxerg@iinet.net.au</a>
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:006c01daad64$f6dec3a0$e49c4ae0$@iinet.net.au">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator"
content="Microsoft Word 15 (filtered medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
{font-family:Aptos;}@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Aptos",sans-serif;
color:#933131;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
font-size:10.0pt;
font-family:"Courier New";
color:#933131;}span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Consolas",serif;
color:#933131;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Aptos",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="color:windowtext">Thanks
Micha,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">That works
but I don’t know why it is called “BundleToPerfectSensor”? I
have searched for pansharpening algorithms previously and
would never have guessed that one!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Cheers Grant<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Perth WA<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<div>
<div
style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="font-family:"Calibri",sans-serif;color:windowtext;mso-ligatures:none;mso-fareast-language:EN-AU"
lang="EN-US">From:</span></b><span
style="font-family:"Calibri",sans-serif;color:windowtext;mso-ligatures:none;mso-fareast-language:EN-AU"
lang="EN-US"> Micha Silver <a class="moz-txt-link-rfc2396E" href="mailto:tsvibar@gmail.com"><tsvibar@gmail.com></a> <br>
<b>Sent:</b> Thursday, May 23, 2024 10:38 PM<br>
<b>To:</b> Grant Boxer <a class="moz-txt-link-rfc2396E" href="mailto:boxerg@iinet.net.au"><boxerg@iinet.net.au></a>;
<a class="moz-txt-link-abbreviated" href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [Qgis-user] Pansharpening Images<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:13.5pt">In the past
I've used the pan sharpening function in Orfeo Toolbox on
WorldView 3 imagery. I chose the "bayes" method, not
Gram-Schmidt that you want. Orfeo implements three
sharpening algorithms:</span><span
style="font-size:12.0pt;mso-ligatures:none;mso-fareast-language:EN-AU"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:13.5pt"><a
href="https://www.orfeo-toolbox.org/CookBook/Applications/app_BundleToPerfectSensor.html"
moz-do-not-send="true" class="moz-txt-link-freetext">https://www.orfeo-toolbox.org/CookBook/Applications/app_BundleToPerfectSensor.html</a></span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:13.5pt">Here's the
code I used (after preparing a *.vrt from both the PAN and
the Multiband files)</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span
style="font-size:13.5pt;font-family:"Courier New"">WV_dir="....."<br>
region="....."<br>
<br>
# Pan sharpening<br>
otbcli_BundleToPerfectSensor -inp
${WV_dir}/${region}_PAN.vrt -inxs
${WV_dir}/${region}_Multi.vrt -out
${WV_dir}/${region}_pansharp_bayes.tif uint16 -method bayes
-ram 8000 -progress true<br>
<br>
# Compress<br>
gdal_translate -co COMPRESS=ZSTD -co PREDICTOR=2
${WV_dir}/${region}_pansharp_bayes.tif
${WV_dir}/${region}_pansharp_bayes2.tif<br>
mv ${WV_dir}/${region}_pansharp_bayes2.tif
${WV_dir}/${region}_pansharp_bayes.tif<br>
gdaladdo -r average --config COMPRESS_OVERVIEW ZSTD --config
PREDICTOR_OVERVIEW 2 -ro
${WV_dir}/${region}_pansharp_bayes.tif<br>
<br>
</span><span style="font-size:13.5pt">HTH</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 23/05/2024 6:43, Grant Boxer via
QGIS-User wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Does anyone know of a plug-in or
algorithm for QGIS where I can pansharpen satellite imagery
using the Gram-Schmidt method?<o:p></o:p></p>
<p class="MsoNormal">Cheers Grant<o:p></o:p></p>
<p class="MsoNormal">Perth WA<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;mso-ligatures:none;mso-fareast-language:EN-AU"><br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>QGIS-User mailing list<o:p></o:p></pre>
<pre><a href="mailto:QGIS-User@lists.osgeo.org"
moz-do-not-send="true" class="moz-txt-link-freetext">QGIS-User@lists.osgeo.org</a><o:p></o:p></pre>
<pre>List info: <a
href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><o:p></o:p></pre>
<pre>Unsubscribe: <a
href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><o:p></o:p></pre>
</blockquote>
<pre>-- <o:p></o:p></pre>
<pre>Micha Silver<o:p></o:p></pre>
<pre>Ben Gurion Univ.<o:p></o:p></pre>
<pre>Sde Boker, Remote Sensing Lab<o:p></o:p></pre>
<pre>cell: +972-523-665918<o:p></o:p></pre>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918</pre>
</body>
</html>