Output pixel value = (raw pixel value * scale) + offset<br><br><div class="gmail_quote">On Fri, Mar 23, 2012 at 5:44 PM, Saâd HESSANE <span dir="ltr"><<a href="mailto:saad.hessane@gmail.com">saad.hessane@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ok, thank you again Chaitanya,<br><br>But what is the function of this two element? <br><div class="HOEnZb"><div class="h5">
<br><br><div class="gmail_quote">2012/3/23 Chaitanya kumar CH <span dir="ltr"><<a href="mailto:chaitanya.ch@gmail.com" target="_blank">chaitanya.ch@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Saâd,<br><br>A VRT raster band can be derived from more than one source.<br><br>Offset and Scale elements apply to the whole VRT raster band.<br>
The ScaleOffset and ScaleRatio perform the same task but it is done only on that particular ComplexSource.<br>
<br><div class="gmail_quote"><div><div>On Fri, Mar 23, 2012 at 3:43 PM, Saâd HESSANE <span dir="ltr"><<a href="mailto:saad.hessane@gmail.com" target="_blank">saad.hessane@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
Hy all,<br><br>The vrt format allow defining the scale and offset element. But the documentation is not clear about that :<br><ul><li><b>Offset</b>: This optional element contains the offset that should be
applied when computing "real" pixel values from scaled pixel values on a
raster band. The default is 0.0.</li><li><b>Scale</b>: This optional element contains the scale that should be
applied when computing "real" pixel values from scaled pixel values on a
raster band. The default is 1.0.</li></ul><p>What that it's mean ? If the value of offset is 1 what that it's change?</p><p>And this two elements are use in the <b>VRTRasterBand</b> element. What about <b>ScaleOffset</b> and <b>ScaleRatio</b> in the <b>ComplexSource</b> element?</p>
<p>Thank you.<br></p>
<br></div></div>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">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><span><font color="#888888"><br></font></span></blockquote></div><span><font color="#888888"><br>
<br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>
<br><a href="tel:%2B91-9494447584" value="+919494447584" target="_blank">+91-9494447584</a><br>17.2416N 80.1426E<br>
</font></span></blockquote></div><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br>+91-9494447584<br>17.2416N 80.1426E<br>