GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • FAST | Documentation
  • Get started
  • Install FAST
  • C++ Introduction Tutorial
  • Python Introduction Tutorial
  • Text Pipelines
  • Learn FAST
  • C++ Tutorials
  • C++ Examples
  • Python Tutorials
  • Python Examples
  • API Reference
  • API Index
  • Building FAST

This view

  • Original page
  • New address

GeezerVison is showing fast-imaging.github.io — fast::ImageFileStreamer class | FAST | Documentation

fast::ImageFileStreamer class
#include <FAST/Streamers/ImageFileStreamer.hpp>

Stream a sequence of image files from disk.

Contents

  • Reference
    • Base classes
    • Constructors, destructors, conversion operators
    • Public functions
    • Protected functions
    • Protected variables

Images has to be stored with an index before the file extension. E.g. some_name_0.mhd, some_name_1.mhd, some_name_2.mhd ... or some_name_0.png, some_name_1.png, some_name_2.png ...

This streamer uses the ImageFileImporter to read the images from disk.

Output ports

  • 0: Image

Base classes

class FileStreamer
Abstract file streamer class.

Constructors, destructors, conversion operators

~ImageFileStreamer()
ImageFileStreamer() protected

Public functions

auto create(std::string filenameFormat, bool loop, bool useTimestamps, int framerate, bool grayscale) -> std::shared_ptr<ImageFileStreamer>
Create a ImageFileStreamer instance.
auto create(std::vector<std::string> filenameFormats, bool loop, bool useTimestamps, int framerate, bool grayscale) -> std::shared_ptr<ImageFileStreamer>
Create a ImageFileStreamer instance.
void loadAttributes() override

Protected functions

auto getDataFrame(std::string filename) -> DataObject::pointer override

Protected variables

bool m_grayscale

Function documentation

std::shared_ptr<ImageFileStreamer> fast::ImageFileStreamer::create(std::string filenameFormat, bool loop, bool useTimestamps, int framerate, bool grayscale)

Create a ImageFileStreamer instance.

Parameters
filenameFormat String of path and format of images. E.g. /path/to/files/frame_#.mhd. The hash sign # will be replaced by an index
loop Whether to loop the recording or not
useTimestamps Whether to use timestamps in image files (if available) when streaming, or just stream as fast as possible
framerate If framerate is > 0, this framerate will be used for streaming the images
grayscale Convert images to grayscale if the source image is in color.
Returns instance

std::shared_ptr<ImageFileStreamer> fast::ImageFileStreamer::create(std::vector<std::string> filenameFormats, bool loop, bool useTimestamps, int framerate, bool grayscale)

Create a ImageFileStreamer instance.

Parameters
filenameFormats List of strings of paths and format of images. E.g. /path/to/files/frame_#.mhd. The hash sign # will be replaced by an index
loop Whether to loop the recording or not
useTimestamps Whether to use timestamps in image files (if available) when streaming, or just stream as fast as possible
framerate If framerate is > 0, this framerate will be used for streaming the images
grayscale Convert or not
Returns instance

This is only available in C++ for now.

Convert images to grayscale if the source image is in color

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.