Skip to content

Commit

Permalink
Added pixel_type typedef to Image
Browse files Browse the repository at this point in the history
This is useful to for example access the PixelType of a particular image when calling the zeros(...) function.
  • Loading branch information
patrikhuber committed Jul 31, 2018
1 parent 3e5815c commit 98946bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/eos/core/Image.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ template <class PixelType>
class Image
{
public:
using pixel_type = PixelType;

Image() = default;

// Initialises with all zeros. This is a bit of an overhead. We probably have to use unique_ptr or a raw
Expand Down

0 comments on commit 98946bf

Please sign in to comment.