I see the code:<br><br><pre><span class="n">CPLErr</span> <span class="n">GDALSimpleSURF</span><span class="o">::</span><span class="n">ConvertRGBToLuminosity</span></pre><br><pre><div class="line" id="LC16"><span class="k">const</span> <span class="kt">double</span> <span class="n">forRed</span> <span class="o">=</span> <span class="mf">0.21</span><span class="p">;</span></div>
<div class="line" id="LC17">    <span class="k">const</span> <span class="kt">double</span> <span class="n">forGreen</span> <span class="o">=</span> <span class="mf">0.72</span><span class="p">;</span></div><div class="line" id="LC18">
    <span class="k">const</span> <span class="kt">double</span> <span class="n">forBlue</span> <span class="o">=</span> <span class="mf">0.07</span><span class="p">;<br><br>question:<br>if you have a sensor with more than this three channels<br>
probably it will not work you need to have an RGB image.<br><br>how about have an option how many channels to choose.<br><br>Probably this process is working for one channel as well.<br>         <br><br>--Nikos <br></span></div>
</pre><br><br><div class="gmail_quote">On Mon, Aug 27, 2012 at 9:12 AM, Frank Warmerdam <span dir="ltr"><<a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, Aug 27, 2012 at 11:50 AM, Even Rouault<br>
<<a href="mailto:even.rouault@mines-paris.org">even.rouault@mines-paris.org</a>> wrote:<br>
> Making algorithm work with imagery that is piece-wise loaded can be very<br>
> complicated indeed. And if you try to correlate images that are taken by sensors<br>
> that have very different angles, then you could need to correlate parts that are<br>
> not at all at the same position in the 2 images.<br>
<br>
</div>Even,<br>
<br>
I think it will actually not be too hard to remove this problem<br>
with loading the whole image.  It seems that the reference<br>
point objects (the somewhat poorly named GDALFeaturePoint)<br>
stores a "descriptor" representation of the point with it and so<br>
after these are collected from one of the images it is not<br>
necessary to keep the original image in memory.<br>
<br>
I'm still not sure how to handle the image scaling and<br>
conversion to a luminosity image more smoothly.<br>
<div class="im"><br>
Best regards,<br>
--<br>
---------------------------------------+--------------------------------------<br>
I set the clouds in motion - turn up   | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a><br>
</div>light and sound - activate the windows | <a href="http://pobox.com/%7Ewarmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>
<div class="im HOEnZb">and watch the world go round - Rush    | Geospatial Software Developer<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</div></div></blockquote></div><br>