<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Glint in WorldView 2 Image in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401793#M23048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I got my hands on an 8 band WorldView 2 image, sadly the entire image is covered with sun glint since its a marine image... i would like to know of how to remove this glint problem... Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jan 2012 02:05:38 GMT</pubDate>
    <dc:creator>RamiSaeed</dc:creator>
    <dc:date>2012-01-12T02:05:38Z</dc:date>
    <item>
      <title>Glint in WorldView 2 Image</title>
      <link>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401793#M23048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I got my hands on an 8 band WorldView 2 image, sadly the entire image is covered with sun glint since its a marine image... i would like to know of how to remove this glint problem... Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 02:05:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401793#M23048</guid>
      <dc:creator>RamiSaeed</dc:creator>
      <dc:date>2012-01-12T02:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Glint in WorldView 2 Image</title>
      <link>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401794#M23049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have a read of this paper: &lt;/SPAN&gt;&lt;A href="http://www.marinespatialecologylab.org/wp-content/uploads/2010/11/Hedleyetal_2005.pdf" rel="nofollow noopener noreferrer" target="_blank"&gt;Hedley et al. (2005)&lt;/A&gt;&lt;SPAN&gt; Simple and robust removal of sun glint for mapping shallow-water&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;benthos. International Journal of Remote Sensing Vol. 26, No. 10, 2107�??2112.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Step by step &lt;/SPAN&gt;&lt;A href="http://dusk.geo.orst.edu/djl/theses/kyle/Cookbook_042108.pdf" rel="nofollow noopener noreferrer" target="_blank"&gt;instructions&lt;/A&gt;&lt;SPAN&gt; to implement this method are available for ENVI (not ArcGIS sorry).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use some IDL code from ENVI to do this instead of the above manual method, though I do generate the samples with the ROI tool by hand):&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
nirs=samples[*,*,7]
nird=data[*,*,7]
d=size(nirs,/dim)
i=where(nirs gt 0)
o=where(nird eq 0)
m=min(nirs&lt;I&gt;)
m=nirs&lt;I&gt;
m = m[(sort(m))[5 * N_ELEMENTS(m) / 100] ] 
out=0
help, m

foreach b, bindgen(6) do begin

&amp;nbsp;&amp;nbsp;&amp;nbsp; band=samples[*,*,b]
&amp;nbsp;&amp;nbsp;&amp;nbsp; r=linfit(nirs&lt;I&gt;,band&lt;I&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp; band=data[*,*,b]
&amp;nbsp;&amp;nbsp;&amp;nbsp; deglint=long(band - r[1] * (nird - m)+0.5) 

&amp;nbsp;&amp;nbsp;&amp;nbsp; deglint&lt;O&gt;=0
&amp;nbsp;&amp;nbsp;&amp;nbsp; if size(out, /n_dimensions) eq 0 then&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $&amp;nbsp; ;Image stack doesn't exist yet
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out=temporary(deglint)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $
&amp;nbsp;&amp;nbsp;&amp;nbsp; else&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $&amp;nbsp; ;Concatenate image to stack
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out=[[[temporary(out)]],[[temporary(deglint)]]]

endforeach

out=[[[temporary(out)]],[[data[*,*,6]]]]
out=[[[temporary(out)]],[[data[*,*,7]]]]

end
&lt;/O&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Again note that these methods are for ENVI, not ArcGIS. You could probably reimplement the code in numpy though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:19:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401794#M23049</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2021-12-11T18:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Glint in WorldView 2 Image</title>
      <link>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401795#M23050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks lpinner, Now i got more to go on than before... as for the cook book i saw it before, and read it, sadly didnt understand much with what to do... considering that I'm still a beginner with all of this... I'll them out and see what i can come up with... BTW, as for the script that you attached, In Envi, where would i input it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jan 2012 01:05:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401795#M23050</guid>
      <dc:creator>RamiSaeed</dc:creator>
      <dc:date>2012-01-15T01:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Glint in WorldView 2 Image</title>
      <link>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401796#M23051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It requires a full &lt;/SPAN&gt;&lt;A href="http://www.exelisvis.com/language/en-US/ProductsServices/ENVI.aspx"&gt;ENVI&lt;/A&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;A href="http://www.exelisvis.com/language/en-US/ProductsServices/IDL.aspx"&gt;IDL&lt;/A&gt;&lt;SPAN&gt; install, not just the ENVI runtime.&amp;nbsp; It also requires you have enough memory to load the entire image into RAM as I didn't bother writing any sort of tiling code, it was just a very rough hack that I whipped up to meet an immediate need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To use my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Save the code to a file with a ".pro" extension&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Start "ENVI + IDL" (not ENVI)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Load your WV2 image into ENVI.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;In the main ENVI toolbar click File-&amp;gt; Export to IDL variable and export the WV2 as variable called "data"&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Create an ROI of a variety of deep ocean areas&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;In the ROI tool dialog, select File-&amp;gt;Subset data via ROIs&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;In the main ENVI toolbar click File-&amp;gt; Export to IDL variable and export the subset as variable called "samples"&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;At the ENVI&amp;gt; command prompt in the IDL workbench, type &lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;.r &amp;lt;path to&amp;gt;\&amp;lt;script&amp;gt;.pro&lt;/PRE&gt; i.e &lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;.r C:\Temp\deglint.pro&lt;/PRE&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;After the script completes you can get the image back into ENVI using&amp;nbsp; File-&amp;gt; Import from IDL variable (select the "out" variable)&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jan 2012 23:35:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401796#M23051</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2012-01-15T23:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Glint in WorldView 2 Image</title>
      <link>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401797#M23052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks again for your valuable input in regards to this matter... I preformed the procedure that you recommended, sadly i got the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

% Syntax error.
ENVI&amp;gt; .r C:\Temp\Glint.pro

foreach b, bindgen(6) do begin
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^
% Syntax error.
&amp;nbsp; At: C:\TEMP\Glint.pro, Line 12
% 1 Compilation error(s) in module $MAIN$.

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What's your take on this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:19:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401797#M23052</guid>
      <dc:creator>RamiSaeed</dc:creator>
      <dc:date>2021-12-11T18:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Glint in WorldView 2 Image</title>
      <link>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401798#M23053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Works for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just realised I left in some code I shouldn't have. Try the below (also attached):.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;nirs=samples[*,*,7]
nird=data[*,*,7]
d=size(nirs,/dim)
i=where(nirs gt 0)
o=where(nird eq 0)
m=min(nirs&lt;I&gt;)
out=0
help, m

foreach b, bindgen(6) do begin

&amp;nbsp;&amp;nbsp;&amp;nbsp; band=samples[*,*,b]
&amp;nbsp;&amp;nbsp;&amp;nbsp; r=linfit(nirs&lt;I&gt;,band&lt;I&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp; band=data[*,*,b]
&amp;nbsp;&amp;nbsp;&amp;nbsp; deglint=long(band - r[1] * (nird - m)+0.5) 

&amp;nbsp;&amp;nbsp;&amp;nbsp; deglint&lt;O&gt;=0
&amp;nbsp;&amp;nbsp;&amp;nbsp; if size(out, /n_dimensions) eq 0 then&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $&amp;nbsp; ;Image stack doesn't exist yet
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out=temporary(deglint)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $
&amp;nbsp;&amp;nbsp;&amp;nbsp; else&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $&amp;nbsp; ;Concatenate image to stack
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out=[[[temporary(out)]],[[temporary(deglint)]]]

endforeach

out=[[[temporary(out)]],[[data[*,*,6]]]]
out=[[[temporary(out)]],[[data[*,*,7]]]]

end
&lt;/O&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An example using the above code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Before&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]11237[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]11238[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:19:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401798#M23053</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2021-12-11T18:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Glint in WorldView 2 Image</title>
      <link>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401799#M23054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks again lpinner, I'll give it a go and let you know how it goes... BTW, from your experience, the three methods that you shared with me, which did you prefer? in terms of results? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know the IDL looks to be the easiest of them all...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 02:44:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401799#M23054</guid>
      <dc:creator>RamiSaeed</dc:creator>
      <dc:date>2012-01-18T02:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Glint in WorldView 2 Image</title>
      <link>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401800#M23055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What three methods? I only recall two.&amp;nbsp; Both the "cookbook" method and my IDL code implement the algorithm detailed in the paper by Hedley &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;et al.&lt;/SPAN&gt;&lt;SPAN&gt; (2005) that I linked to.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not used the "cookbook" method. But it should give the same results, it's doing the same thing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By the way... if you have any land in your image, this method will make it look &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;terrible&lt;/SPAN&gt;&lt;SPAN&gt;. As is noted in the paper:&lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;the algorithm is valid only for submerged pixels&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 02:57:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401800#M23055</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2012-01-18T02:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Glint in WorldView 2 Image</title>
      <link>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401801#M23056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ahh, i see, well that's good to know... but sadly yet again it didn't work,even with the file that you gave me...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
foreach b, bindgen(6) dobegin
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^
% Syntax error.
&amp;nbsp; At: C:\TEMP\deglint.pro, Line 10
% 1 Compilation error(s) in module $MAIN$.
% No valid main program present.
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, i have attached a photo of what the area I'm dealing with looks like...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]11246[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So i guess I'm good, since there isn't much land, except for that narrow strip... BTW, does this image look to you beyond reparable?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:19:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401801#M23056</guid>
      <dc:creator>RamiSaeed</dc:creator>
      <dc:date>2021-12-11T18:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Glint in WorldView 2 Image</title>
      <link>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401802#M23057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's a different error to your previous post. Are you typing it in or copying it? There should be a space between "do" and "begin".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 20:51:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401802#M23057</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2012-01-18T20:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Glint in WorldView 2 Image</title>
      <link>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401803#M23058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I copy and pasted it, well it seems that even if i used a space between "do begin" it still doesnt work... maybe there is a problem with the isntallation of the program... ill try and reinsatall the software and see how things go from there... BTW, thanks for all the help that you gave...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 04:32:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401803#M23058</guid>
      <dc:creator>RamiSaeed</dc:creator>
      <dc:date>2012-01-19T04:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Glint in WorldView 2 Image</title>
      <link>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401804#M23059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What version of ENVI do you have? You could also try (after opening the image in ENVI, selecting the ROI, exporting variables etc...) in the &lt;/SPAN&gt;&lt;A href="http://www.exelisvis.com/language/en-us/productsservices/idl/idldevelopmentenvironment.aspx"&gt;IDL Workbench&lt;/A&gt;&lt;SPAN&gt;, create a new file, paste my code in, save it and then click compile then click run.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 04:57:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401804#M23059</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2012-01-19T04:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Glint in WorldView 2 Image</title>
      <link>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401805#M23060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Im using Envi 4.7... I'll it again and see what i get...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jan 2012 01:29:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401805#M23060</guid>
      <dc:creator>RamiSaeed</dc:creator>
      <dc:date>2012-01-22T01:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Glint in WorldView 2 Image</title>
      <link>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401806#M23061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;lpinner,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Love the script. Got it working on my second try but I have some questions. I am looking at the output data and it seems that the map info(projection,datum,etc.) is stripped away. I'll admit I am new to IDL and ENVI (in fact before someone pointed out your script I was writing a script of my own in perl). Looking through your code it looks like the map info is lost at line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;nird=data[*,*,7]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and never added back in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I reading this right? Is there a way to add this data back in after the calculations are completed like you did for bands 7 &amp;amp; 8?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 00:46:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401806#M23061</guid>
      <dc:creator>JeremyTaylor</dc:creator>
      <dc:date>2012-01-27T00:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Glint in WorldView 2 Image</title>
      <link>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401807#M23062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;IDL doesn't use ENVI georeferencing. The map info is lost from the time you export the data to IDL arrays. Just right click on the layer in the available bands window after you import the deglinted array back into ENVI, edit the header and import the header from the original glint affected image.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 08:42:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401807#M23062</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2012-01-27T08:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Glint in WorldView 2 Image</title>
      <link>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401808#M23063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, been a while... so here's the update... In the end the IDL didnt work... which is kinda a downer.. but i think i figured something out in the process that i would like to share in order to determin if its legit or just my imagination...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You know in Envi it got this "relative water depth" wizard, so when i used it, it generated three files, and one of them was a RGB file, the when displayed, it kind of shows that the glint has be processed... does this mean that the glint is gone? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the down part is that its an RGB, and the total benifit of having an 8-band is gone... so still working on it trying to figure it out...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On another note...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lets assume that for a moment that it did work.. and one of the files generated by envi is from using the "relative water depth" wizard is actually the water depth that i want to use... and from another source i got a marine survey done with coordinated depths... is there a way in ArcGIS to do an interpolation where i link the sampled water depths with the whole image in order to figure out the rest?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jan 2012 01:29:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401808#M23063</guid>
      <dc:creator>RamiSaeed</dc:creator>
      <dc:date>2012-01-29T01:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Glint in WorldView 2 Image</title>
      <link>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401809#M23064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Luke,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've managed to run the script, however, my results aren't anywhere close to useable. My question is: did you use your raw imagery or have you converted the data to radiance, or reflectance?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Luba&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 17:09:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401809#M23064</guid>
      <dc:creator>LubaReshitnyk</dc:creator>
      <dc:date>2012-03-21T17:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Glint in WorldView 2 Image</title>
      <link>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401810#M23065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Both raw and radiance (output as integer with scale factor of 1000, standard ENVI WV2 radiance calculation).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's one done with integer radiance values, top is glint affected, bottom is same region following deglinting:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]12916[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 22:26:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401810#M23065</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2012-03-21T22:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Glint in WorldView 2 Image</title>
      <link>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401811#M23066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've updated this script (see attached) to run from an ENVI menu item.&amp;nbsp; From the readme file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Reference:&lt;/STRONG&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hedley, JD, Harborne, AR and Mumby PJ (2005)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Simple and robust removal of sun glint for mapping shallow-water benthos&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; International Journal of Remote Sensing 26 (10), pp 2107�??2112.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Notes:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you have any land in your image, this method will make it look terrible. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; As is stated in Hedley et al. (2005): "the algorithm is valid only for submerged pixels".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Only run this tool prior to pansharpening as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a. It loads the entire image into memory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b. It will take a lot longer...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Installation:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Copy deglint.sav to the ENVI "save_add" directory:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;ENVI 4.8:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - Windows: C:\Program Files\ITT\IDL\IDL80\products\envi48\save_add\&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - OSX: /Applications/itt/idl/idl80/products/envi48/save_add/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - *Nix: /usr/local/itt/idl/idl80/products/envi48/save_add/&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;ENVI 5.0 (Classic):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - Windows: C:\Program Files\Exelis\ENVI50\classic\save_add\&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - OSX: /Applications/Exelis/ENVI50/classic/save_add/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - *Nix: /usr/local/Exelis/ENVI50/classic/save_add/&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Next time you start ENVI 4.8 or ENVI 5.0 (Classic) there will be a "Deglint" tool in the Spectral menu.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Usage:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Start ENVI 4.8 or Envi Classic 5.0, open and display the image you want to deglint. Start the ROI tool and define an ROI containing a number of samples of areas of deep water. Select the "Spectral"-&amp;gt;"Deglint" menu option and follow the prompts.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 00:03:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401811#M23066</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2012-10-30T00:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Glint in WorldView 2 Image</title>
      <link>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401812#M23067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks lpinner, once i got an email that there was a new post i got all excited, especially to try out this new tool... I'll give it a shot and let you know how it turns out... BTW, does it work on 4.7 or just 4.8 &amp;amp; 5.0?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 02:53:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/glint-in-worldview-2-image/m-p/401812#M23067</guid>
      <dc:creator>RamiSaeed</dc:creator>
      <dc:date>2012-10-31T02:53:09Z</dc:date>
    </item>
  </channel>
</rss>

