roviz  0.7
Code Documentation of roviz
gray_conv_item.h
1 #ifndef GRAYCONV_ITEM_H
2 #define GRAYCONV_ITEM_H
3 
4 #include "core/roviz_item.h"
5 #include "streams/image_m.h"
6 
12 class GrayConvItem : public RovizItem
13 {
14 #if ROVIZ_BACKEND == ROVIZ_BACKEND_Dev
15  Q_OBJECT
16 #endif
17 
18 public:
19  ROVIZ_INVOKABLE GrayConvItem();
20  ~GrayConvItem();
21 
22 protected:
23  void starting(void) override;
24  void thread(void) override;
25 
26 private:
27  Output<Image> output;
28  Input<Image> input;
29 
30  static Image fromRGB(Image in, int depth);
31  static Image fromRGB555(Image in);
32  static Image fromRGB888(Image in);
33  static Image fromYUV422(Image in);
34  static Image fromYUV422_Flipped(Image in);
35 };
36 
37 #endif // GRAYCONV_ITEM_H
Converts an RGB image to grayscale.
Definition: gray_conv_item.h:12
Base class for all items that use the roviz framework.
Definition: roviz_item.h:43
A portable image class with smart memory management.
Definition: image.h:35
void thread(void) override
Main thread of the item.
Definition: gray_conv_item.cpp:22
void starting(void) override
Called, when the thread is about to start.
Definition: gray_conv_item.cpp:18