NXPCUP-libary
Library for car's control board on NXPCUP competition based on the Mbed framework.
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
nxpcup::Image< T, N > Struct Template Reference

#include <Image.h>

Public Member Functions

T & operator[] (std::size_t i)
 
const T & operator[] (std::size_t i) const
 
const T * begin () const
 
const T * end () const
 
T * begin ()
 
T * end ()
 
Image difference () const
 

Public Attributes

std::array< T, sizedata
 

Static Public Attributes

static constexpr std::size_t size = N
 

Detailed Description

template<typename T, std::size_t N>
struct nxpcup::Image< T, N >

Struct for working with 1D image.

Member Function Documentation

template<typename T, std::size_t N>
const T* nxpcup::Image< T, N >::begin ( ) const
inline
template<typename T, std::size_t N>
T* nxpcup::Image< T, N >::begin ( )
inline
template<typename T, std::size_t N>
Image nxpcup::Image< T, N >::difference ( ) const
inline

Differentiate the image.

Returns
copy of the image after calculation difference between neighboring pixels
template<typename T, std::size_t N>
const T* nxpcup::Image< T, N >::end ( ) const
inline
template<typename T, std::size_t N>
T* nxpcup::Image< T, N >::end ( )
inline
template<typename T, std::size_t N>
T& nxpcup::Image< T, N >::operator[] ( std::size_t  i)
inline
template<typename T, std::size_t N>
const T& nxpcup::Image< T, N >::operator[] ( std::size_t  i) const
inline

Member Data Documentation

template<typename T, std::size_t N>
std::array<T, size> nxpcup::Image< T, N >::data
template<typename T, std::size_t N>
constexpr std::size_t nxpcup::Image< T, N >::size = N
static

The documentation for this struct was generated from the following file: