SDK UI Pipeline
For a basic usage guide, refer to Pipeline.
-
class
Metavision
::
FrameDisplayStage
: public Metavision::BaseStage Stage that displays the input frame in a window.
The window is refreshed every time a new frame is received.
Public Functions
-
FrameDisplayStage
(const std::string &title, int width, int height, Window::RenderMode mode = Window::RenderMode::BGR, bool auto_exit = true) Constructs a new frame display stage.
- Parameters
title
: Window’s titlewidth
: Window’s initial widthheight
: Window’s initial heightmode
: Window’s rendering mode (i.e. either BGR or GRAY). Cannot be changed afterwardsauto_exit
: Flag indicating if the application automatically closes if the user presses ‘Q’ or ‘ESCAPE’
-
FrameDisplayStage
(BaseStage &prev_stage, const std::string &title, int width, int height, Window::RenderMode mode = Window::RenderMode::BGR, bool auto_exit = true) Constructs a new frame display stage given an explicit previous stage.
- Parameters
prev_stage
: Stage producing the input image for this display stagetitle
: Window’s titlewidth
: Window’s initial widthheight
: Window’s initial heightmode
: Window’s rendering mode (i.e. either BGR or GRAY). Cannot be changed afterwardsauto_exit
: Flag indicating if the application automatically closes if the user presses ‘Q’ or ‘ESCAPE’
-