Porytiles
Loading...
Searching...
No Matches
shape_group_analyzer.hpp File Reference
Include dependency graph for shape_group_analyzer.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  porytiles
 

Functions

template<SupportsTransparency PixelType, typename TransparencyPredicate >
ShapeTile< PixelType > porytiles::shape_tile_from_pixel_tile (const PixelTile< PixelType > &pixel_tile, TransparencyPredicate is_transparent_pred)
 Converts a PixelTile to a ShapeTile by grouping pixels by color into ShapeMasks.
 
template<SupportsTransparency PixelType>
requires requires(const PixelType &c) { c.is_transparent(c); }
std::vector< ShapeGroup< PixelType > > porytiles::analyze_shape_groups (const std::vector< PixelTile< PixelType > > &tiles, const PixelType &extrinsic)
 Analyzes a collection of pixel tiles and groups them by canonical shape for tile sharing analysis.