Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Image > API/Runtime/GeometryCore/Image/TSpatialPhotoSet > API/Runtime/GeometryCore/Image/TSpatialPhotoSet/ComputeSample
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Image/SpatialPhotoSet.h |
| Include | #include "Image/SpatialPhotoSet.h" |
PixelType ComputeSample
&40;
const FVector3d & Position,
const FVector3d & Normal,
TFunctionRef< bool(const FVector3d &, const FVector3d &)> VisibilityFunction,
const PixelType & DefaultValue
&41; const
Remarks
Estimate a pixel value at the given 3D Position/Normal using the PhotoSet. This is effectively a reprojection process, that tries to find the "best" pixel value in the photo set that projects onto the given Position/Normal.
A position may be visible from multiple photos, in this case the dot-product between the view vector and normal is used to decide which photo pixel to use.
VisibilityFunction is used to determine if a 3D point is visible from the given photo point. Generally the caller would implement some kind of raycast to do this. the best valid sample if found, or DefaultValue if no suitable sample is available