/Engine/Source/Runtime/GeometryCore/Public/Image/ImageOccupancyMap.h
Computes the image occupancy map from a UV space mesh. This function classifies all the samples in the image, and computes the GutterTexels mapping, if you dont want the mapping you can call ClassifySamplesFromUVSpaceMesh and compute it yourself (eg for texture baking we use filter kernel coverage to compute the GutterTexels mapping)
template<typename MeshType, typename GetTriangleIDFuncType> bool ComputeFromUVSpaceMesh ( const MeshType & UVSpaceMesh, GetTriangleIDFuncType GetTriangleIDFunc, const [TArray](API\Runtime\Core\Containers\TArray)< int32 > * UVSpaceMeshTriCharts )