📄 classgdalwarpkernel.html
字号:
dfPixelValue = ((<span class="keywordtype">float</span> *) poKern->papabyDstImage[nBand-1]) [nPixel + nLine * poKern->nSrcYSize];</pre></div><p>This field is required. </div></div><p><a class="anchor" name="fa3d378ced7582208bcd2383a99c0963"></a><!-- doxytag: member="GDALWarpKernel::panDstValid" ref="fa3d378ced7582208bcd2383a99c0963" args="" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">GUInt32 * <a class="el" href="classGDALWarpKernel.html#fa3d378ced7582208bcd2383a99c0963">GDALWarpKernel::panDstValid</a> </td> </tr> </table></div><div class="memdoc"><p>Per pixel validity mask for destination pixels.<p>A single validity mask layer that applies to the pixels of all destination bands. It is accessed similarly to papanUnitifiedSrcValid, but based on the size of the destination image.<p>This pointer may be NULL indicating that all pixels are valid. </div></div><p><a class="anchor" name="b83a64a7241f0214339334b4221a9767"></a><!-- doxytag: member="GDALWarpKernel::pafDstDensity" ref="b83a64a7241f0214339334b4221a9767" args="" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">float * <a class="el" href="classGDALWarpKernel.html#b83a64a7241f0214339334b4221a9767">GDALWarpKernel::pafDstDensity</a> </td> </tr> </table></div><div class="memdoc"><p>Per pixel density mask for destination pixels.<p>A single density mask layer that applies to the pixels of all destination bands. It contains values between 0.0 and 1.0.<p>This pointer may be NULL indicating that all pixels have a density of 1.0.<p>The density for a pixel may be accessed like this:<p><div class="fragment"><pre class="fragment"> <span class="keywordtype">float</span> fDensity = 1.0; <span class="keywordtype">int</span> nPixel = 3; <span class="comment">// zero based</span> <span class="keywordtype">int</span> nLine = 4; <span class="comment">// zero based</span> assert( nPixel >= 0 && nPixel < poKern-><a class="code" href="classGDALWarpKernel.html#12729bba83339095b7e42410d54b4017">nDstXSize</a> ); assert( nLine >= 0 && nLine < poKern-><a class="code" href="classGDALWarpKernel.html#323e61928f42c71fb3079c3fe49c2ba3">nDstYSize</a> ); <span class="keywordflow">if</span>( poKern->pafDstDensity != NULL ) fDensity = poKern->pafDstDensity[nPixel + nLine * poKern->nDstXSize];</pre></div> </div></div><p><a class="anchor" name="4be67aaba3185f65e83f857a01d3aa51"></a><!-- doxytag: member="GDALWarpKernel::nSrcXOff" ref="4be67aaba3185f65e83f857a01d3aa51" args="" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">int <a class="el" href="classGDALWarpKernel.html#4be67aaba3185f65e83f857a01d3aa51">GDALWarpKernel::nSrcXOff</a> </td> </tr> </table></div><div class="memdoc"><p>X offset to source pixel coordinates for transformation.<p>See pfnTransformer.<p>This field is required. </div></div><p><a class="anchor" name="71e237558357f0bd4dc4af0ad2e51e12"></a><!-- doxytag: member="GDALWarpKernel::nSrcYOff" ref="71e237558357f0bd4dc4af0ad2e51e12" args="" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">int <a class="el" href="classGDALWarpKernel.html#71e237558357f0bd4dc4af0ad2e51e12">GDALWarpKernel::nSrcYOff</a> </td> </tr> </table></div><div class="memdoc"><p>Y offset to source pixel coordinates for transformation.<p>See pfnTransformer.<p>This field is required. </div></div><p><a class="anchor" name="22e26f62aae281d23d13d02f10284d25"></a><!-- doxytag: member="GDALWarpKernel::nDstXOff" ref="22e26f62aae281d23d13d02f10284d25" args="" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">int <a class="el" href="classGDALWarpKernel.html#22e26f62aae281d23d13d02f10284d25">GDALWarpKernel::nDstXOff</a> </td> </tr> </table></div><div class="memdoc"><p>X offset to destination pixel coordinates for transformation.<p>See pfnTransformer.<p>This field is required. </div></div><p><a class="anchor" name="8682f0ed0266db88cfb764d1fcf2a4a9"></a><!-- doxytag: member="GDALWarpKernel::nDstYOff" ref="8682f0ed0266db88cfb764d1fcf2a4a9" args="" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">int <a class="el" href="classGDALWarpKernel.html#8682f0ed0266db88cfb764d1fcf2a4a9">GDALWarpKernel::nDstYOff</a> </td> </tr> </table></div><div class="memdoc"><p>Y offset to destination pixel coordinates for transformation.<p>See pfnTransformer.<p>This field is required. </div></div><p><a class="anchor" name="2f101096fda92d7d642d354aabd6d5ba"></a><!-- doxytag: member="GDALWarpKernel::pfnTransformer" ref="2f101096fda92d7d642d354aabd6d5ba" args="" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="gdal__alg_8h.html#9ad4227ec5fd5b70637eeb6996172318">GDALTransformerFunc</a> <a class="el" href="classGDALWarpKernel.html#2f101096fda92d7d642d354aabd6d5ba">GDALWarpKernel::pfnTransformer</a> </td> </tr> </table></div><div class="memdoc"><p>Source/destination location transformer.<p>The function to call to transform coordinates between source image pixel/line coordinates and destination image pixel/line coordinates. See <a class="el" href="gdal__alg_8h.html#9ad4227ec5fd5b70637eeb6996172318">GDALTransformerFunc()</a> for details of the semantics of this function.<p>The GDALWarpKern algorithm will only ever use this transformer in "destination to source" mode (bDstToSrc=TRUE), and will always pass partial or complete scanlines of points in the destination image as input. This means, amoung other things, that it is safe to the the approximating transform <a class="el" href="gdal__alg_8h.html#766ccb23b021d30d86908c08ad8d1668">GDALApproxTransform()</a> as the transformation function.<p>Source and destination images may be subsets of a larger overall image. The transformation algorithms will expect and return pixel/line coordinates in terms of this larger image, so coordinates need to be offset by the offsets specified in nSrcXOff, nSrcYOff, nDstXOff, and nDstYOff before passing to pfnTransformer, and after return from it.<p>The GDALWarpKernel::pfnTransformerArg value will be passed as the callback data to this function when it is called.<p>This field is required. </div></div><p><a class="anchor" name="f4352e0b3d97f9e44c7656dbb7a5ca3a"></a><!-- doxytag: member="GDALWarpKernel::pTransformerArg" ref="f4352e0b3d97f9e44c7656dbb7a5ca3a" args="" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void * <a class="el" href="classGDALWarpKernel.html#f4352e0b3d97f9e44c7656dbb7a5ca3a">GDALWarpKernel::pTransformerArg</a> </td> </tr> </table></div><div class="memdoc"><p>Callback data for pfnTransformer.<p>This field may be NULL if not required for the pfnTransformer being used. </div></div><p><a class="anchor" name="8a87cffc6776d1d165c477740ad09520"></a><!-- doxytag: member="GDALWarpKernel::pfnProgress" ref="8a87cffc6776d1d165c477740ad09520" args="" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">GDALProgressFunc <a class="el" href="classGDALWarpKernel.html#8a87cffc6776d1d165c477740ad09520">GDALWarpKernel::pfnProgress</a> </td> </tr> </table></div><div class="memdoc"><p>The function to call to report progress of the algorithm, and to check for a requested termination of the operation. It operates according to GDALProgressFunc() semantics.<p>Generally speaking the progress function will be invoked for each scanline of the destination buffer that has been processed.<p>This field may be NULL (internally set to GDALDummyProgress()). </div></div><p><a class="anchor" name="923d33138d70373a265cec48292cbca1"></a><!-- doxytag: member="GDALWarpKernel::pProgress" ref="923d33138d70373a265cec48292cbca1" args="" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void * <a class="el" href="classGDALWarpKernel.html#923d33138d70373a265cec48292cbca1">GDALWarpKernel::pProgress</a> </td> </tr> </table></div><div class="memdoc"><p>Callback data for pfnProgress.<p>This field may be NULL if not required for the pfnProgress being used. </div></div><p><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="gdalwarper_8h-source.html">gdalwarper.h</a><li>gdalwarpkernel.cpp</ul><hr>Generated for GDAL by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1.</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -