Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/TSpatialPhotoSet
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
PixelType ComputeSample
(
const int& PhotoIndex, |
Image/SpatialPhotoSet.h | ||
PixelType ComputeSample
(
const FVector3d& Position, |
Estimate a pixel value at the given 3D Position/Normal using the PhotoSet. | Image/SpatialPhotoSet.h |
ComputeSample(const int &, const FVector2d &, const PixelType &)
| Name | ComputeSample |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Image/SpatialPhotoSet.h |
| Include Path | #include "Image/SpatialPhotoSet.h" |
PixelType ComputeSample
(
const int & PhotoIndex,
const FVector2d & PhotoCoords,
const PixelType & DefaultValue
) const
ComputeSample(const FVector3d &, const FVector3d &, TFunctionRef< bool(const FVector3d &, const FVector3d &)>, const PixelType &)
Description
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.
| Name | ComputeSample |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Image/SpatialPhotoSet.h |
| Include Path | #include "Image/SpatialPhotoSet.h" |
PixelType ComputeSample
(
const FVector3d & Position,
const FVector3d & Normal,
TFunctionRef < bool> VisibilityFunction,
const PixelType & DefaultValue
) const
the best valid sample if found, or DefaultValue if no suitable sample is available