3.3.2.23. Class ImageStreamer

3.3.2.23.1. Class Documentation

class ImageStreamer

Image streamer with monothread or multithread strategies.

Public Functions

ImageStreamer(const std::string &input_path, const std::string &output_path, const Size &block_size, const ZoomRatio &zoom_ratio, const FilterMetadata &filter_metadata, unsigned int max_parallel_workers)

Instanciate an image streamer which will stream input image, apply a resampling transformation and write the result into the output image.

Parameters
  • input_path: input image path
  • output_path: output image path
  • block_size: stream block size
  • zoom_ratio: zoom ratio
  • filter_metadata: filter metadata
  • padding_type: filter padding type
  • max_parallel_workers: max parallel workers to compute the zoom on stream blocks

void Stream(const IFrequencyResampler &frequency_resampler, const Filter &filter)

Stream the input image, compute the resampling and stream output data.

Parameters
  • frequency_resampler: requested frequency resampler to apply on stream block
  • filter: filter to apply on the stream block