warp.volume_sample_f#
- warp.volume_sample_f( ) float#
Kernel
Python
Differentiable
Sample the
warp.float32volume given byidat the index-space pointuvw.uvwis in index space (voxel coordinates) and may be fractional;sampling_modemust bewarp.Volume.CLOSESTorwarp.Volume.LINEAR. Sampling uses the resolved volume value (seevolume_sample()).idmust identify afloat32volume. In kernels,volume_sample_f()is equivalent tovolume_sample()withdtype=float, which documents the coordinate-frame, value-resolution, boundary, and differentiability behavior.- Returns:
The sampled
warp.float32value.
See
volume_sample()for a usage example.