<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hey Richard,</p>
    <p>do you have different NODATA pixels between the three bands (R,
      G, B) or is it the same? If there are no differences then you can
      use an additional channel as mask. I would suggest you store your
      imagery in GeoTIFF with an "internal mask". Even posted a nice
      example of this in
      <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/pipermail/gdal-dev/2014-August/039907.html">https://lists.osgeo.org/pipermail/gdal-dev/2014-August/039907.html</a><br>
      If your format supports RGBA (e.g. PNG), then that would be
      another way to achieve this but a nice GeoTIFF should be the best
      solution.</p>
    <p><br>
      Cheers, Hannes<br>
    </p>
    <div class="moz-cite-prefix">Am 13.01.22 um 18:35 schrieb Richard
      McDonnell:<br>
    </div>
    <blockquote type="cite"
      cite="mid:c5036801e7c0483887b03b4548538dea@opw.ie">
      <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;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}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">Hi all,<o:p></o:p></p>
        <p class="MsoNormal">I have a general GIS query and am hoping I
          can get some insight from the community.<o:p></o:p></p>
        <p class="MsoNormal">It relates to how we deal with pixels with
          no data in RGB Imagery. It seems to be typical to produce RGB
          imagery as 8bit with pixel values between 0 and 255, with
          either 0 or 255 being used as the NoDATA value. To me this is
          problematic, as there can be valid pixels within your image
          with 0 or 255. To me the solution is to use 16bit Imagery and
          to assign the NoDATA value to any value outside of the 0 – 255
          range.<o:p></o:p></p>
        <p class="MsoNormal">I know in DEM’s its usual to use -9999 as
          your NoDATA value but my question is, Is there a standardised
          way to deal with NoDATA in RGB?<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">I welcome any comments and suggestions.<o:p></o:p></p>
        <p class="MsoNormal">Regards & Thanks in advance,<o:p></o:p></p>
        <p class="MsoNormal"><br>
          Richard.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
      </div>
      <table style="FONT-SIZE: 9pt; HEIGHT: 321px; FONT-FAMILY: Arial,
        sans-serif; WIDTH: 500px; LINE-HEIGHT: 15px" cellspacing="0"
        cellpadding="0">
        <tbody>
          <tr>
            <td style="FONT-SIZE: 9pt; FONT-FAMILY: Arial,sans-serif;
              WIDTH: 500px; COLOR: #004d44; PADDING-BOTTOM: 6px">
              <span style="FONT-FAMILY: Arial, sans-serif; FONT-WEIGHT:
                bold; COLOR: #004d44"><br>
                ——</span><br>
              <span style="FONT-FAMILY: Arial, sans-serif; FONT-WEIGHT:
                bold; COLOR: #004d44">Richard McDonnell MSc GIS, FME
                Certified Professional</span><br>
              <span style="FONT-FAMILY: Arial, sans-serif; COLOR:
                #004d44"><i>FRM Data Management</i></span><br>
              <br>
              <span style="FONT-FAMILY: Arial, sans-serif; COLOR:
                #004d44">——</span><br>
              <span style="FONT-FAMILY: Arial, sans-serif; FONT-WEIGHT:
                bold; COLOR: #004d44">Oifig na nOibreacha Poiblí</span><br>
              <span style="FONT-FAMILY: Arial, sans-serif; COLOR:
                #004d44">Office of Public Works</span><br>
              <br>
              <span style="FONT-FAMILY: Arial, sans-serif; FONT-WEIGHT:
                bold; COLOR: #565148">Sráid Jonathan Swift, Baile Átha
                Troim, Co na Mí, C15 NX36
              </span><br>
              <span style="FONT-FAMILY: Arial, sans-serif; COLOR:
                #565148">Jonathan Swift Street, Trim, Co Meath, C15 NX36</span><br>
              <span style="FONT-FAMILY: Arial, sans-serif; COLOR:
                #565148">——</span><br>
              <span style="FONT-FAMILY: Arial, sans-serif; COLOR:
                #565148">M +353 87 688 5964 T +353 46 942 2409</span><br>
              <a href="https://gov.ie/opw" moz-do-not-send="true">https://gov.ie/opw</a><br>
              <br>
              <span style="FONT-FAMILY: Arial, sans-serif; COLOR:
                #004d44">——<br>
                To send me files larger than 30MB, please use the link
                below
                <a class="moz-txt-link-freetext" href="https://filetransfer.opw.ie/filedrop/richard.mcdonnell@opw.ie">https://filetransfer.opw.ie/filedrop/richard.mcdonnell@opw.ie</a><br>
              </span><br>
              <span style="FONT-FAMILY: Arial, sans-serif; COLOR:
                #004d44">Email Disclaimer:
                <a class="moz-txt-link-freetext" href="https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/">https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/</a>
              </span></td>
          </tr>
        </tbody>
      </table>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Johannes Kröger / GIS-Entwickler/-Berater
WhereGroup GmbH
Grevenweg 89
20537 Hamburg
Germany

Tel: +49 (0)228 / 90 90 38 - 36
Fax: +49 (0)228 / 90 90 38 - 11

<a class="moz-txt-link-abbreviated" href="mailto:johannes.kroeger@wheregroup.com">johannes.kroeger@wheregroup.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.wheregroup.com">www.wheregroup.com</a>
Geschäftsführer:
Olaf Knopp, Peter Stamm 
Amtsgericht Bonn, HRB 9885
-------------------------------

---------------------------------------------
Schon gewusst?

In unserem Blog geben wir Tipps & Tricks zu
 Open-Source-GIS-Software 
und berichten aus unserem Experten-Alltag:
<a class="moz-txt-link-freetext" href="https://wheregroup.com/blog/">https://wheregroup.com/blog/</a>
---------------------------------------------
</pre>
  </body>
</html>