Beatmup
binding_tools.hpp File Reference
#include "geometry.h"
#include "bitmap/pixel_arithmetic.h"
#include "nnets/model.h"
#include <pybind11/pybind11.h>
#include <pybind11/numpy.h>

Go to the source code of this file.

Namespaces

 Beatmup
 
 Beatmup::Python
 Python binding utilities
 

Functions

template<typename T >
CustomPoint< T > Beatmup::Python::toPoint (const py::tuple &tuple)
 
template<typename T >
CustomRectangle< T > Beatmup::Python::toRectangle (const py::tuple &tuple)
 
template<typename T >
py::tuple Beatmup::Python::toTuple (const CustomPoint< T > &point)
 
template<typename T >
py::tuple Beatmup::Python::toTuple (const CustomRectangle< T > &rectangle)
 
template<typename T >
py::tuple Beatmup::Python::toTuple (const CustomMatrix2< T > &matrix)
 
py::tuple Beatmup::Python::toTuple (const color3f &color)
 
py::tuple Beatmup::Python::toTuple (const color4i &color)
 
pixfloat4 Beatmup::Python::toPixfloat4 (const py::tuple &tuple)
 
color3f Beatmup::Python::toColor3f (const py::tuple &tuple)
 
color4f Beatmup::Python::toColor4f (const py::tuple &tuple)
 
color4i Beatmup::Python::toColor4i (const py::tuple &tuple)
 
py::object Beatmup::Python::getModelOutputDataByName (NNets::Model &model, const std::string &opName, int output)
 
py::object Beatmup::Python::getModelOutputDataByOp (NNets::Model &model, const NNets::AbstractOperation &operation, int output)